OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: HCB on August 10, 2024, 06:17:18 PM

Title: PPPoe / vlan issue
Post by: HCB on August 10, 2024, 06:17:18 PM
Hi,

I've been having this issue for a while. Upgrading to 24.7 reminded me.

My connection (KPN NL Fiber) requires PPPoe with a vlan on WAN to set up connectivity.
This works well, but after every reboot (upgrade, manual reboot) or change to the WAN interface (fiddling with ipv6 in this case), the interface goes down.

The fix is to manually  disable the vlan on the interface, save, re-enable it and save again for connectivity to pick up.
Interfaces > Point to Point > Devices > edit > untick vlan0.x > Save > tick vlan0.x > Save

I've tried looking at the logs, but I'm out of my depth and I'm not seeing any smoking guns.
I'm not sure if this is a bug, or if I am missing a setting somewhere to reconnect the pppoe/vlan automatically.
Can someone help track this down so I can either resolve this or file a meaningful bug report?
Title: Re: PPPoe / vlan issue
Post by: RamSense on August 10, 2024, 06:44:03 PM
maybe you can test : https://forum.opnsense.org/index.php?topic=42081.0 (https://forum.opnsense.org/index.php?topic=42081.0)
Title: Re: PPPoe / vlan issue
Post by: franco on August 10, 2024, 08:24:00 PM
Could be this issue/fix https://github.com/opnsense/core/commit/62a09bfa0a1 -- it's planned to be added to 24.7.2.


Cheers,
Franco
Title: Re: PPPoe / vlan issue
Post by: HCB on August 12, 2024, 08:40:11 AM
Quote from: franco on August 10, 2024, 08:24:00 PM
Could be this issue/fix https://github.com/opnsense/core/commit/62a09bfa0a1 -- it's planned to be added to 24.7.2.


Cheers,
Franco

Thank you. I'm not comfortable compiling the test patch, but I'll wait to see if this fixes it. If not, I'll get back to this thread and see if we can figure out what is going on.
Title: Re: PPPoe / vlan issue
Post by: HCB on August 25, 2024, 10:02:34 AM
@franco

I just updated to 24.7.2. Update went flawless, but I still had to do the vlan jiggle to WAN to come up.

Was the patch/possible you were referring to fully implemented in 24.7.2? There still appears to be ongoing development in that the pinned PPPoe thread.

TLDR: not fixed quite yet. If there's anything I can do to help track this down, I'm happy to file a report, but please tell me which logs/info you'd need.
Title: Re: PPPoe / vlan issue
Post by: franco on August 25, 2024, 10:23:47 AM
Can you share the system and PPP logs with me? franco@opnsense.org


Thanks,
Franco
Title: Re: PPPoe / vlan issue
Post by: doktornotor on August 25, 2024, 10:36:22 AM
Quote from: HCB on August 25, 2024, 10:02:34 AM
Was the patch/possible you were referring to fully implemented in 24.7.2?

This one - yes (https://github.com/opnsense/core/commit/62a09bfa0a1). For the PPPoE thread patches, no, you need


# opnsense-patch 77531748 7582088d


on 24.7.2 as noted there.

So, I just did that together with the VLAN setup (https://forum.opnsense.org/index.php?topic=42081.msg209769#msg209769) - and, it's working here.
Title: Re: PPPoe / vlan issue
Post by: franco on August 26, 2024, 09:00:59 AM
Might be related to the VLAN card or something tampering with it like Netmap use (Suricata/Zenarmor). I'll take a look at the email I got today.


Cheers,
Franco
Title: Re: PPPoe / vlan issue
Post by: HCB on September 06, 2024, 08:10:04 AM
Hi Franco,

Anything I can do to help you track this down further?
Title: Re: PPPoe / vlan issue
Post by: franco on September 13, 2024, 08:42:16 AM
@HCB Can you make sure that your PPPoE Linked interface is only the VLAN? Selecting "WAN" there is sort of an ancient oddity. Also make sure to not select two interfaces as that kicks it into MLPPP mode which you probably don't have (that would be two hardware devices).

Eventually I'd like to remove the use of assigned interfaces in the PPP config. It doesn't make much sense, but will probably break a few setups.


Cheers,
Franco