Menu

#1 fwmark option

Unstable (example)
closed
nobody
None
5
2014-06-14
2010-08-10
Anonymous
No

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
...

Discussion

  • Nobody/Anonymous

    source code of patch

     
  • Dmitry Butskoy

    Dmitry Butskoy - 2010-08-11

    OK, I've understood the idea.

     
  • Dmitry Butskoy

    Dmitry Butskoy - 2014-06-14
    • status: open --> accepted
    • Group: --> Unstable (example)
     
  • Dmitry Butskoy

    Dmitry Butskoy - 2014-06-14
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB