Development discussion of WireGuard
 help / color / mirror / Atom feed
* Wireguard connections are lost after a few minutes
@ 2021-01-04 21:49 Philippe Camps
  2021-01-04 22:23 ` Jason A. Donenfeld
  2021-01-05 11:19 ` Philippe Camps
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Camps @ 2021-01-04 21:49 UTC (permalink / raw)
  To: Jason, wireguard

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wireguard connections are lost after a few minutes
  2021-01-04 21:49 Wireguard connections are lost after a few minutes Philippe Camps
@ 2021-01-04 22:23 ` Jason A. Donenfeld
  2021-01-05 11:19 ` Philippe Camps
  1 sibling, 0 replies; 3+ messages in thread
From: Jason A. Donenfeld @ 2021-01-04 22:23 UTC (permalink / raw)
  To: Philippe Camps; +Cc: WireGuard mailing list

Are you sharing the private key with other machines?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wireguard connections are lost after a few minutes
  2021-01-04 21:49 Wireguard connections are lost after a few minutes Philippe Camps
  2021-01-04 22:23 ` Jason A. Donenfeld
@ 2021-01-05 11:19 ` Philippe Camps
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Camps @ 2021-01-05 11:19 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

Hi,

No I'm not sharing the private key with other machines
If I have an another machine, I use an another IP / Key ...

Today, I was able to investigate in my office. I connected my laptop to the same LAN than the wireguard server. It worked fine with the ethernet cable.
Then I tried to connect only with the WIFI. It worked perfectly.

Yesterday, I was at home with my provider and its box (ADSL + WIFI).
My connections were working very good with internet. I need to use Wireguard to connect to the LAN of my company and I get this issue.

Weird.

When my client was 0.1 release and less than 0.2, everything was OK. It looks like the problem has been happening since I updated my client version. But not sure about it.



4 janvier 2021 23:30 "Jason A. Donenfeld" <Jason@zx2c4.com> a écrit:

> Are you sharing the private key with other machines?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-05 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 21:49 Wireguard connections are lost after a few minutes Philippe Camps
2021-01-04 22:23 ` Jason A. Donenfeld
2021-01-05 11:19 ` Philippe Camps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).