Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh through vista connection sharing not working, delayed acks fromclent.

Reply
Thread Tools Display Modes

ssh through vista connection sharing not working, delayed acks fromclent.

 
 
Cacadril
Guest
Posts: n/a

 
      11-14-2008, 10:41 AM
I am trying to access a remote computer using ssh, but get no
response. Using strace, I see the client opening a socket to the
server, setting keep-alive, and hanging in the very first read system
call.

The general connectivity is in place, I browsed http://www.nytimes.com
without problems.

The ssh client is a linux (debian lenny) laptop. I am snooping the
connection with wireshark, and I see the response from the ssh server,
saying "SSH-2.0-OpenSSH_5.1\r\n". Then I see eight retransissions of
this datagram, and finally a FIN followed by a FIN-ACK response. There
is never an ACK response from my laptop, other than the final FIN-ACK.
Also the connection establishment itself looks strange, with multiple
retransmissions:

source: message:
client SYN
server SYN,ACK 70 ms response time
client SYN 3 seconds after the first SYN
server SYN,ACK 70 ms
server SYN,ACK retransmission 15 ms after previous

repeat the last three datagrams with increasing delays, 6 seconds, 12
seconds between tries. Then 24 seconds after last try,

client SYN
server SYN,ACK
client SYN,ACK 0,1 ms delay -- NB this is an ACK reponse
from my client
server "SSH-2.0-OpenSSH_5.1\r\n" (21 bytes) 70 ms
server retransmission of last message X 8
server FIN,ACK Seq=22, ack=21
client FIN,ACK Seq=1, ack=1 1270 seconds after server FIN

I checked the iptables state using iptables -v -L; got policy ACCEPT
and no rules on all chains. Same for tables nat, mangle, and raw.

Yet I could browse the internet.

The network topology is as follows.

I connect to the internet from a Vista laptop, using a wireless. The
linux laptop is connected to the Vista laptop using an ethernet cable.
Connection sharing is turned on in the Vista. I run putty (windows
telent/ssh client) on Vista and connect successfully to the ssh server
in question. I run wireshark on both laptops, snooping the ethernet
interface and see exactly the same datagrams.

What am I missing?

Thanks
 
Reply With Quote
 
 
 
 
Cacadril
Guest
Posts: n/a

 
      11-16-2008, 10:41 AM
On Nov 14, 12:41*pm, Cacadril <en...@online.no> wrote:
> I am trying to access a remote computer using ssh, but get no
> response. Using strace, I see the client opening a socket to the
> server, setting keep-alive, and hanging in the very first read system
> call.
>
> The general connectivity is in place, I browsedhttp://www.nytimes.com
> without problems.
>
> The ssh client is a linux (debian lenny) laptop. I am snooping the
> connection with wireshark, and I see the response from the ssh server,
> saying "SSH-2.0-OpenSSH_5.1\r\n". Then I see eight retransissions of
> this datagram, and finally a FIN followed by a FIN-ACK response.


I found something: All response datagrams, i.e., all datagrams issued
by the remote server, arrive at my linux box with an 802.1q "header"
inserted between the ethernet header and the ip header. I guess this
is something Vista introduces, see the quoted topology description
below. I will start a new thread to ask about this.

> There
> is never an ACK response from my laptop, other than the final FIN-ACK.


Not exactly correct, as there is an ack after a very long time delay.
This is also apparent in the quoted list of exchanges below.

> Also the connection establishment itself looks strange, with multiple
> retransmissions:
>
> * source: * *message:
> * client * * * SYN
> * server * * *SYN,ACK * * 70 ms response time
> * client * * * SYN * * * * * * 3 seconds after the first SYN
> * server * * *SYN,ACK * * 70 ms
> * server * * *SYN,ACK * * retransmission 15 ms after previous
>
> repeat the last three datagrams with increasing delays, 6 seconds, 12
> seconds between tries. Then 24 seconds after last try,
>
> * client * * SYN
> * server * *SYN,ACK
> * client * * SYN,ACK * * 0,1 ms delay * -- NB this is an ACK reponse
> from my client
> * server * *"SSH-2.0-OpenSSH_5.1\r\n" * *(21 bytes) *70 ms
> * server * *retransmission of last message X 8
> * server * *FIN,ACK *Seq=22, ack=21
> * client * * FIN,ACK *Seq=1, ack=1 * *1270 seconds after server FIN
>
> I checked the iptables state using iptables -v -L; got policy ACCEPT
> and no rules on all chains. *Same for tables nat, mangle, and raw.
>
> Yet I could browse the internet.
>
> The network topology is as follows.
>
> I connect to the internet from a Vista laptop, using a wireless. The
> linux laptop is connected to the Vista laptop using an ethernet cable.
> Connection sharing is turned on in the Vista. I run putty (windows
> telent/ssh client) on Vista and connect successfully to the ssh server
> in question. I run wireshark on both laptops, snooping the ethernet
> interface and see exactly the same datagrams.
>
> What am I missing?
>
> Thanks

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WiFi Vista Not Working David F Wireless Networks 7 11-14-2008 10:32 AM
Sharing internet connection in Vista Rafał Zięba Wireless Networks 6 05-14-2007 02:45 PM
PPTP VPN on Server 2003, connects fine via Vista, but hosted ftp and www services fail after connection (on Vista) markm75 Windows Networking 2 12-07-2006 02:03 AM
RESEND: Internet connection happens delayed with MN-500 Serdar Broadband Hardware 6 04-22-2004 10:48 PM
Internet connection happens delayed with MN-500 Serdar Broadband Hardware 0 04-20-2004 11:55 PM



1 2 3 4 5 6 7 8 9 10 11