i have a problem with all clients disconnecting after some time of inactivity, all i get is a dns error on client:
Wed Oct 16 15:59:17 2013 RESOLVE: Cannot resolve host address: my-remote-vpn.com: No such host is known.
my client config is setup to use server fqdn, now if i try ip address it still doesnt work.
this is the server config :
# protocol port
port 1194
proto udp
dev tun
# listen on this only
local <addr>
# certificates
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/cert.crt
key /etc/openvpn/keys/cert.key # This file should be kept secret
dh /etc/openvpn/keys/dh2048.pem
# client network settings
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222" # change if you don't want opendns
push "dhcp-option DNS 208.67.220.220"
# dpd
keepalive 10 120
tls-auth /etc/openvpn/keys/ta.key 0 # This file is secret
cipher AES-256-CBC # AES
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
# auth
auth-user-pass-verify /etc/openvpn/script/login.sh via-env
# script connect disconnect
script-security 3 system
client-connect /etc/openvpn/script/connect.sh
client-disconnect /etc/openvpn/script/disconnect.sh
# log status
status /etc/openvpn/log/server.log
log-append /etc/openvpn/log/openvpn.log
verb 3