OPNsense Forum

English Forums => 22.1 Legacy Series => Topic started by: keropiko on November 16, 2021, 10:21:24 am

Title: ppp devices & pppoe not working
Post by: keropiko on November 16, 2021, 10:21:24 am
Hello all,

i have recently updated to 22.1 BETA and upon reboot, the pppoe and ppp (usb 3g dongle) are not working. I have to manualy go to Interfaces->Devices, choose the device and just click on save, without changing any setting, so that they get an IP and connect to the provider.
Title: Re: ppp devices & pppoe not working
Post by: franco on November 19, 2021, 12:08:16 pm
Hi keropiko,

Do you have any system log or dmesg errors for this?


Thanks,
Franco
Title: Re: ppp devices & pppoe not working
Post by: keropiko on November 19, 2021, 07:45:41 pm
Hi and thank you for the reply,

during boot in system log i get:

Quote
opnsense-devel 679 - [meta sequenceId="6"] /usr/local/etc/rc.bootup: Unable to configure non-existent interface wan (pppoe0)
opnsense-devel 679 - [meta sequenceId="17"] /usr/local/etc/rc.bootup: Unable to configure non-existent interface opt6 (ppp1)
.

Also one other thing i noticed during the upgrade, that there was an error about php37 somethin. I don't know where i can find this in log.

There are also these errors too:

Quote
PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[19-Nov-2021 20:43:49 Europe/Athens] PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[19-Nov-2021 20:43:49 Europe/Athens] PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502

Thank you
Title: Re: ppp devices & pppoe not working
Post by: franco on November 22, 2021, 09:19:20 am
I see what the problem is... https://github.com/opnsense/core/commit/2808a62b8

A bit overzealous protection from faulty interface data here. We'll discuss this internally today and propose a patch.


Thanks,
Franco
Title: Re: ppp devices & pppoe not working
Post by: franco on November 22, 2021, 03:20:10 pm
We did a couple of changes for configuration workflow, most notably https://github.com/opnsense/core/commit/148e02c66497f but it's not a one-shot apply.

If you can try the latest code from the repository to see if the system now boots normally:

# opnsense-code core
# cd /usr/core
# git checkout master
# git pull
# make upgrade


Thanks,
Franco
Title: Re: ppp devices & pppoe not working
Post by: keropiko on November 22, 2021, 04:06:45 pm
Hi i did the upgrade, rebooted and the pppoe channel started correctly and A LOT faster than in all previous OPNsense versions. Unfortunately the 3g-dongle ppp channel did not start.

The dyndns xml UTF errors still remain.

Thank you
Title: Re: ppp devices & pppoe not working
Post by: Kevo on November 22, 2021, 04:49:32 pm
DynDNS UTF issue has been reported in another thread on the 21.7 production release.

https://forum.opnsense.org/index.php?topic=25653.0
Title: Re: ppp devices & pppoe not working
Post by: franco on November 23, 2021, 07:34:18 am
@ keropiko: thanks, can you take a look at the log again for the ppp issue?

We'll be looking at the DynDNS issue in the other forum post where more people have reported it.


Cheers,
Franco
Title: Re: ppp devices & pppoe not working
Post by: franco on November 23, 2021, 11:22:57 am
Think we found the PPP issue. Can you try again? https://github.com/opnsense/core/commit/7ada19dd

# opnsense-code -u core


Cheers,
Franco
Title: Re: ppp devices & pppoe not working
Post by: keropiko on November 23, 2021, 11:37:48 am
Hi and thank you for the reply.

I did the update, now the Gateway shows Green(UP) but without IP. instead of IP there is ppp. So it's not working.

In the error log i get:

Quote
Error   opnsense-devel   /usr/local/etc/rc.newwanip: The WWAN_PPP IPv4 gateway address is invalid, skipping.
(This is the Error i was the same i used to get even before the update you posted today).

Also even though the PPPOE is working after the last update some days ago, i get this error :
Quote
   Error   opnsense-devel   /usr/local/etc/rc.newwanip: Choose to bind WAN_PPPOE on xx.xx.xx.xx since we could not find a proper match.
(where xx.xx.xx.xx is the actual pppoe IP).

thank you
Title: Re: ppp devices & pppoe not working
Post by: franco on November 23, 2021, 01:09:01 pm
Ok, getting closer :) https://github.com/opnsense/core/commit/6f052c3cb

Can you try once more please?

# opnsense-code -u core


Cheers,
Franco
Title: Re: ppp devices & pppoe not working
Post by: keropiko on November 23, 2021, 03:28:23 pm
Hi,

did the upgrade, restarted, interface again UP-Green but no IP just "ppp". These are the logs:

Quote
2021-11-23T16:22:42   Error   opnsense-devel   /usr/local/etc/rc.newwanip: The WWAN_PPP IPv4 gateway address is invalid, skipping.   
2021-11-23T16:22:42   Error   opnsense-devel   /usr/local/etc/rc.newwanip: Choose to bind WWAN_PPP on since we could not find a proper match.

If i go to Interfaces->Devices and choose the 3g dongle interface and click save (like i used to do to get an IP) the interface remains Down-Red
Title: Re: ppp devices & pppoe not working
Post by: franco on November 23, 2021, 04:16:30 pm
Hmm, is ppp1 in the system?

# ifconfig ppp1


Thanks,
Franco
Title: Re: ppp devices & pppoe not working
Post by: keropiko on November 23, 2021, 05:27:07 pm
Quote
root@OPNsense:~ # ifconfig ppp1
ppp1: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>