keepalive but no ping in tcpdump

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
stefan.poeter
OpenVpn Newbie
Posts: 2
Joined: Sun Mar 04, 2018 10:58 am

keepalive but no ping in tcpdump

Post by stefan.poeter » Sun Mar 04, 2018 11:03 am

Hi everyone.

i've set up an openvpn access server and added a keepalive 10 120 directive the server config directive in the advanced settings. My understanding is, that the server now contacts the connected clients every 10 seconds and the client reconnect after a period of 120 seconds without a ping from the server.

So when I do a tcpdmp -i tun0 i should see those ping requests right? But I do not! Am I missing something?

Thanks for any help.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: keepalive but no ping in tcpdump

Post by novaflash » Sun Mar 04, 2018 7:03 pm

No, you shouldn't see them. They're actions that occur in the OpenVPN protocol, and are like pings, but not transported outside of OpenVPN processes. Therefore not visible to tcpdump.

If you use tcpdump to monitor the transport packets for the VPN tunnel instead, you should see a regular blip of openvpn encrypted data come by, even if you are not sending any payload through.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

stefan.poeter
OpenVpn Newbie
Posts: 2
Joined: Sun Mar 04, 2018 10:58 am

Re: keepalive but no ping in tcpdump

Post by stefan.poeter » Tue Mar 06, 2018 8:28 am

That's it. When I monitored my network interface I saw the ACK coming from the OpenVPN Server every ten seconds. Thanks a lot.

Post Reply