ppp devices & pppoe not working

Started by keropiko, November 16, 2021, 10:21:24 AM

Previous topic - Next topic
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.

Hi keropiko,

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


Thanks,
Franco

November 19, 2021, 07:45:41 PM #2 Last Edit: November 19, 2021, 07:47:16 PM by keropiko
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:

QuotePHP 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

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

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

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

DynDNS UTF issue has been reported in another thread on the 21.7 production release.

https://forum.opnsense.org/index.php?topic=25653.0

@ 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

Think we found the PPP issue. Can you try again? https://github.com/opnsense/core/commit/7ada19dd

# opnsense-code -u core


Cheers,
Franco

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:

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

Ok, getting closer :) https://github.com/opnsense/core/commit/6f052c3cb

Can you try once more please?

# opnsense-code -u core


Cheers,
Franco

November 23, 2021, 03:28:23 PM #11 Last Edit: November 23, 2021, 03:30:27 PM by keropiko
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

Hmm, is ppp1 in the system?

# ifconfig ppp1


Thanks,
Franco

Quoteroot@OPNsense:~ # ifconfig ppp1
ppp1: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>