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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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