Skip to contentSkip to conversation

same gw / load balancing

LARTC Guillermo 2 participants 2 messages Nov 18, 2004 – Nov 19, 2004

lore
Share & tools
lore

Guillermo

author
#0 lore raw

Hi

I want to use two dsl (or more) lines to increase my internet bandwidth. Our dsl lines are dhcp serviced, so when we pull together two dsl modems, both of them provide the same def gw and different ip in the same subnet (i also assume that arping gives the same MAC for the def gw since it's a bridged network).

¿Is it possible to balance outgoing traffic "using" the interface as a criteria? No point on choosing gateway, it's the same both ways.

What i thought so far is:

1.- If the request comes from the right source ip addres (dhcp provided) in my Linux box, it will go through the right dsl modem and ethernet interface. Then i need to use some kind of general ip-proxying if i want to build a load balancing gw with dsl lines in my country.

2.- The ip-proxy has to balance the traffic o i could use two proxies being balanced by a previous method (mangling, prerouting, redirecting, marking packets...)

3.- I don't think i can use iptables snat o masquerade because that occurs in postrouting chain. In fact the routing decision will always be "use the def gw", the points is which interface to use. That's why i asked for the interface as routing criteria.

¿Could someone give me a clue on how to deal with this in the simplest manner? (first time with this topic for me).

Guillermo

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

#1 lore raw

On Thu, 18 Nov 2004 18:25:47 -0400, Guillermo wrote

Quoted 1 line

Hi

Hi

Quoted 10 lines

1.- If the request comes from the right source ip addres (dhcp provided) in my Linux box, it will go through the right dsl modem and ethernet interface. Then i need to use some kind of general ip- proxying if i want to build a load balancing gw with dsl lines in my country.

2.- The ip-proxy has to balance the traffic o i could use two proxies being balanced by a previous method (mangling, prerouting, redirecting, marking packets...)

Quoted 7 lines

3.- I don't think i can use iptables snat o masquerade because that occurs in postrouting chain. In fact the routing decision will always be "use the def gw", the points is which interface to use. That's why i asked for the interface as routing criteria.

Could someone give me a clue on how to deal with this in the simplest manner? (first time with this topic for me).

Try to use nth match and connmark match and target from netfilter.org patch-o-matic.

Quoted 1 line

Guillermo

--
Kind regards,
Tomasz Chilinski

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