IPv6-only backend reachable but client connections intermittently reset by NAT64 gateway
Environment
On-prem edge router running OpenWrt 22.03 acting as NAT64 (tayga) gateway for IPv4-only clients; backend services are native IPv6 on Debian 12 servers (nginx, TLS). Clients are multiple residential ISPs that are IPv4-only.
Symptoms
Clients on IPv4-only ISPs intermittently see TCP RSTs when connecting to backend services via the NAT64 address (64:ff9b::/96). Short requests (small HTTP GETs) usually succeed; larger responses or long-lived connections frequently get torn down mid-transfer with a RST from the NAT64 gateway. The problem is intermittent and affects different clients at different times.
Observations
tcpdump on the NAT64 gateway shows the NAT64 translating IPv6 backend SYN-ACKs to IPv4 responses but in many failed cases the gateway later sends a TCP RST toward the IPv4 client. conntrack table shows many entries in TIME_WAIT and some entries being evicted near the timeouts. Firewall rules allow established connections. Reducing backend response size occasionally avoids the reset. No obvious kernel oopses in dmesg.
Already attempted
Restarted tayga and the edge router, increased net.netfilter.nf_conntrack_max, temporarily disabled firewall rules, disabled TCP timeouts tuning, disabled TCP offload (ethtool -K) on the gateway, and forced smaller MTU between gateway and backend. None of these eliminated RSTs; frequency decreased when MTU was reduced.
Question
What is causing the NAT64 gateway to issue TCP RSTs mid-connection, and which diagnostic steps and tunables should I apply to prevent resets while preserving IPv6 connectivity for IPv4-only clients?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking29% match
Clients time out to IPv4-only sites after enabling DNS64/NAT64 on OpenWrt router (intermittent synthesis failures)
Open0 answers - Networking27% match
Clients receive IPv6 addresses but no default route after enabling DHCPv6-only mode on OpenWrt router
Open0 answers - Networking21% match
IPv6 connections open but certain websites time out after enabling SLAAC on home router
Open0 answers