Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created May 28, 2013 19:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save scottslowe/5665588 to your computer and use it in GitHub Desktop.
This snippet of configuration from /etc/network/interfaces shows how to add custom policy routing rules and custom routes when the interface is brought up
auto tep0
iface tep0 inet static
address 192.168.200.10
netmask 255.255.255.0
network 192.168.200.0
broadcast 192.168.200.255
post-up ip rule add from 192.168.200.10 lookup tunnel
post-up ip route add default via 192.168.200.1 dev tep0 table tunnel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment