multiple uplink which patch?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do I need any patches for setting up load balancing between 2 uplinks? I
don't need NAT, I just have a squid proxy server and on the same linux rh9
computer I have 2 uplinks (adsl+cable modem) and all I want is squid to use
load balancing on these links.
I have kernel 2.4.21 now and I have done the setup for load balancing, even
put the "equalize" switch in the command to add default route and it works
and sometimes does not, routes stay in cache and if a try www.google.com 2
or 3 times I see that it goes out on the same interface as the first time.
If I try more addresses, eventually some will go out on the second interface
but it seems to me that the equlize flag doen't work if it does this, right?

Or maybe I need a patch or something for squid? Or maybe I need to
enable/disable some specific config option in squid.conf ? (I didn't enable
tcp_outgoing_address in squid conf so it's free to go out on any interface)

I don't need connection based balancing.... (one address going trough eth1
and another trough eth2, but packed balancing.. first packet trough eth1,
second trough eth2... that's why I have the equalize flag set but....)

Maybe I'm missing something...

Thanks for help.

Alex

btw, on lartc.org in the howto at split access section there is a mention
about

"Reader Rod Roark notes: 'If $P0_NET is the local network and $IF0 is its
interface, the following additional entries are desirable:

ip route add $P0_NET     dev $IF0 table T1
ip route add $P2_NET     dev $IF2 table T1
ip route add 127.0.0.0/8 dev lo   table T1
ip route add $P0_NET     dev $IF0 table T2
ip route add $P1_NET     dev $IF1 table T2
ip route add 127.0.0.0/8 dev lo   table T2

Do I need these entries if I don't use NAT ?


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux