Page 1 of 1

OpenVPN connects / disconnects every 120 sec

Posted: Sun Nov 22, 2009 10:25 am
by nepdev
I have OpenVPN running on 3 PCs using CentOs 5 (one server, 2 clients).
Installation went all fine.

Trying to ping the clients from the server shows an awkward behavior in that the pings will get responses for 120 seconds, then there is no response at all for 120 sec, then again all is fine for 120 sec.
These 120 sec coincide with the "dead client" timeout value in the configuration file, yet this should
have nothing to do with it. The 120 sec off/on periods however are quite precise and it behaves like this for hours.

Configuration files for clients and server are below.
Please give me any indication what to change - or is that normal behavior? Can hardly be.

nepdev


Server conf:

port 1194
proto udp
dev tun

ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key # file to be kept secret

dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem

server 10.75.75.0 255.255.255.0

ifconfig-pool-persist ipp.txt
keepalive 10 120

comp-lzo
persist-key

persist-tun
status openvpn-status.log
verb 6

clientconfiguration file:



client

dev tun
proto udp

remote x.y.z.d 1194
resolv-retry infinite

nobind

persist-key
persist-tun

ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/fab.crt
key /etc/openvpn/easy-rsa/2.0/keys/fab.key

comp-lzo

verb 4

Re: OpenVPN connects / disconnects every 120 sec

Posted: Wed Jan 27, 2010 11:29 am
by krzee
I have had this happen to me when accidentally connecting twice at the same time with the same certs, each knocks the other off. Otherwise it could be your firewall

Re: OpenVPN connects / disconnects every 120 sec

Posted: Wed Jan 27, 2010 4:41 pm
by Douglas
krzee wrote:I have had this happen to me when accidentally connecting twice at the same time with the same certs, each knocks the other off. Otherwise it could be your firewall
Please show me any/all firewall rules and the logfiles.