Using chnroutes - Liqianyu/ShadowVPN GitHub Wiki
-
Download chnroutes script.
-
Save it to
/etc/shadowvpn/chnroutes.sh
. Thenchmod +x /etc/shadowvpn/chnroutes.sh
-
Create
/etc/hotplug.d/iface/35-chnroutes
#!/bin/sh [ ifup = "$ACTION" ] && { [ wan = "$INTERFACE" ] && { /etc/shadowvpn/chnroutes.sh } }
-
Restart network
/etc/init.d/network restart