OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Alec246 on May 21, 2024, 11:43:03 AM

Title: IPv6 Goes away after hours of perfect functionality without explanation
Post by: Alec246 on May 21, 2024, 11:43:03 AM
Hello all,

My OPNSense Build has been configured to my liking, following several tutorials online. But this one thing is making me having to consider going back to my ISP Router if I dont find a solution fast enough.

The IPv6 just goes out, without notice, not sure how long it takes, but i would say about 12 hours of flawless operation, then bang, i do an IPv6 Test and its out. I have seen several topics with similar problems online from years ago.

I tried already the most hardcore solution that a user has mentioned did the work for him, reinstalling it all from scratch. I did just that yesterday, and woke up this morning to find my IPv6 offline again.

I really don't know what else I could do. I humbly ask for help, the entire home network gets affected when this happens, i just cant keep OPNsense if this isnt solved fast enough.

Diagnostics, things to try, I am all ears!

THank you all
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: mooh on May 21, 2024, 02:43:52 PM
How do you get the IPv6 address / prefix? Static, DHCP, SLAAC,...? What are the interfaces using IPv6 and what exactly do you mean "just goes out"?
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: sja1440 on May 21, 2024, 02:50:12 PM
A few questions for you:

(1) Does your ISP give you a static or dynamic ipv6 prefix? By dynamic I mean one that changes every now and again

(2) When you say that "ipv6 goes out". What do you mean? For example, when "ipv6 goes out":
(3) How do you get your ipv6 prefix from your ISP?  That is, how have you configured the WAN interface for ipv6

(4) How do you assign ipv6 prefixes to your devices on the LAN:
(5) Have you configured the LAN interface to use "Track Interface" as the ipv6 configuration type?

Edit: One other question:
(6) I assume that ipv6 connectivity comes back when you reboot your OPNsense device. Correct?
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: Alec246 on May 21, 2024, 07:11:55 PM
I get my IPv6 address via
DHCPv6, 
Request only an IPv6 prefix Checked, 
Prefix delegation size 56,
Send IPv6 prefix hint   Checked

When I mean it goes out, I mean it fails all internet IPv6 tests, only IPv4 stills online.

I am not sure if its static or dynamic IPv6. I have to keep looking for change to confirm?

Quote2) When you say that "ipv6 goes out". What do you mean? For example, when "ipv6 goes out":
does your WAN still have an ipv6 address (look in the Dashboard under interfaces panel)?
does your LAN still have an ipv6 address? (as above)
does your PC still have an ipv6 address?

Yes WAN still shows an ipv6 address.
I run a LAGG, with VLANs, and all individual VLANs have their IPv6 addresses.
Yes my PC shows an IPv6 Address

Quote(3) How do you get your ipv6 prefix from your ISP?  That is, how have you configured the WAN interface for ipv6

Mentioned above

Quote(4) How do you assign ipv6 prefixes to your devices on the LAN:

Tried both ways, DHCPv6, and now using SLAACK only

Quote(5) Have you configured the LAN interface to use "Track Interface" as the ipv6 configuration type?
Yes they are

Quote(6) I assume that ipv6 connectivity comes back when you reboot your OPNsense device. Correct?

That is correct, it does come back when I do so.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: joezeppy on May 22, 2024, 03:12:28 AM
very interesting.  We followed a very similar path.  My instance had the same symptoms last week.  I was pulling my hair out trying to solve it.

Anyhow, everything has been working flawlessly for a week now, but unfortunately, I don't know exactly what the fix was.  The last thing that I did to get it working was to click the WAN reload button on the Interfaces/Overview page not just once, but several times.  It might be a coincidence, but the results were strange as I saw it sometimes not provide an IPv6 address to the LAN network.  I clicked it slowly maybe 5 times total until I saw it provide an address again.  It's been working ever since.  Disclaimer: there's definitely a chance that it was some other setting that I changed beforehand, but I'm getting too old to remember and too lazy to look through the config history.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: sja1440 on May 22, 2024, 10:18:06 AM
@Alec246: thanks

Why do you set "Request only an IPv6 prefix Checked "?  Is that required by your ISP?  Do you know what mechanism is used to get the ipv6 address of the gateway?

It would be good to know if your delegated ipv6 prefix is static or not. Maybe, try comparing it over a few days with a few WAN restarts in between?

When your ipv6 connectivity is functioning, could you share the first 8 hex digits of your WAN ipv6 address (no more than 8 since otherwise it might identify you). You can find it on the OPNsense Da.shboard

For the record here are my config details which are somewhat similar to yours, though I need to use pppoe and obtain my ipv6 prefix/address through dhcpv6 over the pppoe. I too have LANs based on vlan's over a lagg. Here are some details:

WANside interfaces:  WAN->pppoe->vlan->(interface on igc)
LANside interfaces:  LAN->vlan->underLAN->lagg (lacp) ->(a pair of igc interfaces)
My ipv6 prefix is static and so will only change when I change ISP. The WAN ipv6 address is also static.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: Ben S on May 22, 2024, 12:01:30 PM
Have you tried Interfaces > Settings > IPv6 DHCP > Prevent release?  Turning this on helped my IPv6 stability, although your problem sounds different (I was losing the address completely, you say you're keeping the address, but connectivity fails?).  Still, could be worth a try.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: meyergru on May 22, 2024, 12:23:18 PM
If you find your WAN line to be unstable or if your ISP changes IPv6 prefixes regularly, do not use DHCPv6 for your (V)LANs, but SLAAC with a minimum interval 200 und maximum interval 600 (set under Services::Router Advertisements).

In contrary to DHCPv6, which operates via pull, SLAAC pushes new prefixes, so that a prefix change is pushed to the clients immediately. Otherwise, they may use outdated prefixes, thus IPv6 connectivity is lost until they ask for a lease renewal.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: Alec246 on May 22, 2024, 12:42:41 PM
@joezeppy
Thank you for your feedback! I am not alone in this. Might try that!

@sja1440

QuoteWhy do you set "Request only an IPv6 prefix Checked "?  Is that required by your ISP?  Do you know what mechanism is used to get the ipv6 address of the gateway?

I followed this guide, the only one I found of a user in the same ISP as mine, PFSense instead
https://forum.meo.pt/internet-fixa-e-movel-11/pfsense-ipv6-155245

Unfortunately I dont know the ISP mechanism really for anything. Completely ignorant to this matter

QuoteIt would be good to know if your delegated ipv6 prefix is static or not. Maybe, try comparing it over a few days with a few WAN restarts in between?

Made a forced ISP Modem restart, IPv6 is back, without touching the OPNsense Router. The only difference when comparing IPv4 e IPv6 I noted was the IPv6 Address as
"Dynamic IPv6 prefix received"


QuoteWhen your ipv6 connectivity is functioning, could you share the first 8 hex digits of your WAN ipv6 address (no more than 8 since otherwise it might identify you). You can find it on the OPNsense Da.shboard

This?

fe80::aab8

Will check your suggestions! THanks!

@Ben S

No Ben, I will try that too! Thank you

@meyergru

Already have all my VLANS using this, Router Advertisements set to Unmanaged to all. Unfortunately stil lgets the issue
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: Alec246 on May 23, 2024, 12:03:19 PM
Tried everything, IPv6 still goes off :/
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: joezeppy on May 23, 2024, 01:16:27 PM
If you haven't already, check out the following video closely to see if something in it might help you trouble-shoot your situation:
https://www.youtube.com/watch?v=Yb7JdIFriKI&t=901s (https://www.youtube.com/watch?v=Yb7JdIFriKI&t=901s)
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: allan on May 23, 2024, 09:55:16 PM
Quote from: Alec246 on May 23, 2024, 12:03:19 PM
Tried everything, IPv6 still goes off :/

If you have not done it already, I suggest turning on Debug logging under Interfaces > Settings > IPv6 DHCP header.
Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: sja1440 on May 24, 2024, 01:54:01 PM
Quote from: Alec246 on May 22, 2024, 12:42:41 PM
I followed this guide, the only one I found of a user in the same ISP as mine, PFSense instead
https://forum.meo.pt/internet-fixa-e-movel-11/pfsense-ipv6-155245

Looking at a few other posts on that forum, it would seem that your provider could and does (or rather did)  change the delegated ipv6 prefix. It is not clear to me with what frequency. Though it seems that even small changes to the ISP router will cause the prefix to change.

Quote from: Alec246 on May 22, 2024, 12:42:41 PM
Made a forced ISP Modem restart, IPv6 is back, without touching the OPNsense Router.
Does that mean that your system consists of:
   <ISP ONT> -> <ISP router> -> <OPNsense router>
If so how have you configured the ISP router for ipv6?

Title: Re: IPv6 Goes away after hours of perfect functionality without explanation
Post by: sujop on May 27, 2024, 07:01:51 AM
Quote from: Alec246 on May 23, 2024, 12:03:19 PM
Tried everything, IPv6 still goes off :/

I had a similar issue where IPv6 would stop working after sometime. Clients on the network dropped IPv6 address altogether. Did a fair bit of digging and found out that Suricata was the culprit. SID 2030387 (ET EXPLOIT Possible CVE-2020-11899 Multicast out-of-bound read). Looks like packets relating to IPV6 was being blocked by suricata. Disabled SID 2030387 and the problem went away.