OVPN Inactive Parameter not working because of ping
Posted: Wed Mar 01, 2023 9:13 am
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?
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?