Closed snagytx closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
You don't need to post in multiple places. Some of this was already explained in response to your forum post.
From the readme:
-e PERSISTENTKEEPALIVE_PEERS=
Set to all or a list of comma separated peers (ie. 1,4,laptop) for the wireguard server to send keepalive packets to listed peers every 25 seconds.
Useful if server is accessed via domain name and has dynamic IP. Used only in server mode.
That directive is used only for the server to send keepalive packets to the peer(s).
What you're asking for is for the peer to send keepalive packets to the server, which is done by adding the directive to the peer's conf.
Those are two separate things.
Keepalive is off by default because it is not always wanted (drains battery on mobile devices) and should only be set when needed.
Closing as it's not a bug.
Is there an existing issue for this?
Current Behavior
Even though
PERSISTENTKEEPALIVE_PEERS=all
is set, thePersistentKeepalive
is not added to the peerX.conf file, it's only added to /config/wg0.conf fileExpected Behavior
PersistentKeepalive = 25
to be added to peerX.conf file as well.Steps To Reproduce
Based on my testing, if
PersistentKeepalive=25
is not set in the peerX.conf file, the client, which is behind a NAT will not connect to the server automatically upon client container startup.BAD Case:
GOOD Case:
The purpose of the change is for steps 7 to work without any intervention in the good case.
Environment
CPU architecture
x86-64
Docker creation
Server docker-compose.yml:
Client docker-compose.yml:
Container logs