linux route basic tutorial
Contents
ip rule and ip route
the packet is first matched against ip rules and then directed to specific ip table to match ip route rules
|
|
these three rules are created by the kernel
the number is the matching priority
from all means all packets
|
|
so all the packets will first try to match route rules in the local route table. if no match is found, it will try the main table and then the default table
this is called policy based routing. you can add your own policies and route tables
debug route rules
to determine which route rule has been matched
|
|
add route rules
|
|