On Wed, Oct 13, 2010 at 11:22 AM, C. L. Martinez <carlopmart@xxxxxxxxx> 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 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 defaultMy routing tables:[root@lothlorien net]# ip ro show table FirstLan172.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 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 1But this doesn't works. This host is CentOS 5.5 based with two interfaces.ÂWhat am I doing wrong??ÂThanks.
Please, any hints?
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos