Skip to contentSkip to conversation

Iproute + masquerade on 2 ISP with traffic blancing...

LARTC Giorgio Biondi 1 participant 1 message Aug 3, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I have a linux-box with 3 eth, 2 of us go into 2 ISP. My localnet is masquerade with this rule:

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)

target     prot opt source               destination         
SNAT       all  --  10.0.0.0/16          anywhere           to:211.56.233.186 
SNAT       all  --  10.0.0.0/16          anywhere           to:211.13.8.50 

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

[root@fw /root]# ip route show
211.56.233.184/29 dev eth1 proto kernel scope link src 211.56.233.186 211.13.8.48/28 dev eth2 proto kernel scope link src 211.13.8.50 211.13.13.0/24 via 212.13.8.49 dev eth2
10.0.0.0/16 dev eth0 proto kernel scope link src 10.0.1.2 127.0.0.0/8 dev lo scope link
default

	nexthop via 211.56.233.185  dev eth1 weight 10
	nexthop via 211.13.8.49  dev eth2 weight 1

...and all work well (seems...)

My traffic in reality go to in the first masquerade interface (in this case go to all in the eth1) indipendly from value 'weight'....

Where are wrong???

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/