LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: persistance dependencies??

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: persistance dependencies??
From: Jeremy Hansen <jeremy@xxxxxxxxxxxxxx>
Date: Tue, 9 Dec 2003 17:18:05 -0800 (PST)
On Wed, 10 Dec 2003, Roberto Nibali wrote:

> Hello,
> 
>  > What happens
> > is that when they successfully authenticate using pop and then go to use 
> > smtp, they have a change of hitting the wrong server and their relaying 
> > gets denied.  I would like to say that using persistance on port 110, 
> > whatever server they end up with is the same server they'll end up with 
> > for port 25.  Is this possible?
> 
> Yes, you can address this issue with 2 solutions:
> 
> 1. Use the port 0 with persistency feature (read the ipvsadm man page)
> 2. Use persistent fwmarks (check the HOWTO or the list for examples)
> 
> 
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.persistent_connection.html#port_0

So I attempted to use the method above using port 0 and for some reason it 
didn't go so well.  These are my ldirectord.cf entries:

# pop
virtual=208.37.31.234:0
        real=208.37.31.236:110 gate
        real=208.37.31.237:110 gate
        service=pop
        scheduler=wlc
        #login="test"
        #passwd="test"
        persistent=900
        protocol=tcp

# smtp
virtual=208.37.31.234:0
        real=208.37.31.236:25 gate
        real=208.37.31.237:25 gate
        service=smtp
        scheduler=wlc
        #login="test"
        #passwd="test"
        persistent=900
        protocol=tcp

but then just a single entry showed up in ipvsadm -L -n:

TCP  208.37.31.234:0 wlc persistent 900
  -> 208.37.31.237:0              Route   1      0          0         
  -> 208.37.31.236:0              Local   1      0          0         

and connections to 208.37.31.234 port 110 and 25 are being refused.  What 
am I doing wrong.

Thanks for the help.
-jeremy

> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.fwmark.html
> 
> Best regards,
> Roberto Nibali, ratz
> 

<Prev in Thread] Current Thread [Next in Thread>