IPv6 confused

Started by marjohn56, November 26, 2026, 12:30:18 PM

Previous topic - Next topic
November 26, 2026, 12:30:18 PM Last Edit: November 26, 2026, 01:31:21 PM by marjohn56
I have a bit of a weird one, and tbh, I'm baffled. I noticed my v6 gateway was down, so I checked the dpinger target from my PC, all good. https://test-ipv6.com/ reports 10/10. Doing a ping from Opnsense fails and gateway still reports down. BQM shows it down too. Monitoring the fw ICMPv6 rules, I can see the monitor packets coming in and being passed, but BQM is not getting a response. Running 26.7.10. Traceroute on the router also fails, but again tracert on my PC is fine and shows the first leg as Opnsense. Any ideas?

Quick update. AI suggested disabling Reply-to on WAN rules, that fixed the BQM issue. Dpinger still not getting a response though.
OPNsense 26.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

A gateway doesn't have to reply to ping. Maybe your ISP changed it.

Would be my guess at first glance as well? Maybe they got fed up.  ;)


Cheers,
Franco

November 26, 2026, 03:59:50 PM #3 Last Edit: November 26, 2026, 04:01:22 PM by marjohn56
One would agree apart from the dpinger target is cloudflare, not the gateway. Cloudflare responds perfectly from the PC.
OPNsense 26.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: marjohn56 on November 26, 2026, 12:30:18 PMdisabling Reply-to on WAN rules, that fixed the BQM issue
Disabling Reply-to on WAN has nothing to do with it, don't do it.

No it didn't, the real reason was an issue with the ISP BNG's. I asked Google's AI to diagnose the issue, it did and fixed it.  Here's the summery. 

Technical Summary: IPv6 Routing / Dual vBNG Asymmetric Forwarding Issue
  • Retail ISP: Squirrel Internet (Wholesale Network: Gigaclear)
  • Delegated IPv6 Prefix: xxx:xxx:xxx:3700::/56 (previously also assigned IA_NA /128 xxxx:xxxx::938)
  • CPE: OPNsense Firewall (igb0 WAN MAC xx:xx:xx:xx:xx:e4)
 
Root Cause Identified
 
During packet capture and NDP diagnostics on the WAN interface, two virtualised upstream BNG routers (52:54:00:... KVM/QEMU MACs) were visible on the Layer 2 WAN segment:
  • fe80::7ff:fe06:ebf6 (MAC 52:54:00:06:eb:f6) – Stale / inactive vBNG node
  • fe80::9ff:fe08:ec4f (MAC 52:54:00:08:ec:4f) – Active vBNG node
 
What was happening:
  • Inbound IPv6 traffic (such as external ICMPv6 Echo Requests from 2a02:68:1::164 to 2a10:8702:9:3700:...) and active Router Advertisements were arriving exclusively from fe80::9ff:fe08:ec4f (52:54:00:08:ec:4f).
  • However, the older vBNG node fe80::7ff:fe06:ebf6 (52:54:00:06:eb:f6) remained reachable at Layer 2 and responded to Neighbor Discovery (NS/NA), causing OPNsense to retain fe80::7ff:fe06:ebf6 as its default IPv6 gateway.
  • All outbound IPv6 packets sent to fe80::7ff:fe06:ebf6 (52:54:00:06:eb:f6) were silently dropped upstream (likely due to a BNG failover/migration leaving stale Layer 2 presence without subscriber routing state).
  • Additionally, traffic sourced from the DHCPv6 IA_NA /128 address (xxxxx:xxxx::938) was not routed externally, whereas traffic sourced from the delegated xxxx:xxxx:x:xx00::/56 prefix routes normally.

Customer-Side Workaround Applied (IPv6 Now Working)
To restore service on the CPE side, the following changes were made on OPNsense:
  • Disabled the auto-learned WAN_DHCP6 gateway (fe80::7ff:fe06:ebf6) and added a firewall rule to ignore/block ICMPv6 traffic from fe80::7ff:fe06:ebf6.
  • Configured fe80::9ff:fe08:ec4f as the active IPv6 upstream gateway.
Switched DHCPv6 on WAN to Prefix Delegation only (IA_PD) so CPE-originated traffic uses the routed xxxx:xxxx:x:xx00::/56 prefix rather than the unrouted /128.

Some more debug to be sent to the ISP, proving that their BNG setup is pants.

Router Advertisement Capture (tcpdump -vvni igb0 'icmp6 and ip6[40] == 134') Proving Dual Equal-Priority RAs
 
Both vBNG nodes respond within 10ms of each other with identical pref medium priority and an active router lifetime 300s, causing CPEs that select fe80::7ff:fe06:ebf6 to have all outbound IPv6 traffic blackholed:
 
00:18:48.071441 IP6 (class 0xe0, hlim 255, next-header ICMPv6 (58), payload length 32) fe80::9ff:fe08:ec4f > fe80::daec:5eff:fe4b:1fe4: [icmp6 sum ok] ICMP6, router advertisement, length 32
        hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 300s, reachable time 30000ms, retrans timer 1000ms
          source link-address option (1), length 8 (1): 52:54:00:08:ec:4f
          mtu option (5), length 8 (1): 1500
 
00:18:48.081590 IP6 (class 0xe0, hlim 255, next-header ICMPv6 (58), payload length 32) fe80::7ff:fe06:ebf6 > fe80::daec:5eff:fe4b:1fe4: [icmp6 sum ok] ICMP6, router advertisement, length 32
        hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 300s, reachable time 30000ms, retrans timer 1000ms
          source link-address option (1), length 8 (1): 52:54:00:06:eb:f6
          mtu option (5), length 8 (1): 1500

It then went on to give me a list of things the ISP needs to do. 😉

And my final chat with the AI before I closed the session.

Me: So as they were not giving a priority, even if Opnsense could have used that, it still risked failure.
 
AI: Exactly right. Even if OPNsense had full RFC 4191 router-preference awareness, both routers were advertising pref medium (identical default priority) and an active router lifetime 300s—essentially a coin flip on every Router Solicitation depending on which packet arrived 10 milliseconds earlier.
Any standard home router (including ISP-supplied routers) connected to that line would randomly fail roughly half the time on reboot or renewal until Gigaclear adjusts the standby vBNG's Router Advertisement priority/lifetime or enables inter-BNG forwarding.
 
And so there you have it from AI's point of view. 😊




OPNsense 26.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member