Skip to content
clowwindy edited this page Oct 6, 2014 · 7 revisions
  1. Download chnroutes script. You may want to replace pppoe-wan with your actual WAN interface. For example, gw 10.0.1.1.

  2. Save it to /etc/shadowvpn/chnroutes.sh. Then

     chmod +x /etc/shadowvpn/chnroutes.sh
    
  3. Create /etc/hotplug.d/iface/35-chnroutes

     #!/bin/sh
     [ ifup = "$ACTION" ] && {
       [ wan = "$INTERFACE" ] && {
          /etc/shadowvpn/chnroutes.sh
       }
     }
    
  4. Restart network

     /etc/init.d/network restart