Hi everyone.
I have an Ubuntu server, and I'm trying to fix a problem with a Windows 8.1 (x64) client.
Let's start with the config files.
Client
client
dev tun
proto udp
remote (host ip) (host port)
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
verb 3
route-delay 30
Server
port (server port)
proto udp
dev tun
ca ca.crt
cert repserver.crt
key repserver.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
The problem is one of the clients sometimes shows this error in the log:
......
Tue Jul 01 11:30:29 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Jul 01 11:30:29 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Jul 01 11:30:29 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Jul 01 11:30:29 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Jul 01 11:30:31 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Tue Jul 01 11:31:38 2014 read from TUN/TAP : read from TUN/TAP : The I/O operation has been aborted because of either a thread exit or an application request. (code=995)
Tue Jul 01 11:31:38 2014 TUN/TAP interface has been stopped, exiting
Tue Jul 01 11:31:38 2014 C:\windows\system32\route.exe DELETE 10.8.0.1 MASK 255.255.255.255 10.8.0.9
Tue Jul 01 11:31:38 2014 Warning: route gateway is not reachable on any active network adapters: 10.8.0.9
Tue Jul 01 11:31:38 2014 Route deletion via IPAPI failed [adaptive]
Tue Jul 01 11:31:38 2014 Route deletion fallback to route.exe
Tue Jul 01 11:31:38 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Tue Jul 01 11:31:49 2014 Closing TUN/TAP interface
Tue Jul 01 11:31:49 2014 SIGTERM[soft,tun-stop] received, process exiting
It only happens sometimes. Sometimes I can just connect without any problem.
What could be the cause of this problem? Already tried adding (as shown above) route-delay, but the problem persists.