Networking
VERIFIED FIXES

OpenWrt DHCPv6-only LAN intermittently fails to reach IPv4-only websites after enabling PD-only mode

Environment

Environment

Home OpenWrt router (21.02), DHCPv6 PD enabled and configured to advertise only IPv6 addresses; dual-stack client phones and laptops set to prefer IPv6; firewall: default OpenWrt rules; NAT64/DNS64 service (tayga + bind9) installed on separate Raspberry Pi on LAN.

Symptoms

Symptoms

Clients can fetch IPv6-native sites reliably but intermittently time out or stall when opening IPv4-only websites (examples: legacy payment portals). Symptoms appear as DNS resolution returning synthesized IPv6 addresses sometimes, other times DNS returns A records and connection stalls.

Observations

Observations

tcpdump on router shows occasional DNS queries for A records to upstream resolver with no response; when DNS64 synthesizes AAAA the client attempts TCP to synthesized address but receives RST or no response. NAT64 (tayga) logs show 'ICMP unreachable - admin prohibited' in bursts. Some clients show working IPv4 via tethering.

Already attempted

Already attempted

Rebooted router and NAT64 host; swapped upstream DNS servers; disabled RA-only mode briefly and re-enabled; tested curl from Raspberry Pi directly to problematic IPv4 sites (works); captured client and NAT64 traffic for failing flows.

Question

Question

What configuration or packet path could cause intermittent failures for IPv4-only sites after moving client LAN to DHCPv6/PD-only mode, and how can I reliably restore IPv4 access while keeping IPv6-only client addressing?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
emmahacks Answer
user
Posted 4w ago • 0 confirmations

First check whether your DNS64 is consistently synthesizing AAAA records and whether the NAT64 host forwards those connections. On a failing client, point DNS to the local DNS64 (dig A and AAAA) and confirm AAAA appears. On the NAT64 box, temporarily set iptables -P FORWARD ACCEPT and tail tayga/syslog while reproducing; if flows succeed, re-enable firewall and inspect conntrack counters (cat /proc/sys/net/netfilter/nf_conntrack_count). If conntrack is exhausted, raise nf_conntrack_max or tune timeouts; if DNS bypassing is observed, enforce local DNS via DHCP options. Roll back iptables changes after testing.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely causes

Local DNS64 server intermittently failing/saturating and returning raw A records causing clients to attempt native IPv4 without a working NAT64 path 80%
Firewall on NAT64 host (Raspberry Pi) or router blocking translated connections intermittently due to conntrack or rate-limiting rules 65%
tayga (user-space NAT64) hitting resource limits or kernel tun interface dropping packets under load causing ICMP admin-prohibited 50%

Summary

Symptoms point to intermittent break in translation path: either DNS64 sometimes failing to synthesize AAAA or NAT64 (tayga) blocking translated TCP flows. Observations show A queries leaving router, and when DNS64 provides AAAA, NAT64 returns ICMP 'admin prohibited', suggesting firewall/NAT rules or kernel forwarding limits on the NAT64 host. Another possibility is inconsistent DNS forwarding between clients and the DNS64 server causing mixed A/AAAA responses. Client-side dual-stack happy eyeballs might choose the wrong path when translation misbehaves.

Suggested Fixes

Diagnostic step 1
On NAT64 host: monitor syslog and tayga logs, increase logging for conntrack and firewall, check dmesg for netfilter drops; temporarily allow all forwarding (iptables -P FORWARD ACCEPT) and test a failing client.
Diagnostic step 2
On DNS64 host: enable debug logging in bind9 or dnsmasq to confirm when AAAA synthesis occurs versus raw A responses; run 'dig +short @127.0.0.1 A example.com' and 'dig +short @127.0.0.1 AAAA example.com' during failure.
Diagnostic step 3
Temporarily bypass client-stub DNS (set a failing client to use local DNS64 IP) and reproduce; compare tcpdump on NAT64 host for SYN packets and ICMP replies.

Continue troubleshooting

Matched from the title, description and tags