FunWithElectronics.com
          - Collection of Information for those with Electronics as a Hobby
Up one level (Linux command line)

Policy based routing Linux





Create new table "custom":
echo 200 custom >> /etc/iproute2/rt_tables
Set which IPs will look up in table "custom"
ip rule add from 192.168.1.6 lookup custom
Then populate routing table:
ip route add default via 10.9.8.1 dev tun0 table custom
Other commands:
ip rule list
ip route list table custom



Add a comment:

Fill in number
Name:
Title:
Text:
 


Privacy | Contact