From owner-freebsd-net Wed Mar 13 1:48:58 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id D28EB37B404 for ; Wed, 13 Mar 2002 01:48:48 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g2D9mi581232; Wed, 13 Mar 2002 09:48:44 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g2D9mgGd003975; Wed, 13 Mar 2002 09:48:42 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200203130948.g2D9mgGd003975@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Greg Black Cc: Brian Somers , "Matthew Emmerton" , freebsd-net@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: ppp -nat fails with adsl, but ok with modem In-Reply-To: Message from Greg Black of "Wed, 13 Mar 2002 12:59:59 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Mar 2002 09:48:42 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Brian Somers wrote: > | > > "Matthew Emmerton" wrote: > | > > | From: "Greg Black" > | > > | To: > | > > | Sent: Friday, February 22, 2002 10:39 PM > | > > | Subject: ppp -nat fails with adsl, but ok with modem > | > > | > | > > | > I've had ppp -nat working just fine over a normal modem link, > | > > | > but it is not working at all well on my ADSL link to the same > | > > | > provider. > | > > | > > | > > | > To quantify "not working at all well", although I can ping and > | > > | > traceroute ok from the hosts on my LAN, HTTP and FTP traffic is > | > > | > so slow and bursty as to be useless. Clicking on a link with > | > > | > Netscape will see short bursts of data with long periods (of a > | > > | > minute or more) where it says "stalled". > | > > | > > | > > | > Clicking on from > | > > | > my gateway host gets the page in an eye-blink, but on the NAT > | > > | > hosts, it will take 40 seconds to load the top banner and the > | > > | > "FreeBSD GNOME News Flash" heading, then another delay of 40 or > | > > | > so seconds before the rest of the page will be displayed. Even > | > > | > then, Netscape thinks it has stalled and keeps waiting for the > | > > | > last bit of data. > | > > | > > | > > | > With FTP, a small transfer (e.g., a directory listing of / on > | > > | > ftp.freebsd.org) will complete normally; but something slightly > | > > | > larger (e.g., a listing of /pub/FreeBSD on the same server), > | > > | > will produce: > | > > | > > | > > | > ftp> cd /pub/FreeBSD > | > > | > 250 CWD command successful. > | > > | > ftp> dir > | > > | > 200 PORT command successful. > | > > | > 150 Opening ASCII mode data connection for '/bin/ls'. > | > > | > ftp: netin: Connection reset by peer > | > > | > 226 Transfer complete. > | > > | > ftp> quit > | > > | > 421 Timeout (60 seconds): closing control connection. > | > > | > > | > > | > If I do the same things from the host that is connected to the > | > > | > modem(s), everything works fine, for both types of connections. > | > > | > > | > > | > I'm finding this very frustrating, and I'm wondering if there's > | > > | > something weird about PPPoE with the ADSL link that needs some > | > > | > special magic in order for things to work properly. > | > > | > > | > > | > If anybody can point me at the truth, I'd be most grateful. > | > > | > > | > > | > Alternatively, if anybody can suggest steps I could take to > | > > | > identify the nature of the problem, that would also be most > | > > | > welcome. > | > > | > > | > > | > Greg Black > | > > | > > | > > | What version of FreeBSD are you using? The ppp included in early 4.x > | > > | distributions doesn't have the TCP MSS fixup code that is required to > | > > | make > | > > | things work properly with a PPPoE connection, and cause the kinds of > | > > | symptoms that you describe. > | > > > | > > The NAT box is running 4.2-RELEASE -- is that a problem? > | > > | > Yes. This problem was first fixed in 4.2-STABLE. There are two safe ways to > | > fix this: > | > - upgrade to a newer -RELEASE or -STABLE > | > - run the tcpmssd program (which is in the ports collection - > | > /usr/ports/net/tcpmssd) > | > | - Install the latest version of ppp from http://www.Awfulahk.org/ppp.html > > OK, I'll grab it and give it a try. > > Will it be OK to install that on a 4.1-RELEASE box? Should be. > Should I still use the following lines in my ppp.conf? > > set mru 1492 > set mtu 1492 These shouldn't be required any more. > Thanks in advance, > > Greg -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message