Run this command in your router's SSH terminal
sh <(wget -O - https://raw.githubusercontent.com/SlenderSolo/passwall2-install-openwrt/master/install.sh)
Before downloading files, you need to know your router's architecture (e.g., aarch64_cortex-a53, mips_24kc).
- Log in to the Web Interface.
- Navigate to System → Software.
- Click Update lists to refresh the package database.
- Look for your architecture in the download links after
/packages/(e.g. aarch64_cortex-a53)
- Visit the Passwall2 Releases Page.
- Download the following files:
luci-app-passwall2_all.ipkpasswall_packages_ipkzip file matching your architecture (found in Step 1).
- Unzip the
passwall_packagesarchive on your computer. You will need the files inside it for Step 4.
Warning
This step involves removing dnsmasq and deleting DHCP configurations. This may temporarily disrupt your network or require you to reconfigure DHCP settings later. Proceed with caution.
-
Connect to the router via SSH using cmd:
ssh root@192.168.1.1
-
Update the package repositories:
opkg update
-
Swap dnsmasq for dnsmasq-full: Remove the default version and clean up the config:
opkg remove dnsmasq
rm -rf /etc/config/dhcp
-
Install dependencies: Install the full version of dnsmasq and required kernel modules:
opkg install dnsmasq-full kmod-nft-socket kmod-nft-tproxy kmod-nft-nat
- Go to System → Software.
- Click the Upload Package button.
- Locate the folder where you unzipped the
passwall_packagesarchive. - Upload and install the following packages one by one (Xray-core first is recommended):
xray-corev2ray-geoipv2ray-geositegeoviewchinadns-ngtcpingsing-box (Optional)hysteria (Optional)- (Optional) Install any other packages from the folder if you specifically need them.
- Click Upload Package again.
- Select the
luci-app-passwall2_all.ipkfile you downloaded earlier and install it. - Relogin to the web interface or press
Ctrl + F5to refresh the cache, Passwall2 will then appear under the Services tab. REBOOTrouter