本帖最後由 张无忌 於 2026-2-7 13:31 編輯
OpenWrt + PassWall + WireGuard + 安装
安装PassWall于ImmortalWrt比较简单,但是在OpenWrt v24.10.1要改动"dnsmasq"为"dnsmasq-full"。有个YouTube介绍安装过程 [1]。PassWall版本25.5.16-1 [2]。
有了OpenWrt,如果大陆安装packages就要大陆以外的OpenWrt repository server,比较时间长,在晚上可能有errors。在大陆有repository server代用,但是要改动一下:- sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
複製代碼 PassWall安装:
需要"dnsmasq"改变到"dnsmasq-full":- opkg update
- opkg remove dnsmasq && opkg install dnsmasq-full
複製代碼 去到[2], "Assets", get- luci-24.10_luci-app-passwall_25.5.16-r1_all.ipk
- luci-24.10_luci-i18n-passwall-zh-cn_25.135.62106.7b4fe5f_all.ipk
- passwall_packages_ipk_aarch64_cortex-a53.zip
複製代碼 Unzip "passwall_packages_ipk_aarch64_cortex-a53.zip" 成为 "passwall_packages_ipk_aarch64_cortex-a53", 然后把另外两个luci放在里面。然后用WinSCP,把"passwall_packages_ipk_aarch64_cortex-a53"放在"/root"。- cd passwall_packages_ipk_aarch64_cortex-a53
- opkg install *.ipk --force-reinstall
複製代碼 Goto OpenWrt click "Log out", and passward. You will see the "Services"->"Pass Wall"。
WireGuard (香港WireGuard server)使用
1. "Service"->"Pass Wall",
2. "Node List", any "Add",
3. "Node Remarks" fill in any remarks, e.g. "hkg",
4. "Type"="Sing-Box",
5. "Protocol"="WireGuard",
6. "Address (Support Domain Name)"=<endpoint address>,
7. "Port"=<endpoint port number>,
8. "Public Key",
9. "Private Key"
10. "Pre shared key",
11. "Local Address"=<address>, press "+",
12. "Save & Apply",
13. Click "Basic Settings",
14. "TCP Node"=select "Sing-Box WG: [hkg]",
15. "Main switch"=<tick>,
16. "Save & Apply",
17. "Systems"->"Reboot", wait 2 minutes for turning green。
测试:
看看YouTube and CCTV5能否看到。
Remarks:- wget -O pw-1.ipk https://github.com/xiaorouji/openwrt-passwall/releases/download/25.9.3-1/luci-24.10_luci-app-passwall_25.9.3-r1_all.ipk
- wget -O pw-2.ipk https://github.com/xiaorouji/openwrt-passwall/releases/download/25.9.3-1/luci-24.10_luci-i18n-passwall-zh-cn_25.245.60910.793e860_all.ipk
- opkg install *.ipk --force-reinstall
複製代碼 1. 当有"Passwall Version" update,要在"https://github.com/xiaorouji/openwrt-passwall/releases/download/25.8.26-1/luci-24.10_luci-app-passwall_25.8.26-r1_all.ipk"下载和"https://github.com/xiaorouji/openwrt-passwall/releases/download/25.8.26-1/luci-24.10_luci-i18n-passwall-zh-cn_25.238.12513.368371e_all.ipk"下载,用WinSCP copy到root,然后opkg install *.ipk --force-reinstall,然后再PassWall App Update看看PassWall Version是否有updated到!!!
2. System->Software, Filter=passwall, Installed=luci-app-passwall
References:
[1] OpenWrt的核心插件之passwall的安装
[2] Openwrt-Passwall / openwrt-passwall
Old:
[2] xiaorouji openwrt-passwall releases
目录帖子GL.iNet and OpenWrt Contents |