Re: Route policy preference value

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ming-Ching,

 : Assuming if I have rules matching the same packet, the one chosen
 : is the lower preference value or the high ?
 :
 : For example
 :
 : # ip rule list
 :
 : ....
 : 100 from  192.168.1.0/24 lookup main
 : 200 from all fwmark 5 lookup first
 : .....
 :
 : Packet is matching both rules, the one with priority/preference
 : 100 or 200 is selected ?

The first matched rule in the routing policy database (RPDB) is the
one chosen.  Rules are traversed from 0 to 32767.  If a route match
is found for a given packet in a specified table, that route is
used.  If no match is found in a given table, the
(sequential) traversal of the RPDB continues.

See also this description:

  http://linux-ip.net/html/routing-selection.html#routing-selection-adv

Good luck,

-Martin

--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@xxxxxxxxxxxxxx
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux