LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Problem with LVS-NAT and soap-server (PHP)

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] Problem with LVS-NAT and soap-server (PHP)
From: andreas2008 <andreas.altenburg@xxxxxxx>
Date: Tue, 5 Feb 2008 14:56:46 -0800 (PST)
Further information:

I can parse the wdsl in the first step, but when trying to parse an SOAP
command, I get:

SOAP-ERROR: Parsing WSDL: Couldn't load from ...

I have success when trying ist with LVS-DR or directly to the internal IP of
the real server (without using the LVS). So I assume, there is a problem
with php SOAP and LVS-NAT.



andreas2008 wrote:
> 
> 
> Joseph Mack wrote:
>> 
>> On Tue, 5 Feb 2008, andreas2008 wrote:
>> 
>>>> The real server are sending replies, but they seem to
>>>> stuck. As said, the problem only occurs with SOAP (I guess, PHP soap
>>>> uses an
>>>> own socket communication). This special environment makes it difficult
>>>> to
>>>> search for solutions. Maybe a bug in PHP.
>> 
>>>is the SOAP realserver attempting to connect directly to the 
>>>client on a different port?
>> 
> 
> No, it cannot. Its default gateway is my LVS. I verified this with
> tcpdump.
> 
> 
> Joseph Mack wrote:
>> 
>>>> I tried running LVS without NAT (direct LVS) and this works fine with
>>>> PHP
>>>> SOAP. It seems to be a problem concerning NAT and SOAP.
>> 
>>>can you watch for packets from the VIP on the realserver 
>>>from a high port?
>> 
> 
> No, this is part of the output from tcpdump (1.2.3.4 stands for the
> external client IP, 5.6.7.8 is the virtual IP, 172.16.10.3 is the internal
> IP of the LV, 172.16.10.4 is the real server IP.
> 
> LVS:
> LVS:
> 23:27:42.731727 IP 1.2.3.4.49195 > 5.6.7.8.80: . ack 1 win 65535
> <nop,nop,timestamp 296192392 32339>
> 23:27:42.731742 IP 1.2.3.4.49195 > 172.16.10.4.80: . ack 1 win 65535
> <nop,nop,timestamp 296192392 32339>
> 23:27:42.795114 IP 1.2.3.4.49195 > 5.6.7.8.80: P 1:278(277) ack 1 win
> 65535 <nop,nop,timestamp 296192392 32339>
> 23:27:42.795135 IP 1.2.3.4.49195 > 172.16.10.4.80: P 1:278(277) ack 1 win
> 65535 <nop,nop,timestamp 296192392 32339>
> 23:27:42.795253 IP 172.16.10.4.80 > 1.2.3.4.49195: . ack 278 win 54
> <nop,nop,timestamp 32355 296192392>
> 23:27:42.795267 IP 5.6.7.8.80 > 1.2.3.4.49195: . ack 278 win 54
> <nop,nop,timestamp 32355 296192392>
> 23:27:42.879017 IP 1.2.3.4.49195 > 5.6.7.8.80: P 278:879(601) ack 1 win
> 65535 <nop,nop,timestamp 296192392 32339>
> 23:27:42.879036 IP 1.2.3.4.49195 > 172.16.10.4.80: P 278:879(601) ack 1
> win 65535 <nop,nop,timestamp 296192392 32339>
> 23:27:42.879151 IP 172.16.10.4.80 > 1.2.3.4.49195: . ack 879 win 64
> <nop,nop,timestamp 32364 296192392>
> 23:27:42.879163 IP 5.6.7.8.80 > 1.2.3.4.49195: . ack 879 win 64
> <nop,nop,timestamp 32364 296192392>
> 
> RS:
> 23:27:56.961162 IP 172.16.10.4.80 > 172.16.10.3.46834: S
> 1688754264:1688754264(0) ack 2974145981 win 5792 <mss
> 1460,sackOK,timestamp 33773 152372400,nop,wscale 7>
> 23:27:56.961279 IP 172.16.10.3.46834 > 172.16.10.4.80: . ack 1 win 46
> <nop,nop,timestamp 152372400 33773>
> 23:27:56.961915 IP 172.16.10.3.46834 > 172.16.10.4.80: P 1:116(115) ack 1
> win 46 <nop,nop,timestamp 152372400 33773>
> 23:27:56.961940 IP 172.16.10.4.80 > 172.16.10.3.46834: . ack 116 win 46
> <nop,nop,timestamp 33773 152372400>
> 23:27:56.962459 IP 172.16.10.4.80 > 172.16.10.3.46834: P 1:980(979) ack
> 116 win 46 <nop,nop,timestamp 33773 152372400>
> 23:27:56.962515 IP 172.16.10.4.80 > 172.16.10.3.46834: F 980:980(0) ack
> 116 win 46 <nop,nop,timestamp 33773 152372400>
> 23:27:56.962594 IP 172.16.10.3.46834 > 172.16.10.4.80: . ack 980 win 61
> <nop,nop,timestamp 152372401 33773>
> 23:27:56.964290 IP 172.16.10.3.46834 > 172.16.10.4.80: F 116:116(0) ack
> 981 win 61 <nop,nop,timestamp 152372401 33773>
> 23:27:56.964302 IP 172.16.10.4.80 > 172.16.10.3.46834: . ack 117 win 46
> <nop,nop,timestamp 33773 152372401>
> 
> 
> 
> Andreas
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-LVS-NAT-and-soap-server-%28PHP%29-tp15292257p15300049.html
Sent from the LVS mailing list archive at Nabble.com.



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