Development discussion of WireGuard
 help / color / mirror / Atom feed
* Keepalive packets transmitted by default
@ 2021-10-12 13:52 Gert Mertes
  2021-10-13  2:08 ` Aaron Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Gert Mertes @ 2021-10-12 13:52 UTC (permalink / raw)
  To: wireguard

Hi,

My Windows client (0.4.11) will still sporadically send (and receive) keepalive packets over an idle tunnel, even though PersistentKeepalive is not set in the config of any peer in the tunnel. Explicitly setting it to 0 also has the same result. I’m wondering if (i) the above is expected behaviour and (ii) is it possible to completely disable keepalive packets?

Thanks,
Gert

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

* Re: Keepalive packets transmitted by default
  2021-10-12 13:52 Keepalive packets transmitted by default Gert Mertes
@ 2021-10-13  2:08 ` Aaron Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Jones @ 2021-10-13  2:08 UTC (permalink / raw)
  To: wireguard; +Cc: Gert Mertes


[-- Attachment #1.1: Type: text/plain, Size: 864 bytes --]

On 12/10/2021 13:52, Gert Mertes wrote:
> Hi,
>
> My Windows client (0.4.11) will still sporadically send (and receive)
> keepalive packets over an idle tunnel, even though PersistentKeepalive
> is not set in the config of any peer in the tunnel. Explicitly setting
> it to 0 also has the same result. I’m wondering if (i) the above is
> expected behaviour and (ii) is it possible to completely disable
> keepalive packets?
>
> Thanks,
> Gert

This is the expected behaviour, and it is not possible to disable it.

It's occurring because there is a unidirectional data transfer happening
(e.g. UDP), and the other side is responding with the keepalive because
it hasn't already done so recently (like it would with e.g. a TCP ACK)
and has nothing to send.

The reasons are described in sections 6.2 and 6.5 of the WireGuard
whitepaper.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2021-10-13  2:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 13:52 Keepalive packets transmitted by default Gert Mertes
2021-10-13  2:08 ` Aaron Jones

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git