Daily Disconnection Issue
Posted: Tue Nov 01, 2011 2:23 pm
Hi,
I currently have an issue on one of my openvpn servers where users are being kicked out at roughly the same time every day. I'm trying to analyse the issue, and not seeing anything obvious that is causing the problems.
There are around 100 clients simultaneously connected to the VPN. CPU Load is low. The server is one of 5 connected to the same switch, and is the only one affected. Server time is in sync with the client time reasonably well.
Any help would be much appreciated.
Server Conf
Client Conf
I've included a server log output of what is happening. [in reverse chronological order]
I currently have an issue on one of my openvpn servers where users are being kicked out at roughly the same time every day. I'm trying to analyse the issue, and not seeing anything obvious that is causing the problems.
There are around 100 clients simultaneously connected to the VPN. CPU Load is low. The server is one of 5 connected to the same switch, and is the only one affected. Server time is in sync with the client time reasonably well.
Any help would be much appreciated.
Server Conf
Code: Select all
daemon openvpnserver
writepid /var/run/openvpn.pid
#DAN prepare ZERINA for listening on blue and orange
dev tun
tun-mtu 1500
proto udp
port 1194
tls-server
ca /var/ipcop/ovpn/ca/cacert.pem
cert /var/ipcop/ovpn/certs/servercert.pem
key /var/ipcop/ovpn/certs/serverkey.pem
dh /var/ipcop/ovpn/ca/dh1024.pem
server 10.13.0.0 255.255.0.0
push "route 10.1.3.0 255.255.255.0"
keepalive 10 60
status-version 1
status /var/log/ovpnserver.log 30
cipher BF-CBC
comp-lzo
max-clients 200
client-config-dir /var/ipcop/ovpn/ccd
ccd-exclusive
fast-io
mtu-disc yes
mssfix 1300
tls-verify /var/ipcop/ovpn/verify
crl-verify /var/ipcop/ovpn/crls/cacrl.pem
user nobody
group nobody
persist-key
persist-tun
verb 3
Code: Select all
#OpenVPN Server conf
tls-client
client
dev tun
proto udp
tun-mtu 1500
mssfix 1300
remote IP 1194
pkcs12 mycert.p12
cipher BF-CBC
comp-lzo
verb 3
ns-cert-type server
I've included a server log output of what is happening. [in reverse chronological order]
Code: Select all
12:52:29 openvpnserver MYCERT/IP:PORT Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
12:52:29 openvpnserver MYCERT/IP:PORT Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
12:52:29 openvpnserver MYCERT/IP:PORT Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
12:52:29 openvpnserver MYCERT/IP:PORT Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
12:52:29 openvpnserver MYCERT/IP:PORT Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
12:52:29 openvpnserver MYCERT/IP:PORT VERIFY OK: depth=0, ...
12:52:29 openvpnserver MYCERT/IP:PORT CRL CHECK OK: ...
12:52:29 openvpnserver MYCERT/IP:PORT VERIFY SCRIPT OK: depth=0, ...
12:52:29 openvpnserver MYCERT/IP:PORT VERIFY OK: depth=1, ...
12:52:29 openvpnserver MYCERT/IP:PORT CRL CHECK OK: ...
12:52:29 openvpnserver MYCERT/IP:PORT VERIFY SCRIPT OK: depth=1, ...
... 2 minutes of repeating the messages below...
12:50:59 openvpnserver MYCERT/IP:PORT TLS Error: Unroutable control packet received from IP:PORT (si=3 op=P_ACK_V1)
12:50:57 openvpnserver MYCERT/IP:PORT TLS Error: Unroutable control packet received from IP:PORT (si=3 op=P_ACK_V1)
12:50:55 openvpnserver MYCERT/IP:PORT TLS: Initial packet from IP:PORT, sid=935383e5 98786ad3
12:50:54 openvpnserver MYCERT/IP:PORT TLS Error: TLS handshake failed
12:50:54 openvpnserver MYCERT/IP:PORT TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
12:50:54 openvpnserver MYCERT/IP:PORT TLS Error: TLS handshake failed
12:50:54 openvpnserver MYCERT/IP:PORT TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
12:50:54 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:51 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:46 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:43 openvpnserver MYCERT/IP:PORT TLS Error: Unroutable control packet received from IP:PORT (si=3 op=P_ACK_V1)
12:50:43 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:42 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:42 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:39 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:28 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS Error: Unroutable control packet received from IP:PORT (si=3 op=P_ACK_V1)
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:24 openvpnserver MYCERT/IP:PORT TLS Error: reading acknowledgement record from packet
12:50:23 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:50:21 openvpnserver MYCERT/IP:PORT TLS: Initial packet from IP:PORT, sid=a0951711 13be7aab
12:49:53 openvpnserver MYCERT/IP:PORT TLS: move_session: dest=TM_LAME_DUCK src=TM_ACTIVE reinit_src=1
12:49:53 openvpnserver MYCERT/IP:PORT TLS Error: TLS handshake failed
12:49:53 openvpnserver MYCERT/IP:PORT TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
12:49:53 openvpnserver MYCERT/IP:PORT TLS: new session incoming connection from IP:PORT
12:40:33 openvpnserver MYCERT/IP:PORT TLS: soft reset sec=-19 bytes=302668/0 pkts=2557/0