Hello guys,
I experienced a problem lately with my ovpn config file.
It currently looks like this:
client
dev tun
proto udp
remote xxxxxxxxx
remote-random-hostname
resolv-retry infinite
inactive 60
nobind
remote-cert-tls server
cipher AES-256-GCM
--cert "xxxxxxx"
--key "xxxxxx"
verb 3
<ca>
-----BEGIN CERTIFICATE-----
xxxxxxxxx
-----END CERTIFICATE-----
</ca>
reneg-sec 0
The inactive parameter is set to 60 seconds. But my connection won´t be closed after 60 seconds because a ping will be sent every ~5 seconds... So the system won´t get the inactive status because of the ping.
How can I fix this issue?
OVPN Inactive Parameter not working because of ping
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Mar 01, 2023 9:09 am
- openvpn_inc
- OpenVPN Inc.
- Posts: 1333
- Joined: Tue Feb 16, 2021 10:41 am
Re: OVPN Inactive Parameter not working because of ping
Hello mabr,
I suggest trying to add a bytes value. inactive 60 1024 for example. Meaning that if within 60 seconds less than 1024 bytes are sent, the connection is terminated.
See also --inactive on this page:
https://openvpn.net/community-resources ... envpn-2-6/
Note that clients may choose to autoreconnect.
Kind regards,
Johan
I suggest trying to add a bytes value. inactive 60 1024 for example. Meaning that if within 60 seconds less than 1024 bytes are sent, the connection is terminated.
See also --inactive on this page:
https://openvpn.net/community-resources ... envpn-2-6/
Note that clients may choose to autoreconnect.
Kind regards,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support