Open Winand opened 1 year ago
Try adding PersistentKeepalive = 25
to the Peer
section of your wireguard configuration on the server?
Try adding
PersistentKeepalive = 25
to thePeer
section of your wireguard configuration on the server?
But from the log we can see that it keeps sending keepalive packets every 25s until handshake fails at 2023/08/17 11:47:11.
I use Firezone ~0.7.26~ 0.7.33 server and it sets [peer] PersistentKeepalive = 25
in client configurations by default. Config looks like this:
[Interface]
PrivateKey = *******************
Address = ***.***.***.***/32
MTU = 1280
DNS = 1.1.1.1,1.0.0.1
[Peer]
PresharedKey = *******************
PublicKey = *******************
AllowedIPs = 0.0.0.0/0
Endpoint = *******************:51820
PersistentKeepalive = 25
Yes, but that's from the client. It should not matter, I know, but NAT can be unpredictable, especially CGNAT.
Ok, I see now that it's a network issue. I've copied wireproxy app with my config to a different machine located in a different place and it works as expected.
wireguard configuration on the server
I don't know where to edit server config in Firezone (Docker deployment)🤔 Cannot find that in docs.
That would be covered by the configuration file reference. Specifically default['firezone']['wireguard']['persistent_keepalive']
System details
Wireproxy stops receiving handshake responses after some time of inactivity, so I have to restart it.
If I make requests periodically everything is ok:
But if the interval between requests is ≥90s it stops working.