On 10/15/2010 08:48 AM, C. L. Martinez wrote:
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 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
default via 172.25.70.30 dev eth1
[root@lothlorien net]# ip ro show table SecondLan
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
I had a similar problem, so I wrote the mark as 0x1 :
iptables -t mangle -A OUTPUT -p udp --dport 53 Â-j MARK --set-mark
0x1
--
MM
|
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos