Read more about Install PassWall2 on OpenWrt router.
-
Open your terminal (or SSH client) and connect to the router:
-
Update the package list:
opkg update
-
Install OpenSSH SFTP Server:
opkg install openssh-sftp-server
-
Download WARP PLUS based on your Router's CPU Architecture
Extract the file and RENAME the binary file to > warp
-
Transfer the file to the Router > /usr/bin (with tools like WinSCP, VSCode, ...)
-
Make it executable in OpenWrt:
chmod +x /usr/bin/warp
-
Create System Service file for WARP:
vi /etc/init.d/warp
Switch to Insert mode (Press i) & Paste this text block:
#!/bin/sh /etc/rc.common
START=91
USE_PROCD=1
PROG=/usr/bin/warp
start_service() {
args=""
args="$args -b 127.0.0.1:9090 --scan"
procd_open_instance
procd_set_param command $PROG $args
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}
Save & exit the editor (Esc > :x)
-
Change the permissions of the Service file:
chmod 755 /etc/init.d/warp
-
Enable & Start service and check the status:
service warp enable service warp start service warp status
-
Go to Luci-app (OpenWrt web) > Passwall2 and create a sockes config to:
127.0.0.1:9090
and Enable Main switch & Socks Config