LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] request/receive issue using simpletcp

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] request/receive issue using simpletcp
Cc: Rick Deuschle <rickd@xxxxxxxxxxxxxxxxxxxx>, Michael Peters <MRPeters@xxxxxxxxxxxxxx>
From: Niles Ingalls <nilesi@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Oct 2010 13:18:18 -0400
Hello lvs-users,

I'm having a problem doing request receive authentication that I'm unable to 
resolve on my own.

I'm using the ldirectord version that comes with debian 5 supplied with 
Linux-HA (2.1.3-6lenny4)
I've also tested this with dowload/ldirectord-latest from the ldirectord 
download page. 
(http://horms.net/projects/ldirectord/download/ldirectord-latest).

I'm using ldirectord for load balancing 3M Standard Interchange Protocol (also 
known as SIP, not to be confused for Session Initiation Protocol)

Here's what the config looks like.

virtual=192.168.80.2:6001
        real=192.168.80.25:6001 masq
        request="9300CNredacted|redacted|AY0AZF63B"
        receive="^941AY0AZFDFD"
        service=simpletcp


My problem is that the request sent to the running service on 192.168.80.25 is 
prefixed with \

(tcpdump shows the same thing \ )


Here are the logs from my SIP server showing the forward slash. SIP server does 
not like this!

Oct  7 11:01:23 xenb2sip acs-server: Checksum failed on message 
'/9300CNredacted|redacted|AY0AZF63B'
Oct  7 11:01:23 xenb2sip acs-server: raw_transport: LOGIN FAILED
Oct  7 11:01:24 xenb2sip acs-server: Inbound connection from 192.168.80.25 on 
port 6001 and proto TCP
Oct  7 11:01:24 xenb2sip acs-server: Configuration::find_service: Trying 
6001/tcp
Oct  7 11:01:24 xenb2sip acs-server: Configuration::find_service: Trying 
*:6001/tcp
Oct  7 11:01:24 xenb2sip acs-server: Configuration::find_service: Trying 
192.168.80.25:6001/tcp
Oct  7 11:01:24 xenb2sip acs-server: raw_transport: timeout is 300
Oct  7 11:01:27 xenb2sip acs-server: INPUT MSG: 
'/9300CNredacted|redacted|AY0AZF63B'
Oct  7 11:01:27 xenb2sip acs-server: Checksum failed on message 
'/9300CNredacted|redacted|AY0AZF63B'
Oct  7 11:01:27 xenb2sip acs-server: raw_transport: LOGIN FAILED



Here's the output of ldirectord in debug, also showing undesired forward slash.

xenldirector:/usr/sbin# /usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start
DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
DEBUG2: Invoking ldirectord invoked as: /usr/sbin/ldirectord 
/etc/ha.d/ldirectord.cf start 
Invoking ldirectord invoked as: /usr/sbin/ldirectord /etc/ha.d/ldirectord.cf 
start 
DEBUG2: Starting Linux Director v1.186-ha-2.1.3 with pid: 22968
Starting Linux Director v1.186-ha-2.1.3 with pid: 22968
DEBUG2: Running system(/sbin/ipvsadm -A -t 192.168.80.2:6001 -s rr )
Running system(/sbin/ipvsadm -A -t 192.168.80.2:6001 -s rr )
DEBUG2: Added virtual server: 192.168.80.2:6001
Added virtual server: 192.168.80.2:6001
DEBUG2: Disabled real 
server=negotiate:simpletcp:tcp:192.168.80.25:6001:::1:masq:\/9300CNredacted\|COredacted\|AY0AZF63B:\^941AY0AZFDFD
 (virtual=tcp:192.168.80.2:6001)
DEBUG2: Checking negotiate: real 
server=negotiate:simpletcp:tcp:192.168.80.25:6001:::1:masq:\/9300CNredacted\|COredacted\|AY0AZF63B:\^941AY0AZFDFD
 (virtual=tcp:192.168.80.2:6001)
DEBUG2: Checking simpletcp server=192.168.80.25 port=6001
DEBUG3: Connected from 192.168.80.2:52429 to 192.168.80.25:6001
DEBUG2: Checking simpletcp server=192.168.80.25 port=6001 request:
/9300CNredacted|COredacted|AY0AZF63B
DEBUG2: Disabled real 
server=negotiate:simpletcp:tcp:192.168.80.25:6001:::1:masq:\/9300CNredacted\|COredacted\|AY0AZF63B:\^941AY0AZFDFD
 (virtual=tcp:192.168.80.2:6001)
DEBUG3: Deactivated service 192.168.80.25:6001: Timeout Alarm at 
/usr/sbin/ldirectord line 3022.
DEBUG2: Checking negotiate: real 
server=negotiate:simpletcp:tcp:192.168.80.25:6001:::1:masq:\/9300CNredacted\|COredacted\|AY0AZF63B:\^941AY0AZFDFD
 (virtual=tcp:192.168.80.2:6001)
DEBUG2: Checking simpletcp server=192.168.80.25 port=6001
DEBUG3: Connected from 192.168.80.2:52430 to 192.168.80.25:6001
DEBUG2: Checking simpletcp server=192.168.80.25 port=6001 request:
/9300CNredacted|COredacted|AY0AZF63B
DEBUG2: Disabled real 
server=negotiate:simpletcp:tcp:192.168.80.25:6001:::1:masq:\/9300CNredacted\|COredacted\|AY0AZF63B:\^941AY0AZFDFD
 (virtual=tcp:192.168.80.2:6001)
DEBUG3: Deactivated service 192.168.80.25:6001: Timeout Alarm at 
/usr/sbin/ldirectord line 3022.
^CDEBUG2: Running system(/sbin/ipvsadm -D -t 192.168.80.2:6001)
Running system(/sbin/ipvsadm -D -t 192.168.80.2:6001)
DEBUG2: Purged virtual server (stop): 192.168.80.2:6001
Purged virtual server (stop): 192.168.80.2:6001
DEBUG2: Linux Director Daemon terminated on signal: INT
Linux Director Daemon terminated on signal: INT
DEBUG2: ld_rm_file: /var/run/ldirectord.ldirectord.cf.pid doesn't exist, 
skipping
DEBUG2: Exiting with exit_status 0: Linux Director Daemon terminated on signal: 
INT
Exiting with exit_status 0: Linux Director Daemon terminated on signal: INT
xenldirector:/usr/sbin# 



Please advise. Thanks

Niles Ingalls
UNIX & Web Administrator
Hussey-Mayfield Memorial Public Library
250 N. Fifth Street
P.O. Box 840
Zionsville, IN. 46077

Phone   317-873-3149 x13280
Fax     317-873-8339

"Confidence is what you have before you understand the problem." - Woody Allen


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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

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