After migrating to OpenWrt, devices within the local network experience 25-37% packet loss when communicating through WireGuard, while external WireGuard clients maintain perfect connectivity. The issue affects both wired and wireless clients.
[Interface]
PrivateKey = [REDACTED]
Address = 10.1.1.11/24
[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.1.1.0/24
PersistentKeepalive = 45
Endpoint = URL:51820
Environment:
WG_HOST: URL
WG_PORT: 51820
WG_DEFAULT_ADDRESS: 10.1.1.x
WG_DEFAULT_DNS: 10.1.1.11
WG_PERSISTENT_KEEPALIVE: 90
Summary: 16-33% loss, latency stable 48-50ms, best performance to 10.1.1.2
PC:Summary: Consistent 25% loss, first packet typically lost, latency 50-100ms
Summary: 16-33% loss, latency consistent ~49ms, improved stability to 10.1.1.2/3
PC:Summary: Variable performance, occasional perfect runs to 10.1.1.2, latency 50-100ms
Summary: 16-50% loss, latency stable 48-50ms, worst performance to 10.1.1.4
PC:Summary: Highly variable 0-50% loss, latency 50-85ms, best performance to 10.1.1.4
Summary: Increased loss 16-50%, latency stable 48-50ms when connected
PC:Summary: Consistent 25-33% loss, latency more variable 50-120ms
Summary: Improved stability, 0-33% loss, latency consistent 48-50ms
PC:Summary: Better performance to some endpoints, latency 50-100ms, perfect runs to 10.1.1.2/3
Summary: Inconsistent performance between tests, 0-33% loss, latency stable when connected
PC:Summary: Extreme variation, perfect to some endpoints, poor to others, latency 50-150ms
Summary: Perfect connectivity, latency 48-50ms (82ms to 10.1.1.4)
Summary: Significant regression, 16-50% loss, latency stable when connected
PC:Summary: Mixed results, perfect connectivity to some endpoints, latency 46-103ms, occasional high spikes
Key Observation: Perfect connectivity achievable but not maintainable, suggesting system-level inconsistency rather than pure configuration issue.
The fact that perfect connectivity is achievable but not maintainable suggests a potential race condition or resource management issue in OpenWrt's network stack rather than a pure configuration problem. The inconsistency between test runs with identical settings points to a deeper system-level issue.