WireGuardNT with a peer with a v6 endpoint address
Hello WireGuard list,
I was very excited to see that WireGuardNT was available to test with the WireGuard Windows 0.4 release and I jumped right on it. I have upgraded to 0.4.1 since then.
However, both from my desktop and laptop, where the laptop is on Windows 10 build 19043 and the desktop is on Windows 10 build 19042, I'm not seeing even a handshake go out on the wire / air when I use a v6 endpoint address for a peer, in my simple single peer configuration. When I switch down to a v4 endpoint address for the peer, it does work. wireguard-go worked fine with the v6 endpoint address, and continues to work fine. Has anyone else seen this?
Thanks so much to the developers for the tremendous work on WireGuard in all its forms.
Here's the log from my laptop trying to handshake for a bit, I have censored my VPS' IP and cut the log after the 20 attempts to handshake:
2021-08-03 18:23:58.478: [TUN] [MainVPS] Starting WireGuard/0.4.1 (Windows 10.0.19043; amd64) 2021-08-03 18:23:58.478: [TUN] [MainVPS] Watching network interfaces 2021-08-03 18:23:58.483: [TUN] [MainVPS] Resolving DNS names 2021-08-03 18:23:58.527: [TUN] [MainVPS] Creating network adapter 2021-08-03 18:23:58.532: [TUN] [MainVPS] WireGuardCreateAdapter: Creating adapter 2021-08-03 18:23:58.656: [TUN] [MainVPS] SelectDriver: Using existing driver 0.2 2021-08-03 18:23:59.170: [TUN] [MainVPS] Using WireGuardNT/0.2 2021-08-03 18:23:59.170: [TUN] [MainVPS] Enabling firewall rules 2021-08-03 18:23:59.170: [TUN] [MainVPS] Interface created 2021-08-03 18:23:59.178: [TUN] [MainVPS] Dropping privileges 2021-08-03 18:23:59.178: [TUN] [MainVPS] Peer 1 created 2021-08-03 18:23:59.190: [TUN] [MainVPS] Monitoring MTU of default v4 routes 2021-08-03 18:23:59.198: [TUN] [MainVPS] Setting device v4 addresses 2021-08-03 18:23:59.210: [TUN] [MainVPS] Monitoring MTU of default v6 routes 2021-08-03 18:23:59.210: [TUN] [MainVPS] Interface up 2021-08-03 18:23:59.210: [TUN] [MainVPS] Setting device v6 addresses 2021-08-03 18:23:59.270: [TUN] [MainVPS] Startup complete 2021-08-03 18:24:02.495: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:07.664: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 2) 2021-08-03 18:24:07.664: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:12.753: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 3) 2021-08-03 18:24:12.753: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:17.876: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 2) 2021-08-03 18:24:17.876: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:22.923: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 3) 2021-08-03 18:24:22.923: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:28.089: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 4) 2021-08-03 18:24:28.089: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:33.197: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 5) 2021-08-03 18:24:33.197: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:38.280: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 6) 2021-08-03 18:24:38.280: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:43.373: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 7) 2021-08-03 18:24:43.373: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:48.482: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 8) 2021-08-03 18:24:48.482: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:53.484: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 9) 2021-08-03 18:24:53.484: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:24:58.567: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 10) 2021-08-03 18:24:58.567: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:03.672: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 11) 2021-08-03 18:25:03.672: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:08.760: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 12) 2021-08-03 18:25:08.760: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:13.828: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 13) 2021-08-03 18:25:13.828: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:18.913: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 14) 2021-08-03 18:25:18.913: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:23.940: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 15) 2021-08-03 18:25:23.940: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:29.096: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 16) 2021-08-03 18:25:29.096: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:34.110: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 17) 2021-08-03 18:25:34.110: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:39.244: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 18) 2021-08-03 18:25:39.244: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:44.387: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 19) 2021-08-03 18:25:44.387: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:49.455: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 5 seconds, retrying (try 20) 2021-08-03 18:25:49.455: [TUN] [MainVPS] Sending handshake initiation to peer 1 ([2605:6400:20:xx:xxxx::1]:56780) 2021-08-03 18:25:54.502: [TUN] [MainVPS] Handshake for peer 1 ([2605:6400:20:xx:xxxx::1]:56780) did not complete after 20 attempts, giving up
Hi Darren,
Thanks very much for the report. Fixed here:
https://git.zx2c4.com/wireguard-nt/commit/?id=a48d8a6751e35b6a3bc30062f6021673fccae1c4
. This will be part of the next build.
Jason