subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained
MIT License
1.8k stars 131 forks source link

Suggestion: Linux & MacOS devices should have "PersistentKeepalive" in their profiles #202

Closed unquietwiki closed 2 years ago

unquietwiki commented 3 years ago

On a previous Wireguard setup, I found that the Windows client dealt with needing to do keepalives / trying to connect to the VPN server; but the Linux & Mac systems needed to be explicitly told to check, to establish the connection. Documentation I've come across in the past suggests 20 seconds as a good figure.

[Peer]
(normal stuff)
PersistentKeepalive = 20
mrnonz commented 3 years ago

I think it's should built-in subspace and config via ENVIRONMENT variable

Something like

- SUBSPACE_PERSISTENT_KEEPALIVE=20

20 is mean 20 seconds and If set to 0 is mean disabled.