From owner-freebsd-stable@freebsd.org Tue May 8 05:14:52 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFA83FCEA80 for ; Tue, 8 May 2018 05:14:52 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id F122183E4B for ; Tue, 8 May 2018 05:14:51 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp121-45-17-192.bras1.adl4.internode.on.net (HELO midget.dons.net.au) ([121.45.17.192]) by ipmail06.adl6.internode.on.net with ESMTP; 08 May 2018 14:44:44 +0930 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPS id w485EYS5038171 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 8 May 2018 14:44:39 +0930 (CST) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.1/8.14.9/Submit) id w4858cYs034615 for ; Tue, 8 May 2018 14:38:38 +0930 (CST) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f Received: from [203.31.81.59] ([203.31.81.59]) by ppp121-45-17-192.bras1.adl4.internode.on.net (envelope-sender ) (MIMEDefang) with ESMTP id w4858Wo8034614; Tue, 08 May 2018 14:38:38 +0930 From: "O'Connor, Daniel" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Date: Tue, 8 May 2018 14:38:31 +0930 Subject: Userland PPP on ADSL Message-Id: <3D16459D-B083-4CAC-BA9E-D48EF55B5EB0@dons.net.au> To: freebsd-stable X-Mailer: Apple Mail (2.3445.6.18) X-Spam-Score: 1.5 (*) No, score=1.5 required=5.0 tests=HELO_MISC_IP, RDNS_NONE autolearn=no autolearn_force=no version=3.4.0 X-Scanned-By: MIMEDefang 2.75 on 10.0.2.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 05:14:53 -0000 Hi, I have several FreeBSD machines setup as routers connected to ADSL = modems in bridge mode. ie the FreeBSD box terminates the PPP connection = and the ADSL modem doesn't do much. This worked well for many moons but a while ago I found issues with the = inbuilt PPP and ended up switching to mpd5 which has so far worked = flawlessly. I was wondering if anyone else had also seen similar issues? In my experience PPP will hang for a long time when the ADSL link goes = down. It does seem to eventually come back (minutes later) but while = it's stuck it will only exit with kill -9. This wouldn't be such a big deal but the rc.d script doesn't actually = check if the PPP process exits so a naive monitoring script that does = 'service ppp restart' will end up with 2 processes which usually screws = up firewall rules. There are ways around this (eg have the script check, = or set ppp_unit) but it seems like a bug. The only log messages I see are.. May 8 12:27:53 portero ppp[76165]: tun0: LCP: deflink: = SendEchoReply(114) state =3D Opened May 8 12:27:54 portero ppp[76165]: tun0: LCP: deflink: = SendEchoRequest(38) state =3D Opened May 8 12:27:54 portero ppp[76165]: tun0: LCP: deflink: = RecvEchoReply(38) state =3D Opened May 8 12:28:54 portero ppp[76165]: tun0: LCP: deflink: = SendEchoRequest(39) state =3D Opened May 8 12:29:54 portero ppp[76165]: tun0: LCP: deflink: = SendEchoRequest(40) state =3D Opened Does anyone have any suggestions where to start looking? It would be = nice if the base tool worked properly for what I feel is a not uncommon = scenario :) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C