wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

Ping impossible when few hours apppend

Open fromnowhereuser opened this issue 2 years ago • 1 comments

I have 2 RPI that act has client, and one linux server.

I cant ping the server from the PI. But, i want to ping the Pi from the server, it fails. And IF i ping again from the PI, the server can ping the Pi again.

It feels like the PI ping the server, "it wakes"up the VPN

fromnowhereuser avatar Apr 28 '22 09:04 fromnowhereuser

Read this: https://www.reddit.com/r/WireGuard/comments/i8ty2v/keep_alive_needed/ Basically you need to add PersistentKeepalive = x where x is the interval in seconds (i have it on 25 on my linux boxes)

CesarPetrescu avatar May 14 '22 23:05 CesarPetrescu

Can this script auto generate PersistentKeepalive = x in client config file ?

crazygit avatar Jan 14 '23 14:01 crazygit