I had a similar problem, so I wrote the mark as 0x1 :
On Wed, Oct 13, 2010 at 11:22 AM, C. L. Martinez <carlopmart@gmail.com> wrote:
Hi all,
I need to route local generated packages depending on which tcp or udp service I need to use. To accomplish this I have configured two routing tables:
[root@lothlorien ~]# ip ru ls0: from all lookup 25532762: from all fwmark 0x2 lookup FirstLan32763: from all fwmark 0x1 lookup SecondLan32764: from 172.25.80.10 lookup SecondLan32765: from 172.25.70.18 lookup FirstLan32766: from all lookup main32767: from all lookup default
My routing tables:
[root@lothlorien net]# ip ro show table FirstLan172.25.70.16/28 dev eth1 proto kernel scope link src 172.25.70.18default via 172.25.70.30 dev eth1
[root@lothlorien net]# ip ro show table SecondLan172.25.80.0/24 dev eth1 proto kernel scope link src 172.25.80.10default via 172.25.80.1 dev eth2
And my iptables rule is:
iptables -t mangle -A OUTPUT -p udp --dport 53 -j MARK --set-mark 1