Discussion:
[OpenWrt-Users] rp-pppoe-server debugging
Alex Zetaeffesse
2015-04-25 23:06:36 UTC
Permalink
Hi all,

I'm trying to debug pppoe-server on Barrier Breaker but the switch -d that
is supposed to "Debug session creation", along with -F give just this output

***@OpenWrt:~# pppoe-server -F -d
Session 1 local 10.0.0.1 remote 10.67.15.1
Session 2 local 10.0.0.1 remote 10.67.15.2
[CUT]
Session 63 local 10.0.0.1 remote 10.67.15.63
Session 64 local 10.0.0.1 remote 10.67.15.64

and then exists. No process named pppoe-servet runs.

Instead the switch -F just prevents it to run as a daemon but when the
client tries to connect I see nothing.
To be honest while troublesooting I saw openwrt displaying PADI and PADO
packets but I don't remember the sequence of commands/option I issued. I
guess they were pppoe-server -F but I'm not able to reproduce.

Is all above normal? What's the correct way to troubleshoot pppoe-server?

Thanks Alex
Alex Zetaeffesse
2015-04-25 23:28:14 UTC
Permalink
Post by Alex Zetaeffesse
Hi all,
I'm trying to debug pppoe-server on Barrier Breaker but the switch -d that
is supposed to "Debug session creation", along with -F give just this output
Session 1 local 10.0.0.1 remote 10.67.15.1
Session 2 local 10.0.0.1 remote 10.67.15.2
[CUT]
Session 63 local 10.0.0.1 remote 10.67.15.63
Session 64 local 10.0.0.1 remote 10.67.15.64
and then exists. No process named pppoe-servet runs.
Instead the switch -F just prevents it to run as a daemon but when the
client tries to connect I see nothing.
To be honest while troublesooting I saw openwrt displaying PADI and PADO
packets but I don't remember the sequence of commands/option I issued. I
guess they were pppoe-server -F but I'm not able to reproduce.
Ok, I realized that the right way to troubleshoot is to have the following

debug
logfile /var/log/pppoe-server-log

in the file /etc/ppp/pppoe-server-options

In my case I'm missing the pppoe executable.

using channel 48
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sh: /usr/sbin/pppoe: not found
Modem hangup

There is pppoe executable nowhere in the filesystem.

Alex
Alex Zetaeffesse
2015-04-25 23:29:59 UTC
Permalink
Post by Alex Zetaeffesse
Post by Alex Zetaeffesse
Hi all,
I'm trying to debug pppoe-server on Barrier Breaker but the switch -d
that is supposed to "Debug session creation", along with -F give just this
output
Session 1 local 10.0.0.1 remote 10.67.15.1
Session 2 local 10.0.0.1 remote 10.67.15.2
[CUT]
Session 63 local 10.0.0.1 remote 10.67.15.63
Session 64 local 10.0.0.1 remote 10.67.15.64
and then exists. No process named pppoe-servet runs.
Instead the switch -F just prevents it to run as a daemon but when the
client tries to connect I see nothing.
To be honest while troublesooting I saw openwrt displaying PADI and PADO
packets but I don't remember the sequence of commands/option I issued. I
guess they were pppoe-server -F but I'm not able to reproduce.
Ok, I realized that the right way to troubleshoot is to have the following
debug
logfile /var/log/pppoe-server-log
in the file /etc/ppp/pppoe-server-options
In my case I'm missing the pppoe executable.
using channel 48
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sh: /usr/sbin/pppoe: not found
Modem hangup
There is pppoe executable nowhere in the filesystem.
Ok, found that the option -k skip the usage of the executable as already
explained here

https://forum.openwrt.org/viewtopic.php?id=46217

Thanks for reading :-) Alex

Loading...