要求原版和极致精简的OpenWRT,自己动手安装自己需要的插件。
1.官网下载最新的OpenWRT: Current Stable Release – OpenWrt 19.07.5:
解压出img文件:openwrt-19.07.5-x86-64-combined-ext4.img
用StarWind V2V Converter 转换成vmdk文件:
2. 新建VMware Workstation 虚拟机OpenWRT:
为了更好的兼容性,虚拟机硬件选择Workstation 10.x ,其实选默认的最新的也不关紧要。
删除所有不必要的件,只保留内存,CPU,网卡,显示器。再添加一张网卡:
打开虚拟机所在目录:
删除openwrt.vmdk这个虚拟机硬盘文件:
将先前转换的vmdk文件openwrt-19.07.5-x86-64-combined-ext4.vmdk复制到虚拟机所在目录,
重命名为:openwrt.vmdk
文件大小为19,136KB
回到VMware Workstation:打开openwrt电源
运行passwd命令修改root密码,以便远程登录:
修改网络配置:vi /etc/config/network
重启网络使修改生效:/etc/init.d/network restart
默认情况下,第一张网卡eth0是Lan,IP为:192.168.1.1
第二张网卡eth1为Wan,dhcp自动获取IP。
现在可以通过web登录192.168.1.1:
查看一下已经安装的软件:system — software:共安装117个软件。
3.远程登录到openwrt:
更换国内(清华的)软件源:
sed -i ‘s_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_’ /etc/opkg/distfeeds.conf
运行opkg update更新软件源:
VMware 虚拟机 安装open-vm-tools
opkg install open-vm-tools:
安装好后就可以看到虚拟机的网卡的IP:
软件数增加到:123
4. 安装KMS服务器:
下载这三个文件,用WinSCP上传到openwrt:
reboot
Services—KMS Server:
windows 10 激活成功:
5. 安装Passwall
安装passwall 要先删除dnsmasq,然后安装dnsmasq-full
opkg remove dnsmasq
然后安装passwall的依赖包:
ChinaDNS_1.3.2-8_x86_64.ipk
brook_20210101-1_x86_64.ipk
chinadns-ng_1.0-beta.22-2_x86_64.ipk
dns-forwarder_1.2.1-1_x86_64.ipk
dns2socks_2.0-20150628_x86_64.ipk
haproxy_2.0.12-1_x86_64.ipk
ipt2socks_1.0.1-2_x86_64.ipk
kcptun-client_20200103-2_x86_64.ipk
microsocks_1.0-1_x86_64.ipk
naiveproxy_87.0.4280.66-1-1_x86_64.ipk
pdnsd-alt_1.2.9b-par-a8e46ccba7b0fa2230d6c42ab6dcd92926f6c21d_x86_64.ipk
shadowsocks-libev-ss-server_3.3.0-1_x86_64.ipk
shadowsocksr-libev-alt_2.5.6-5_x86_64.ipk
shadowsocksr-libev-server_2.5.6-5_x86_64.ipk
shadowsocksr-libev-ssr-local_2.5.6-5_x86_64.ipk
simple-obfs_0.0.5-4_x86_64.ipk
ssocks_0.0.14-1_x86_64.ipk
ssocksd_0.0.14-1_x86_64.ipk
tcping_0.1-2_x86_64.ipk
trojan-go_0.8.2-1_x86_64.ipk
trojan-plus_10.0.3-1_x86_64.ipk
trojan_1.16.0-1_x86_64.ipk
v2ray-core_4.34.0-1_x86_64.ipk
v2ray-plugin_1.3.0-20200205_x86_64.ipk
xray_1.1.3-1_x86_64.ipk
将以上文件上传到openwrt同一目录中:
opkg install *.ipk
最后安装passwall: opkg install luci-app-passwall_4-3_all.ipk
安装成功,重启。
原文链接:https://blog.51cto.com/ganzy/2585435