[lvs-users] lvs masq response package not getting picked up

Klavs Klavsen kl at vsen.dk
Mon Aug 13 12:54:21 BST 2012


Appearently they are going through FORWARD - with the source IP of the 
backend - instead of the sourceIP of the VIP - that the client actually 
accessed.

Also - for some reason there's no state - so I had to allow ALL packages 
with source-port of 80 or 443 in the FORWARD chain.

Not exactly great for a secure setup :(

Graeme Fowler said the following on 08/13/2012 01:46 PM:
> On Mon, 2012-08-13 at 13:20 +0200, Klavs Klavsen wrote:
>> Chain FORWARD (policy DROP)
>> target     prot opt source               destination
>> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW
>> tcp dpt:80
>> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW
>> tcp dpt:443
>> ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state
>> RELATED,ESTABLISHED
>> REJECT     all  --  0.0.0.0/0            0.0.0.0/0 reject-with
>> icmp-host-prohibited
> I'm not 100% sure, but it looks like this is your problem. Remove those
> rules and see what happens.
>
> * I say "not sure" because I'm not sure whether the incoming packets
> will traverse the FORWARD chain or be hoiked past it by ipvs.
>
> Graeme
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users


-- 
Regards,
Klavs Klavsen, GSEC - kl at vsen.dk - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer





More information about the lvs-users mailing list