Re: Routing for multiple interfaces (marking ports)

Linux Advanced Routing and Traffic Control

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

 



hi

Nataniel Klug wrote:
> [root@ns2 iproute2]# ip rule
> 0:      from all lookup local
> 50:     from all lookup main
> 201:    from 200.163.208.0/26 lookup 201
> 202:    from 10.1.1.0/24 lookup 202
> 210:    from all fwmark 0x2 lookup 202
> 222:    from all lookup 222
> 32766:  from all lookup main
> 32767:  from all lookup default
> 
>     This prio reads tables from lower prio (0) to higher prio (32767) or it
> makes reading this the other way?

0 is the highest priority, this means the first rule which will be used.
so you must give your fwmark rule a higher priority, let's say 200, in
order to have it working. otherwise the rules with prio 201 let's go
packages from 200.163.208/26 to the link in 201 regardless of it's mark.

peter

-- 
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.it   :: peter@xxxxxxxxx
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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