Skip to content

Instantly share code, notes, and snippets.

@xingrz
Created March 21, 2015 09:28
Show Gist options
  • Save xingrz/d8bd6a2623f119317fc6 to your computer and use it in GitHub Desktop.
Save xingrz/d8bd6a2623f119317fc6 to your computer and use it in GitHub Desktop.

/etc/config/network

config route
        option interface 'vpn'
        option target '0.0.0.0'
        option netmask '0.0.0.0'
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.4.210    172.16.162.254  255.255.255.255 UGH   0      0        0 eth0.2
10.10.10.1      0.0.0.0         255.255.255.255 UH    0      0        0 pptp-vpn
172.16.162.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.2
192.168.31.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.30.0    0.0.0.0         255.255.255.0   U     0      0        0 br-guest
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 pptp-vpn  <-- !!!
0.0.0.0         172.16.162.254  0.0.0.0         UG    50     0        0 eth0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment