Re: Odd tcp dump? was: ssh working with dialup, not through router

From: Luciano Miguel Ferreira Rocha (strange_at_nsk.no-ip.org)
Date: 05/16/04

  • Next message: Justin Churchey: "Multiple X Sessions on one Box"
    Date: Sat, 15 May 2004 23:59:39 +0100
    To: "M. Fioretti" <mfioretti@mclink.it>, For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    On Sat, May 15, 2004 at 11:51:31PM +0200, M. Fioretti wrote:
    > Hello,
    >
    > still trying to track why ssh doesn't work anymore, see my original
    > posting.
    >
    > the PC is192.168.1.2 and the ADSL router 192.168.1.1. I have run
    > tcpdump on the PC eth0 interface, while the ssh connection
    > freezes, and found that, at a certain point:
    >
    > 1) the PC asks the DNS server (if I understand correctly) about the
    > router:
    >
    > 192.168.1.2.1047 > ammi.mclink.it.domain: 22723+ PTR? 1.1.168.192.in-addr.arpa. (42) (DF)
    > ammi.mclink.it.domain > 192.168.1.2.1047: 22723 NXDomain 0/1/0 (119)

    I believe ssh is trying to get the server name for its inclusion in
    known_hosts. The failure isn't a problem.

    > 2) after that PC and router start to ask each other their ethernet
    > addresses ("arp who-has 192.168.1.2 tell 192.168.1.1" and the related
    > arp replies) and viceversa, repeatedly.

    How may times? Normally, only one arp request and reply should be necessary.
    The PC asking about the router and the router saving the MAC:IP of the PC
    and replying with its own.

    You could have a bad cable that's corrupting packets.

    > 3) when this happens, the pc and the ssh server seem to also go in a
    > loop, which eventually times out: several equal lines in the dump,
    > like:
    >
    > 23:27:10.780631 192.168.1.2.1772 > ssh.server.io.ssh: . ack 2096 win 8832 <nop,nop,timestamp 474677 141420442,nop,nop,sack sack 1 {2048:2096} > (DF) [tos 0x10]
    >
    > Is 3) caused by 1) and 2)?

    I think it's a different thing.

    Could you send the full tcp log for a connection?

    And could you answer a few questions:

    . Does the ADSL connection use ppp

    . What system does the router run

    . How is it configured (routing and nating)

    If your ADSL connection uses ppp the MSS defined when connecting could be
    too big for the path between the ADSL router at your side and the final
    destination. If you're ADSL router runs linux with iptables, try this line:
    iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \
             --clamp-mss-to-pmtu

    Otherwise, try to reduce the MTU in your client PC.

    Regards,
    Luciano Rocha

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Justin Churchey: "Multiple X Sessions on one Box"

    Relevant Pages

    • Re: Dropping SSH connections over the internet
      ... Some times the second connection will be interrupted as well. ... As the previous 2 posters said, SSH is ... the router at my workplace has a timeout and just drops connections ...
      (Ubuntu)
    • Re: [SLE] ADSL Broadband advice please
      ... > I now meet all criteria and am about to sign up for an adsl connection ... > support the Dlink DSL-504 router, but there is a cost to consider. ... > Both these leave the firewall at the software level on the SuSE box I ...
      (SuSE)
    • Re: Dropping SSH connections over the internet
      ... I guess my packets just stop getting to the server. ... Some times the second connection will be interrupted as well. ... As the previous 2 posters said, SSH is ... the router at my workplace has a timeout and just drops connections ...
      (Ubuntu)
    • Re: Router not allowing simultaneous connections
      ... In article, "The Undertaker" ... >I am using a router to split my ADSL connection since we have three PCs at ...
      (microsoft.public.windowsxp.network_web)
    • Re: DG834G - strange problem
      ... > I have a Netgear DG834G and a Plusnet 512k ADSL connection. ... > As soon as I reeconnect the hub the noise margin drops again. ... > What I can't fathom is why the LAN side of my router has any effect on ...
      (uk.telecom.broadband)