Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2009 14:39:40 -0300
From:      "Raul I. Becette" <raulbecette@unp.edu.ar>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        FreeBSD Users <freebsd-questions@freebsd.org>
Subject:   Re: Gateway load balance
Message-ID:  <4A3A7BDC.1010106@unp.edu.ar>
In-Reply-To: <alpine.BSF.2.00.0906172008220.35972@wojtek.tensor.gdynia.pl>
References:  <4A39254F.6000603@unp.edu.ar> <alpine.BSF.2.00.0906172008220.35972@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

>> I had a proxy server (Squid + Dansguardian) under Slackware on the 
>> LAN which, via 'ip route' I make it use 3 gateways connected each one 
>> to an ADSL line and balance the requests.
>> Unfortunately my server crashed and I took the oportunity to install 
>> a new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are 
>> working fine. My problem is that I don't know how to make the server 
>> use the other 2 gateways I have left and balance the requests on all 
>> ADSL lines.
>
>
> use ipfw and fwd command.
>
> for example with output section
>
> add 10000 fwd gw1_IP from DSL1_subnet to any via gw1_ethernet
> add 10001 fwd gw2_IP from DSL2_subnet to any via gw2_ethernet
> add 10002 fwd gw3_IP from DSL3_subnet to any via gw3_ethernet

for my scenario I asume gwX_IP the IP address of my dsl gateways. What 
would be DSLX_subnet and gwX_ethernet?
The proxy has only 1 NIC. Just to be sure: gateway_enable="YES" must be 
set in /rtc.rc.conf and the kernel must be recompiled with ip forwarding 
capabilities?


>
> please do treat above as an example of course.
>
> Of course use right squid commands so it will select right source IP 
> based on the rules you want, but as you already did id under linux i 
> assume you have this practiced already.

Under Linux I didn't used squid commands to do the balancing. Only 
defining the 3 gateways with ip route command.
Is it possible to do the same with ipfw as you mentioned above?


>
> i had 5+2 Polish Telecom links connected to one server - worked fine.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A3A7BDC.1010106>