给原版的openwrt安装Passwall

要求原版和极致精简的OpenWRT,自己动手安装自己需要的插件。

1.官网下载最新的OpenWRT: Current Stable Release - OpenWrt 19.07.5:

https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-combined-ext4.img.gz

image

image

 

解压出img文件:openwrt-19.07.5-x86-64-combined-ext4.img

用StarWind V2V Converter 转换成vmdk文件:

image

image

image

 

image

image

image

image

2. 新建VMware Workstation 虚拟机OpenWRT:

image

image

为了更好的兼容性,虚拟机硬件选择Workstation 10.x ,其实选默认的最新的也不关紧要。

image

image

image

image

image

image

image

image

image

image

image

image

image

image

删除所有不必要的件,只保留内存,CPU,网卡,显示器。再添加一张网卡:

image

image

image

image

打开虚拟机所在目录:

image

删除openwrt.vmdk这个虚拟机硬盘文件:

image

image

将先前转换的vmdk文件openwrt-19.07.5-x86-64-combined-ext4.vmdk复制到虚拟机所在目录,

image

重命名为:openwrt.vmdk

image

文件大小为19,136KB

回到VMware Workstation:打开openwrt电源

image

image

运行passwd命令修改root密码,以便远程登录:

image

修改网络配置:vi /etc/config/network

默认情况下,第一张网卡eth0是Lan,IP为:192.168.1.1

第二张网卡eth1为Wan,dhcp自动获取IP。

image

 

现在可以通过web登录192.168.1.1:

image

image

查看一下已经安装的软件:system -- software:共安装117个软件。

image

3.远程登录到openwrt:

更换国内(清华的)软件源:

sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

image

运行opkg update更新软件源:

image

VMware 虚拟机 安装open-vm-tools

opkg install open-vm-tools:

imageimage

安装好后就可以看到虚拟机的网卡的IP:

image

软件数增加到:123

image

4. 安装KMS服务器:

下载所需的ipk:https://op.supes.top/packages/x86_64/

image

下载这三个文件,用WinSCP上传到openwrt:

image

image

image

image

 

reboot

Services---KMS Server:

image

 

windows 10 激活成功:

image

 

5. 安装Passwall

安装passwall 要先删除dnsmasq,然后安装dnsmasq-full

opkg remove dnsmasq

image

 

然后安装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-***-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

image

最后安装passwall: opkg install luci-app-passwall_4-3_all.ipk

image

image

安装成功,重启。

image

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章