We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Download chnroutes script. You may want to replace pppoe-wan with your actual WAN interface. For example, gw 10.0.1.1.
pppoe-wan
gw 10.0.1.1
Save it to /etc/shadowvpn/chnroutes.sh. Then
/etc/shadowvpn/chnroutes.sh
chmod +x /etc/shadowvpn/chnroutes.sh
Create /etc/hotplug.d/iface/35-chnroutes
/etc/hotplug.d/iface/35-chnroutes
#!/bin/sh [ ifup = "$ACTION" ] && { [ wan = "$INTERFACE" ] && { /etc/shadowvpn/chnroutes.sh } }
Restart network
/etc/init.d/network restart