Linux source‑based routing causes intermittent IPv6 HTTPS failures for routed clients
Environment
Debian 12 router running iproute2. Router has multiple outgoing links and uses source‑based routing (ip rule/ip route table) to send different subnet traffic out different uplinks. Clients use SLAAC for IPv6 addresses, NAT is not used for IPv6.
Symptoms
Some LAN clients intermittently fail to load IPv6‑only HTTPS sites; pages either fail to connect or large downloads stall. Small requests and DNS AAAA queries succeed. Issue occurs 1–10 times per day and affects different clients each time.
Observations
tcpdump at router shows SYN/ACK from remote IPv6 server never arriving back to correct client; some server replies present on upstream interface but appear to be dropped. traceroute6 from affected client reaches remote host fine. No consistent firewall logs show drops on local router.
Already attempted
Disabled iptables raw rules temporarily, flushed conntrack entries, moved problematic ip rule lower in priority, performed traceroutes from different LAN hosts, restarted NetworkManager on clients. Problem persisted on some flows.
Question
What is the likely root cause of these intermittent IPv6 HTTPS failures with source‑based routing, and how can I change routing or packet handling so responses reliably return to the correct client?
Verified community troubleshooting
Start by confirming whether the router is picking an outgoing link that the remote peer won’t return packets to. Capture IPv6 traffic on each uplink while reproducing the failure (tcpdump -n -i <uplink> ip6 and tcp port 443). If you see the SYN go out one uplink and server replies arriving on another, the fix is to ensure source‑prefix based routes and src selection keep ingress/egress symmetric. Add explicit ip rule / ip -6 route entries tying the client prefix to the correct table (or set 'src' on the table's route) and retest. As a temporary test, disable rp_filter to determine if reverse‑path filtering is the drop cause; re‑enable after. If symmetry isn't achievable, implement edge SNAT for the subnet or consolidate traffic over a single uplink. Revert any rp_filter change if it increases exposure and document sysctl changes for rollback.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking30% match
Clients time out to IPv4-only sites after enabling DNS64/NAT64 on OpenWrt router (intermittent synthesis failures)
Open0 answers - Networking27% match
Dual‑WAN Edge Router Sends HTTPS Traffic Out Slower Link Despite Healthy Primary — Large TCP Transfers Stall
Open0 answers - Networking26% match
GRE tunnel drops fragmented packets >1400B only when raw PREROUTING conntrack-bypass rule is present on Linux router
Open0 answers - Networking25% match
Edge Linux router drops long-lived TCP uploads after conntrack table thrash under heavy NAT load
Solved1 answer - Networking24% match
IPv6 connections open but certain websites time out after enabling SLAAC on home router
Open0 answers