Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 May 2018 20:03:50 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        "O'Connor, Daniel" <darius@dons.net.au>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Userland PPP on ADSL
Message-ID:  <5AF1A036.9080305@grosbein.net>
In-Reply-To: <3D16459D-B083-4CAC-BA9E-D48EF55B5EB0@dons.net.au>
References:  <3D16459D-B083-4CAC-BA9E-D48EF55B5EB0@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
08.05.2018 12:08, O'Connor, Daniel wrote:
> 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 = Opened
> May  8 12:27:54 portero ppp[76165]: tun0: LCP: deflink: SendEchoRequest(38) state = Opened
> May  8 12:27:54 portero ppp[76165]: tun0: LCP: deflink: RecvEchoReply(38) state = Opened
> May  8 12:28:54 portero ppp[76165]: tun0: LCP: deflink: SendEchoRequest(39) state = Opened
> May  8 12:29:54 portero ppp[76165]: tun0: LCP: deflink: SendEchoRequest(40) state = 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 :)

You have not specified FreeBSD version you use.

First, you should check if the ppp process is waiting on some system call when it's hung.
Use ps -l or procstat to check it. And you should enable verbose logs in ppp.conf.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AF1A036.9080305>