- 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 lookup custom
Then populate routing table:
ip route add default via dev tun0 table custom
Other commands:
ip rule list
ip route list table custom

Add a comment:

Fill in number

Privacy | Contact