Wireguard connections are lost after a few minutes
Philippe Camps
philippe.camps at ies.univ-montp2.fr
Mon Jan 4 21:49:55 UTC 2021
Wireguard server installed on CentOS 4.18.0-240.1.1.el8_3.x86_64
kmod-wireguard-1.0.20201221-1.el8_3.elrepo.x86_64
wireguard-tools-1.0.20200827-1.el8.x86_64
Since the versions released in september ?, I can see that wireguard is unstable (before, it was working fine).
The connection is lost after a few minutes, as shown in Windows client logs.
I tried to change the "PersistentKeepalive = 25" parameter with 15 or 300, but it did not change the issue
2021-01-03 20:06:16.582289: [TUN] [vpn-ies] Starting WireGuard/0.3.4 (Windows 10.0.19042; amd64)
2021-01-03 20:06:16.582289: [TUN] [vpn-ies] Watching network interfaces
2021-01-03 20:06:16.583305: [TUN] [vpn-ies] Resolving DNS names
2021-01-03 20:06:16.583305: [TUN] [vpn-ies] Creating Wintun interface
2021-01-03 20:06:16.664991: [TUN] [vpn-ies] [Wintun] CreateAdapter: Creating adapter
2021-01-03 20:06:16.837870: [TUN] [vpn-ies] Using Wintun/0.10
2021-01-03 20:06:16.837870: [TUN] [vpn-ies] Enabling firewall rules
2021-01-03 20:06:16.842192: [TUN] [vpn-ies] Dropping privileges
2021-01-03 20:06:16.842192: [TUN] [vpn-ies] Creating interface instance
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: event worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: encryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: decryption worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: handshake worker - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Routine: TUN reader - started
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Setting interface configuration
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] UAPI: Updating private key
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] UAPI: Removing all peers
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] UAPI: Transition to peer configuration
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Created
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Updating endpoint
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Updating persistent keepalive interval
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Removing all allowedips
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] peer(Ok2I…slxw) - UAPI: Adding allowedip
2021-01-03 20:06:16.842640: [TUN] [vpn-ies] Bringing peers up
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] Routine: receive incoming IPv6 - started
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] Routine: receive incoming IPv4 - started
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] UDP bind has been updated
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Starting...
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Routine: sequential receiver - started
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Routine: nonce worker - started
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Routine: sequential sender - started
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] Monitoring default v6 routes
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] Binding v6 socket to interface 0 (blackhole=false)
2021-01-03 20:06:16.844102: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:06:16.844665: [TUN] [vpn-ies] Setting device v6 addresses
2021-01-03 20:06:16.844665: [TUN] [vpn-ies] peer(Ok2I…slxw) - Awaiting keypair
2021-01-03 20:06:16.885072: [TUN] [vpn-ies] peer(Ok2I…slxw) - Received handshake response
2021-01-03 20:06:16.885072: [TUN] [vpn-ies] peer(Ok2I…slxw) - Obtained awaited keypair
2021-01-03 20:06:16.910671: [TUN] [vpn-ies] Monitoring default v4 routes
2021-01-03 20:06:16.910671: [TUN] [vpn-ies] Binding v4 socket to interface 13 (blackhole=false)
2021-01-03 20:06:16.910671: [TUN] [vpn-ies] Setting device v4 addresses
2021-01-03 20:06:16.987609: [TUN] [vpn-ies] Listening for UAPI requests
2021-01-03 20:06:16.987609: [TUN] [vpn-ies] Startup complete
2021-01-03 20:06:44.507851: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:08:17.256150: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:08:17.295819: [TUN] [vpn-ies] peer(Ok2I…slxw) - Received handshake response
2021-01-03 20:08:17.295819: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:10:17.788524: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:10:17.833181: [TUN] [vpn-ies] peer(Ok2I…slxw) - Received handshake response
2021-01-03 20:10:17.833181: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:12:18.494856: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:12:18.536965: [TUN] [vpn-ies] peer(Ok2I…slxw) - Received handshake response
2021-01-03 20:12:18.536965: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:14:18.566158: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:14:18.605993: [TUN] [vpn-ies] peer(Ok2I…slxw) - Received handshake response
2021-01-03 20:14:18.605993: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending keepalive packet
2021-01-03 20:15:53.280762: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:15:53.280762: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:15:58.367027: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:15:58.367027: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:03.462375: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 3)
2021-01-03 20:16:03.462375: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:08.491157: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 4)
2021-01-03 20:16:08.491157: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:13.789316: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 5)
2021-01-03 20:16:13.789316: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:14.228388: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:16:18.857410: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:18.857410: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:23.923212: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:29.059729: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:29.059729: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:29.528354: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:16:34.197390: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:34.197390: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:39.522215: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:39.522215: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:44.841365: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:44.841365: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:45.186791: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:16:49.970248: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:49.970248: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:16:55.295304: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:16:55.295415: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:00.473260: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:00.473427: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:02.246057: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:17:05.797029: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:05.797029: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:10.871389: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:10.871389: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:16.193860: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:16.193860: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:18.945461: [TUN] [vpn-ies] peer(Ok2I…slxw) - Awaiting keypair
2021-01-03 20:17:19.103950: [TUN] [vpn-ies] peer(Ok2I…slxw) - Retrying handshake because we stopped hearing back after 15 seconds
2021-01-03 20:17:21.267490: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:21.267490: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:26.474817: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:26.474817: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:31.804278: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:31.804278: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:37.034885: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:37.034885: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:42.206524: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:42.206546: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:47.239862: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:47.239862: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:52.261473: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:52.261473: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:17:57.315497: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:17:57.315497: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:18:02.337395: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:18:02.337395: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:18:07.538901: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:18:07.538901: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
2021-01-03 20:18:12.833280: [TUN] [vpn-ies] peer(Ok2I…slxw) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-01-03 20:18:12.833280: [TUN] [vpn-ies] peer(Ok2I…slxw) - Sending handshake initiation
Any help would be appreciate
More information about the WireGuard
mailing list