Hey,
This is doable under certain conditions:
When using the TUN method and you have outbound proxies:
internal client --> LB --> web proxy ->> gw1,gw2,gw3
We currently are able to load balance out bound web connections from
internal clients who are browsing the internet using LVS and two
transparent proxy servers.
You need to do a few things on the LVS server:
1. Using ip route set it up so all traffic is delivered locally
2. Using iptables mark all incoming request
3. Setup LVS to load balance all incoming request with a fwmark ;)
Then your proxies server can cache and route external request to
different gateways or each proxy could use a different gateway or your
gateway device can load balance the external links on it's own.
You may be able to remove the proxies by using the LVS DR method ...
however I have not tested that.
Michael
Graeme Fowler wrote:
> On Tue, 2008-02-05 at 16:45 +0100, Greg wrote:
>> I want to do the staff that LVS do :
>> internet client ---> LB server with LVS ---> round-robin internal server
>> NATed
>>
>> but in reverse order :
>>
>> internal server ---> LB server with round-robin SNAT ip ---> internet server
>
> I think the short answer is: you can't. At least, not with LVS. LVS
> requires a defined set of target servers; you're talking about target
> *routes*.
>
> You probably can do this with netfilter/iptables and advanced routing
> using iproute2, but it's outside the scope of this mailing list.
>
> Graeme
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
--
Michael Gale
Red Hat Certified Engineer
Network Administrator
Pason Systems Corp.
"Raising Elephants Is So Utterly Boring"
|