Transparent proxy support for LVS with localnode and realservers (WORKING) (fwd)
Hi Raphael,
I didn't see lvs-devel on the cc list. Hope you
don't mind if I forward this.
Joe
Signature · 13 lines
Joseph Mack NA3T EME(B,D), FM05lw North Carolina jmack (at) wm7d (dot) net - azimuthal equidistant map generator at http://www.wm7d.net/azproj.shtml Homepage http://www.austintek.com/ It's GNU/Linux! ---------- Forwarded message ---------- Date: Thu, 10 Jan 2008 15:14:23 +0100 From: Raphael Vallazza <[email protected]> To: Joseph Mack NA3T <[email protected]> Subject: Re: [PATCH] Transparent proxy support for LVS with localnode and realservers (WORKING) Hello,
Quoted 6 lines
Quoted 4 lines
i wrote a very simple patch for ipvs that enables a kernel config option that allows to choose where IPVS intercepts incoming connections. These are the options:
-LOCAL_IN(default: works as usual)
-PRE_ROUTING(puts LVS input right after the mangle PREROUTING and before
the nat PREROUTING chain)neat. I thought it was hard enough to move that it wouldn't be just an option :-)
Hehe, yes, it was pretty easy ;)
Quoted 1 line
what we'd really like is ipvs hooked into the FORWARD chain. Can you do this too?
To be honest i don't understand the reason for hooking LVS into the FORWARD chain, because this way it would not get the LOCAL_IN traffic and at the same time it would have the same NAT problem as with the LOCAL_IN hook. Maybe i'm missing something, but it seems that PREROUTING is the best point for LVS to act like a real router, because it gets packets that haven't been NATed yet. The only negative thing is that traffic can't be filtered in a regular way, but using fwmark and the mangle table the user can select the traffic that has to be handled by LVS.
If you like i can also add this option, but i'm not sure if it's really useful :)
Quoted 3 lines
Quoted 1 line
I tried it on some test boxes and it seems to work pretty well, i'll do some stress testing in the next few days. I could send you a setup example if you like...
yes please
Ok, i'll try to write a short document/example ASAP.
Bye,
Raphael
Signature · 6 lines
:: e n d i a n :: open source - open minds :: raphael vallazza :: phone +39 0471 631763 :: fax +39 0471 631764 :: http://www.endian.com :: raphael (AT) endian.com