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
OpenVPN connects / disconnects every 120 sec
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Nov 20, 2009 6:04 pm
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: OpenVPN connects / disconnects every 120 sec
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
-
- Forum Team
- Posts: 285
- Joined: Wed Aug 27, 2008 2:41 am
Re: OpenVPN connects / disconnects every 120 sec
Please show me any/all firewall rules and the logfiles.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