Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 10:03:39 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Torbjorn Granlund <tg@swox.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: TCP conection problems IBM VM -> FreeBSD
Message-ID:  <E2D691F7-FF70-4D6E-95D7-357B5815C419@mac.com>
In-Reply-To: <868xdqnnzd.fsf@king.swox.se>
References:  <868xdqnnzd.fsf@king.swox.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 21, 2007, at 5:03 PM, Torbjorn Granlund wrote:
> When vm attempts to make a TCP connection (e.g., on port 25) to
> smtp.swox.se I see the following traffic on the router:
>
> 22:46:27.015389 IP vm.se.lsoft.com.47218 > smtp.swox.se.smtp: S  
> 27523124:27523124(0) win 8192 <mss 1420,wscale  
> 0,nop,nop,nop,timestamp 1888741492 0>
> 22:46:27.015523 IP smtp.swox.se.smtp > vm.se.lsoft.com.47218: S  
> 1745147473:1745147473(0) ack 3530628660 win 57344 <mss 1460>
> 22:46:27.056277 IP vm.se.lsoft.com.47218 > smtp.swox.se.smtp: R  
> 3530628660:3530628660(0) win 0
>
> I.e., the vm box appears to dislike the SYNACK from smtp.swox.se, and
> sends an RST.  One might ask if it is the fault of vm or of  
> smtp.swox.se.

The second line should have been smtp.swox.se.smtp SYN+ACK'ing the  
ISN of 27523124.  vm is sending a RST to that because the sequence  
#'s don't match.  It's also odd that the set of options being listed  
don't correspond at all...if you run the tcpdump for several minutes,  
can you track down other SYN requests which do correspond?

Sometimes this kind of re-writing can happen if natd or PF is  
attempting to translate the packets, perhaps when they shouldn't if  
both sides of your router box are using routable IPs....

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E2D691F7-FF70-4D6E-95D7-357B5815C419>