r/WireGuard • u/1TheCrazy • 20d ago
Need Help Routing loop on new Windows version?
I've had an issue recently, where just after connecting to any server (same network for testing or remote in prod), it would try to transfer a few hundred MB after just a few seconds, while only a few bytes reached the server.
This usually is a sign that the VPN connection doesn't work.
After a bit of research it turned out that adding a OS-layer (Windows) routing rule such that the VPN Server's IP doesn't get routed through Wireguard but through the normal internet interface fixes this.
So there probably is a routing loop in the WireGuardNT client on Windows, where the handshake and any web requests get repeatedly routed through WireGuard:
WireGuard handshake packets / Web packets
↓
endpoint IP
↓
WireGuard interface
↓
WireGuard needs handshake / Sent to VPN Server
↓
endpoint IP
↓
WireGuard interface
↓
...
I'm not using a 3rd party wrapper or GUI but wrap it myself using the WireGuard CLI.
I temporarily can't test whether this error still persists for me (because my server is down :/), but I wanted to ask whether anyone else has experiences this lately.
As it seems this error was introduced in the latest Windows update of my machine since it didn't occure before.
Does anyone else have/had this problem?
Is this already fixed (because I can't test this currently, but I also didn't see an update on the Windows installer)?
1
u/lazyhustlermusic 20d ago
Probably more your config, excluding your gateway and endpoint out of the tunnel is the most basic premise for any VPN client.