how to disable the heartbeat?

Got a problem with Viscosity or need help? Ask here!

xiyue

Posts: 2
Joined: Mon Apr 11, 2022 1:57 pm

Post by xiyue » Mon Apr 11, 2022 2:12 pm
hi, guys:
how to disable the heartbeat between viscosity and vpn server? I have pushed "inactive 1800" from server, but still connected after idle 1800s.

James

User avatar
Posts: 2312
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Mon Apr 11, 2022 4:09 pm
Hi xiyue,

OpenVPN's internal pings do not affect the "inactive" command: they're ignored by this command. For more information please see:
https://www.sparklabs.com/support/kb/ar ... /#inactive

I would not recommend attempting to disable OpenVPN's internal pings between the server and the client. These let the server know when the client has disconnected/dropped (or vice-versa), as well as keep the connection alive through NAT routers and other network devices.

The connection is most likely being kept alive as other network traffic is passing through it. I recommend using a tool like Wireshark to watch all traffic on the VPN network interface so you can monitor what packets are being sent when you'd expect the connection to be otherwise idle.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs

xiyue

Posts: 2
Joined: Mon Apr 11, 2022 1:57 pm

Post by xiyue » Mon Apr 11, 2022 6:51 pm
But my requirement is to disconnect from the openvpn server after being idle (no application layer data transmission) for a period of time (such as 1800 seconds).
3 posts Page 1 of 1