Hi there, sorry for the delay, I was away for a while, but I'm back.
I've re-configured the whole VPN and strarted over let me show you the configs:
Server:
Code: Select all
#####################################################
# OpenVPN Server Configuration
#####################################################
#local <LOCALIP>
port 1194
proto udp
dev tun
# Openvpn 2.1 and above: script-security 3 system
ca /etc/openvpn/CuraShare/ca.crt
cert /etc/openvpn/CuraShare/CuraShare.crt
key /etc/openvpn/CuraShare/CuraShare.key
dh /etc/openvpn/CuraShare/dh-CuraShare.pem
topology subnet
server 10.8.0.0 255.255.255.0
;client-to-client
up "/etc/openvpn/**********"
down "/etc/openvpn/*********"
down-pre
ifconfig-pool-persist /etc/openvpn/CuraShare/ipp.txt
;ifconfig-pool-linear
# Ping every 10 seconds, assume remote is down afte 120 seconds
keepalive 10 120
tls-server
tls-auth /etc/openvpn/CuraShare/ta.key 0
cipher AES-128-CBC
;comp-lzo
max-clients 300
user root
group root
persist-key
persist-tun
status-version 2
status /etc/openvpn/logs/openvpn-CuraShare-status.log
log /etc/openvpn/logs/openvpn-CuraShare.log
crl-verify /etc/openvpn/CuraShare/crl.pem
verb 3
mute 20
push "redirect-gateway def1"
Client: (Nothing special)
Code: Select all
client
dev tun
route-delay 10
# Openvpn 2.1 and above: script-security 3 system
#cd /etc/openvpn
#up "/etc/openvpn/up.sh"
#down-pre
#down "/etc/openvpn/down.sh"
proto udp
remote ***** 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca CuraShare-****/ca.crt
cert CuraShare-****/CuraShare-****.crt
key CuraShare-****/CuraShare-****.key
ns-cert-type server
tls-client
tls-auth CuraShare-***/ta.key 1
cipher AES-128-CBC
;comp-lzo
verb 3
mute 20
I've censored some things, so don't mind the ***
When the client connects I get a full connection, I can ping the server (10.8.0.1) and I can use the server as gateway (browse the internet over the VPN) because I configured the server to do so with iptables.
But after a while the clients echo's a message saying it's renewing it's LTS-encryption:
Code: Select all
Tue Aug 9 11:06:07 2011 Initialization Sequence Completed
Tue Aug 9 11:06:36 2011 Replay-window backtrack occurred [2]
Tue Aug 9 11:06:38 2011 Replay-window backtrack occurred [3]
Tue Aug 9 11:08:20 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
Tue Aug 9 11:08:20 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
Tue Aug 9 11:08:20 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
Tue Aug 9 11:08:20 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
Tue Aug 9 11:08:20 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
Tue Aug 9 11:08:22 2011 TLS: new session incoming connection from [AF_INET]184.22.62.14:1194
And this is what the server log said:
Code: Select all
Tue Aug 9 11:05:56 2011 CuraShare-****/190.112.***.***:34811 SENT CONTROL [CuraShare-****]: 'PUSH_REPLY,redirect-gateway def1,route-gateway 10.8.0.1,topology subnet,ifconfig 10.8.0.4 255.255.255.0' (status=1)
Tue Aug 9 11:06:35 2011 CuraShare-****/190.112.***.***:34811 Replay-window backtrack occurred [2]
Tue Aug 9 11:08:00 2011 CuraShare-****/190.112.***.***:34811 Replay-window backtrack occurred [3]
Tue Aug 9 11:13:18 2011 CuraShare-****/190.112.***.***:34811 TLS: soft reset sec=-144 bytes=5641915/0 pkts=7558/0
Tue Aug 9 11:13:18 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:18 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:18 2011 CuraShare-****/190.112.***.***:34811 TLS: move_session: dest=TM_LAME_DUCK src=TM_ACTIVE reinit_src=1
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS: Initial packet from [AF_INET]190.112.***.***:34811, sid=431b30b1 fe0367e9
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: reading acknowledgement record from packet
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: Unroutable control packet received from [AF_INET]190.112.***.***:34811 (si=3 op=P_ACK_V1)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: Unroutable control packet received from [AF_INET]190.112.***.***:34811 (si=3 op=P_ACK_V1)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS: tls_multi_process: killed expiring key
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:19 2011 CuraShare-****/190.112.***.***:34811 SIGUSR1[soft,tls-error] received, client-instance restarting
Tue Aug 9 11:13:21 2011 MULTI: multi_create_instance called
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 Re-using SSL/TLS context
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 Control Channel MTU parms [ L:1557 D:166 EF:66 EB:0 ET:0 EL:0 ]
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 Data Channel MTU parms [ L:1557 D:1450 EF:57 EB:4 ET:0 EL:0 ]
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 Local Options hash (VER=V4): '2f3e190a'
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 Expected Remote Options hash (VER=V4): '0f816d6e'
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 TLS: Initial packet from [AF_INET]190.112.***.***:34811, sid=431b30b1 fe0367e9
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 TLS Error: TLS handshake failed
Tue Aug 9 11:13:21 2011 190.112.***.***:34811 SIGUSR1[soft,tls-error] received, client-instance restarting
The server and client are both in the same time zone, and differ about ~2.5 minutes in time.
Any clue why this is happening?