[LARTC] Loadbalancing how to ? ? ? ?

Robert Kurjata rkurjata at ire.pw.edu.pl
Sat Jul 2 20:39:54 CEST 2005


Witaj Cao,

W Twoim liœcie datowanym 2 lipca 2005 (17:40:05) mo¿na przeczytaæ:

CVK> I have 2 ADSL ad1 and ad2 , one PC for my firewall and some
CVK> deamon on it with 3 ethernet : eth0 connect to my LAN (

This question comes and goes on this list :)

Please read information at: http://www.ssi.bg/~ja/ , especially http://www.ssi.bg/~ja/nano.txt
and you can try my script http://www.ssi.bg/~ja/tmp/mpath2.sh to
load balance 2 (or more - I was using 4) connections with great
success. No daemon needed :)

There are also other solutions in list archive.

IMHO the routing code has precedence over iptables so it chooses the
outgoing interface over which the iptables will SNAT in input routing
process. And thats why you will not see the effect in this setup (thi
interface has already been chosen). It is possible (and
reasonable) to SNAT to multiple IPs residing on one interface.

Correct me if I'm wrong, please...:)

-- 
Greetings,
 Robert Kurjata



More information about the LARTC mailing list