opnsense / core

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

Static IPv6 over PPPoE not working anymore #7508

Closed RoelVB closed 3 weeks ago

RoelVB commented 3 weeks ago

Important notices

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

Describe the bug

I have a WAN interface that connects over PPPoE. My interface is configured to use PPPoE for IPv4 and a static address for IPv6. At some point this stopped working and the PtP log started showing "[wan_link0] rec'd unexpected protocol IPV6CP, rejecting" whenever the interface connects.

After a lot of digging I'm sure this commit by @fichtner introduced my issue.

More info When I set my IPv6 type for my interface to PPPoEv6 the before mentioned error in the PtP log disappears, but I wont have an IPv6 address because I have to assign it statically.

Would it be possible to work-around this in some way? For example:

  1. Force set bundle enable ipv6cp into the mpd config?
  2. Somehow set a static IPv6 address in PPPoEv6 mode?
RoelVB commented 3 weeks ago

I've manually reverted the mentioned commit by editing the /usr/local/etc/inc/interfaces.inc and that does solve my issue!

fichtner commented 3 weeks ago

Huh, what's your IPv6 type of this isn't working?

The normal way to deal with static IPv6 over PPPoE is to select PPPoEv6 and assign a virtual IP with the static address. ;)

Cheers, Franco

fichtner commented 3 weeks ago

Ok I see, Static IPv6 is not really suitable for PPPoE when ipv6cp is required. That's exactly why PPPoEv6 was added. :)

RoelVB commented 3 weeks ago

Hi @fichtner

Thank you very much for your prompt reply. You are right... I got it to work using PPPoEv6. My ISP said I had to statically configure the IPv6 address, but now I'm thinking about this I don't see why. This put me on the wrong track.

Thanks again, and enjoy your evening.

fichtner commented 3 weeks ago

Well they are not wrong in requiring you to do a static setup but typically you do the static setup on the LAN side and the WAN address via PPPoEv6 is routable so it all works out ok.

Cheers, Franco

RoelVB commented 3 weeks ago

Exactly, but they told me to setup an IP on both WAN and LAN

fichtner commented 3 weeks ago

Yes, fair enough. Let's give them some slack for delivering working IPv6. Static setups are a bit rare but great. 👍