Â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 ls
0: Â Â Âfrom all lookup 255Â
32762: Âfrom all fwmark 0x2 lookup FirstLanÂ
32763: Âfrom all fwmark 0x1 lookup SecondLanÂ
32764: Âfrom 172.25.80.10 lookup SecondLanÂ
32765: Âfrom 172.25.70.18 lookup FirstLanÂ
32766: Âfrom all lookup mainÂ
32767: Âfrom all lookup default
My routing tables:
[root@lothlorien net]# ip ro show table FirstLan
172.25.70.16/28 dev eth1 Âproto kernel Âscope link Âsrc 172.25.70.18Â
default via 172.25.70.30 dev eth1
[root@lothlorien net]# ip ro show table SecondLan
172.25.80.0/24 dev eth1 Âproto kernel Âscope link Âsrc 172.25.80.10
default 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
But this doesn't works. This host is CentOS 5.5 based with two interfaces.
ÂWhat am I doing wrong??
ÂThanks.
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos