Re: Userland PPP on ADSL

2018-05-13 Thread O'Connor, Daniel


> On 8 May 2018, at 22:33, Eugene Grosbein  wrote:
>> 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.

Oops, sorry - it's 11.1p7.

Although I am pretty sure I saw it all the way back at 9.x when I switched a 
number of systems over to mpd5.

> 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.

Good idea, I need to re-set a system back to PPP to test and break it when 
there isn't someone around to complain about it which might take a while :(

--
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

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Userland PPP on ADSL

2018-05-10 Thread Christoph Moench-Tegeder
## O'Connor, Daniel (dar...@dons.net.au):

> 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 did switch from ppp to mpd5 quite a while ago, for performance reasons,
but beyond that, I didn't have any problems (if my notes are corrent,
that was on 10.0 or so).

> 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

That looks like LCP was still up? Have you tried turning the logging up?

Regards,
Christoph

-- 
Spare Space
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Userland PPP on ADSL

2018-05-08 Thread Eugene Grosbein
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.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Userland PPP on ADSL

2018-05-07 Thread O'Connor, Daniel
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 :)

--
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

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"