給原版的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

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