Hi
I am having some strange issues with some openvpn clients that connect back to my openvpn server.
Everything has been working and there was no issues until i did a restart on the openvpn server. Some of the clients reconnected after a short time peroid (10 of them) but the others (around 15) still have not connected. The clients that reconnected are working perfectly. I have tried to do another restart after a few hours but this did not fix my issue. It looks like the same clients reconnected.
All the clients are out on external machines so i cant see the log files or what is happening but when i got one of the non connecting clients to do the client service restarted physically on one of the client machines it manage to connect back in with no issues.I had a look for a log file but it dose not go back far enough to catch where it lost connection with the server.
I have posted below my server config and client config but the issues i have is that some of the other clients are in remote locations where i cant get them to do a physical openvpn restart on the box. I was wondering if anyone had any ideas on why this would be happening? I need to be able to restart the server and have the clients reconnecting automatically
I dont have any logs on the server side that i can find and i cant add in a log file in the server config file as i dont want to restart the process as i think i may loose the clients that were physically restarted.
The server is runing on a ubuntu box with openvpn-2.1.0-1ubuntu1.1 i386
The clients are running centos 6.x with openvpn-2.3.2-2.el6.i686
The client config file:
# Are we the client or the server?
client
# Path to log file
status openvpn-status.log
# Use the same setting as you are using on the server.
dev tun
# Are we connecting to a TCP or UDP server?
proto udp
# The hostname/IP and port of the server.
remote xx.xx.xx.xx 1194
# Keep trying indefinitely to resolve the host name of the OpenVPN server.
resolv-retry infinite
# Most clients don't need to bind to a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
user nobody
group nogroup
# Try to preserve some state across restarts.
persist-key
persist-tun
# SSL/TLS parms.
ca /etc/openvpn/druid_titan_keys/ca.crt
cert /etc/openvpn/druid_titan_keys/umc2.crt # Insert your client
key /etc/openvpn/druid_titan_keys/umc2.key # key name here
# Enable compression on the VPN link.
comp-lzo
# Set log file verbosity.
verb 4
The server config file:
port 1194
proto udp
dev tun
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/server.crt
key /etc/openvpn/server/server.key # This file should be kept secret
dh /etc/openvpn/server/dh1024.pem
server 10.8.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
route 169.254.0.0 255.255.0.0 10.8.1.1
route 10.31.2.1 255.255.255.255
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append /var/log/openvpn.log
verb 3