opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.38k stars 758 forks source link

PPPoE not working anymore #7606

Open TheRealBecks opened 4 months ago

TheRealBecks commented 4 months ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

You may not believe, but: When I deactivated the company VPN (Openconnect) at my notebook the PPPoE connection at OPNsense stopped working about 10-20 seconds later.

From there on the PPPoE is broken as can be seen on the screenshot. There's also no specific message as the logging message seems to be empty:

[opt5_link0] PPPoE: Connecting to ''
[opt5_link0] PPPoE connection timeout after 9 seconds
[opt5_link0] Link: DOWN event
[opt5_link0] LCP: Down event

I tested the DSL modem directly with my notebook and it's still working as expected.

I updated the OPNsense twice within the last weeks, but nothing seems to be changed.

To Reproduce

Steps to reproduce the behavior: PPPoE has been configured via VLAN 5.

Expected behavior

There are more verbose logging messages and the connection to the modem will be established.

Describe alternatives you considered

None

Screenshots

image

Relevant log files

Here is the log from the web UI:

[opt5_link0] PPPoE: Connecting to ''
[opt5_link0] PPPoE connection timeout after 9 seconds
[opt5_link0] Link: DOWN event
[opt5_link0] LCP: Down event

Additional context

None

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 24.1.9_4-amd64 FreeBSD 13.2-RELEASE-p11 OpenSSL 3.0.14 AMD Ryzen 3 3200G with Radeon Vega Graphics (4 cores, 4 threads)

TheRealBecks commented 4 months ago

I tried several days several things and yesterday I found out that the modem has a bug (?) that leads to returning packets being on the wrong link. Without the management link the modem is working again with OPNsense! :joy:

So: It's not a bug in OPNsense! :smiley:

But: That leads me to another question: Is there any way to improve the logging entries for PPPoE? Is that even technically possible? Because:

Zerwin commented 3 months ago

Could you tell me what you mean with "Without the management link" ? I am having a similar issue and would like to see if your fix might also resolve my problem.

TheRealBecks commented 3 months ago

@Zerwin My Draytek modem has two LAN links that can be used for management or PPPoE (you can choose which port you use for which purpose by simple connecting the cables, there's no configuration logic in the web gui).

My modem stopped working and i found out that I had to disconnect the management cable, reboot the modem and PPPoE is working again. ...but I can't connect to the web gui anymore due to the missing managament cable... but at least I'm able to use PPPoE again.