I want my clients do automatically disconnect VPN after a period of inactivity. I have added to my client
inactive 300 into ovpn file, and it works. But, it works maximally until 300 seconds. If I set e.g. 360 or 600 instead, it will be ignored. Or any other higher number.
My server is an Asus Merlin fw Router - OpenVPN 2.3.10
OpenVPN 2.3.13 Win7-32bit openvpn-install-2.3.13-I601-i686
.ovpn file of my client is for the most part generated by the router itself, except for doubling my ddns address resolvers and inactive:
dev tun
proto udp
remote address1 1194
remote address2 1194
float
cipher AES-128-CBC
comp-lzo adaptive
inactive 300
keepalive 15 60
ns-cert-type server
<ca>
</ca>
<cert>
</cert>
<key>
</key>
<tls-auth>
</tls-auth>
resolv-retry infinite
nobind
I do not see a reason for keepalive 15 60 to conflict with it, because, it is not a problem for inactive 60 and to inactive 300 seconds, why would it be for more than that? Same goes for ping-restart 0.
So, what am I missing here and why would it not work with inactive 1800