运维开发网

给原版的openwrt安装Passwall

运维开发网 https://www.qedev.com 2021-01-12 12:38 出处:51CTO 作者:ganzy
要求原版和极致精简的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

要求原版和极致精简的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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

 

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

用StarWind V2V Converter 转换成vmdk文件:

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

 

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

2. 新建VMware Workstation 虚拟机OpenWRT:

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

打开虚拟机所在目录:

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

重命名为:openwrt.vmdk

给原版的openwrt安装Passwall

文件大小为19,136KB

回到VMware Workstation:打开openwrt电源

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

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

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

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

给原版的openwrt安装Passwall

 

现在可以通过web登录192.168.1.1:

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

3.远程登录到openwrt:

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

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

给原版的openwrt安装Passwall

运行opkg update更新软件源:

给原版的openwrt安装Passwall

VMware 虚拟机 安装open-vm-tools

opkg install open-vm-tools:

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

软件数增加到:123

给原版的openwrt安装Passwall

4. 安装KMS服务器:

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

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

 

reboot

Services---KMS Server:

给原版的openwrt安装Passwall

 

windows 10 激活成功:

给原版的openwrt安装Passwall

 

5. 安装Passwall

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

opkg remove dnsmasq

给原版的openwrt安装Passwall

 

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

给原版的openwrt安装Passwall

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

给原版的openwrt安装Passwall

给原版的openwrt安装Passwall

安装成功,重启。

给原版的openwrt安装Passwall

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号