Seems like this should be a simple question, but I've looked around and have not found an obvious location to keep custom policy based routing rules in Ubuntu.
/etc/network/if-up.d comes to mind, but I was wondering is that was a "standard" spot. Also it doesn't seem like these rules really need to run each time an interface is up'ed or down'ed.
Commands that need to be run are things like:
ip rule add from 192.168.1.1/32 table blahblah
ip route add 192.168.1.0/24 dev eth1 table blahblah
Bookmarks