[solved] How to use keep alive in client script
Posted: Tue Dec 06, 2011 10:45 pm
Hello. I'm new and have searched and not found an answer to my question. I would like to put a keep alive parameter in my client config, but when I do, it does not work. I'm on Windows 7 sp1. and here is my current client config.
Without some sort of keep alive mechanism, I will lose connection while reading a web page or if I walk away from the computer for a few minutes. OpenVpn will pop up a dialogbox for me to re-enter my information, but it does not work this way. I have to cancel and restart by double-clicking the tray icon. Then it will log into the server.
I tried using a timeout param I saw in one post, but when I put it into the script, OpenVpn doesn't work at all. When I double-click on the icon, it immediately says "Failed" (plus something else that I can't remember right now).
I would appreciate any help.
thanks
Code: Select all
client
auth-nocache
auth-user-pass
#dev tap
dev tun
;connect_retry_max = 10
;dev-node MyTap
;proto tcp
proto udp
;remote my-server-1 1194
;remote my-server-2 1194
;remote ***.***.*****.*** 1194
remote ******.*****.*****.*** 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca *****.***
remote-cert-tls server
;cert client.crt
;key client.key
;ns-cert-type server
;tls-auth ta.key 1
;cipher x
;comp-lzo
script-security 3
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
I tried using a timeout param I saw in one post, but when I put it into the script, OpenVpn doesn't work at all. When I double-click on the icon, it immediately says "Failed" (plus something else that I can't remember right now).
I would appreciate any help.
thanks