Networking
VERIFIED FIXES

Linux source‑based routing causes intermittent IPv6 HTTPS failures for routed clients

Environment

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

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

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

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

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?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
debugdaniel Answer
user
Posted 1mo ago • 0 confirmations

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.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Outbound packets selected source address or route that causes server replies to return on a different uplink; asymmetric routing means replies never reach original client (wrong reverse path) 85%
Reverse Path Filtering (rp_filter) enabled on router or upstream peer dropping return packets when incoming interface doesn't match source prefix 65%
Partial conntrack or NAT table mismatch created by source routing + stateful firewall causing replies to be ignored for some flows 40%

Summary

Symptoms point to asymmetric routing / source selection mismatch: ip rules routing outbound packets via an uplink that does not match the upstream path the remote host uses to respond, so return packets are delivered to a different upstream or dropped by an intermediate with reverse‑path checks. Alternatively, reverse path filtering (rp_filter) on a next‑hop or the ISP firewall may drop replies when the source address doesn't match the expected incoming interface. PMTU issues could cause stalls for large transfers, but small requests succeeding and server replies being observed upstream indicate asymmetric path/response delivery is primary.

Suggested Fixes

Diagnostic step 1
Capture IPv6 flow (tcpdump -n -i <uplink> ip6) for an affected client during a failure and note the source address used and the outgoing interface.
Diagnostic step 2
Run 'ip rule show' and 'ip -6 route show table all' to verify which table is used for the client's source prefix and check the per‑table default route.
Diagnostic step 3
Temporarily disable rp_filter: echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter (and per‑iface) to see if replies are accepted; revert after test. Use sysctl for persistence only after verifying.

Continue troubleshooting

Matched from the title, description and tags