FULL AI ANALYSIS

OpenWrt: DHCPv6 PD present but clients intermittently lack IPv6 default route after enabling RA firewall filtering

Generated Oct 25, 2026, 9:44:56 AM

Analysis summary

Evidence points to the router's RA packets sometimes being dropped or modified by firewall/nftables rules (or conntrack) so that clients receive malformed RAs or the kernel suppresses processing. The fact that disabling the custom RA filtering rules stops the issue indicates those rules or the ordering with conntrack/raw table is the trigger. Timing around PD renewals and LAN layer flaps suggests RAs are retried and then hit a path where NF hooks drop or alter ICMPv6 type-134 messages. Some clients may ignore RAs that have changed M/O flags or have inconsistent lifetimes.

Possible causes

Custom nftables/iptables rules in raw/PREROUTING stage are matching and dropping RA (ICMPv6 type 134) packets intermittently (ordering/conntrack interaction).

90%

odhcpd sending RAs with inconsistent lifetimes/M-bit due to PD renewal race; some clients treat those as invalid.

40%

Multicast or neighbor-solicitation packet loss on switch causing clients to miss parts of RA or ND sequence.

30%

Client-side firewall/stack bug on certain Android or macOS versions makes them ignore RAs when rapid changes occur.

25%

Suggested fixes

1

Diagnostic step 1

On the OpenWrt router, move RA/ICMPv6 allow/deny rules to the raw table's PREROUTING hook carefully: explicitly allow icmpv6 type 134/135/136 before any drop rules to ensure RAs/NS/NA pass. Use nftables syntax if using nft.

2

Diagnostic step 2

Temporarily enable verbose logging for firewall matches on RA packets to confirm which rule is dropping them (log then watch dmesg/journal).

3

Diagnostic step 3

If using conntrack bypass (raw table) for performance, add specific accept rules for 'ip6 nexthdr ipv6-icmp icmpv6 type { 134,135,136 }' before conntrack-bypass entries.

4

Diagnostic step 4

Set odhcpd to send stable RA lifetimes (increase preferred/valid times) or add small delay to PD renewal to avoid races: edit /etc/config/dhcp prefix delegation options.

5

Diagnostic step 5

After changes, verify by running tcpdump -i br-lan 'icmp6 && ip6[40] == 134' while triggering a PD renewal and confirm packets reach clients and clients add ::/0 route (ip -6 route show on client). Roll back firewall changes if unrelated logs increase.