ffnord / ffnord-puppet-gateway

Deploy and manage your Freifunk community gateway, mostly compatible with Gluon.
15 stars 13 forks source link

Add ping to hide.io config te restart on disconnect due to inactivity #126

Closed rubo77 closed 8 years ago

rubo77 commented 9 years ago

Without these lines on one gateway we got a irregular disconnects every about half an hour with the message

ovpn-anonvpn [_.hide.me] Inactivity timeout (--ping-restart), restarting

this will ping

Manpage:

Note that since UDP is connectionless, connection failure is defined by the --ping and --ping-restart options.
--ping n - Ping remote over the TCP/UDP control channel if no packets have been sent for at least n seconds
--ping-restart n - restart after n seconds pass without reception of a ping or other packet from remote.

(I couldnt acieve this with any keepalive setting)

sargon commented 9 years ago

We could also use "keepalive 10 30", which reads clearer and expands to equivalent behavior. That would be a cosmetic correction.

rubo77 commented 9 years ago

I tried keepalive. but that didn't work. maybe keepalive uses another mechanism

sargon commented 9 years ago

On 07/21/2015 11:27 AM, Ruben Barkow wrote:

I tried keepalive. but that didn't work. maybe keepalive uses another mechanism

— Reply to this email directly or view it on GitHub https://github.com/ffnord/ffnord-puppet-gateway/pull/126#issuecomment-123235868.

According to the documentation, keepalive expands to the same arguments as proposed. When this don't work either the documentation is wrong or the observed fix is random.

rubo77 commented 9 years ago

I tried keepalive 5 30 which didn't change the problem, so maybe keepalive 10 30 was the solution, which would be strange?

sargon commented 9 years ago

I think the whole situation is weird, since suddenly we need to have such tricks to keep the connection to hideio alive.

rubo77 commented 8 years ago

since we use the berlin VPN the problem is gone, I will close this for now