fwmark option
Brought to you by:
buc
This patch add fwmark option.
Example of usage:
#ip rule ls
8: from all fwmark 0x11 lookup vrf2
9: from all fwmark 0x10 lookup vrf1
10: from all lookup local
32766: from all lookup main
#ip route ls table vrf2
default via 10.10.20.254 dev eth0.13
#ip route ls table vrf1
default via 91.193.236.62 dev eth0.6
#./traceroute --fwmark=16 www.ya.ru
traceroute to www.ya.ru (87.250.251.3), 30 hops max, 60 byte packets
1 91.193.236.62 (91.193.236.62) 0.277 ms 0.269 ms 0.213 ms
...
#./traceroute --fwmark=17 www.ya.ru
traceroute to www.ya.ru (87.250.251.3), 30 hops max, 60 byte packets
1 10.10.20.254 (10.10.20.254) 0.168 ms 0.162 ms 0.173 ms
...
source code of patch
OK, I've understood the idea.