D
D
DrSchaufel2013-11-21 20:56:29
openvpn
DrSchaufel, 2013-11-21 20:56:29

Why is there no connection in OpenVPN?

The laptop is running VirtualBox. Through it, a virtual machine with Ubuntu is raised. Ubuntu has an OpenVPN server. Win7 laptop and OpenVPN client.
Server config:

port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
#адрес и маска виртуальной сети
server 10.8.0.0 255.255.255.0
client-config-dir ccd
route 192.168.78.0 255.255.255.0
tls-server
tls-auth keys/ta.key 0
tls-timeout 120
auth MD5
cipher BF-CBC
client-to-client
keepalive 10 120
comp-lzo
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
verb 3
mute 20
crl-verify /etc/openvpn/crl.pem
client-config-dir /etc/openvpn/ccd

Client config:
client 
dev tap
# dev-node "OpenVPN"  
proto udp  
remote 192.168.78.22 1194  
route-delay 3  
resolv-retry infinite
tls-client  
ns-cert-type server  
ca "C:\\Program Files\\OpenVPN\\keys\\ca.crt"  
cert "C:\\Program Files\\OpenVPN\\keys\\Win7.crt"  
key "C:\\Program Files\\OpenVPN\\keys\\Win7.key"  
tls-auth "C:\\Program Files\\OpenVPN\\keys\\ta.key" 1  
auth MD5
cipher BF-CBC
ns-cert-type server
comp-lzo  
persist-key
persist-tun
tun-mtu 1500  
tun-mtu-extra 32  
mssfix 1450  
ping-restart 60  
ping 10  
nobind
status "C:\\Program Files\\OpenVPN\\log\\openvpn-status.log"  
log "C:\\Program Files\\OpenVPN\\log\\openvpn.log"  
verb 3
mute 20

When trying to connect it gives:
Thu Nov 21 18:15:05 2013 Warning: cannot open --log file: C:\Program Files\OpenVPN\log\openvpn.log: (errno=32)
Thu Nov 21 18:15:05 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Thu Nov 21 18:15:05 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Nov 21 18:15:05 2013 Need hold release from management interface, waiting...
Thu Nov 21 18:15:05 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Nov 21 18:15:05 2013 MANAGEMENT: CMD 'state on'
Thu Nov 21 18:15:05 2013 MANAGEMENT: CMD 'log all on'
Thu Nov 21 18:15:05 2013 MANAGEMENT: CMD 'hold off'
Thu Nov 21 18:15:05 2013 MANAGEMENT: CMD 'hold release'
Thu Nov 21 18:15:06 2013 Control Channel Authentication: using 'C:\Program Files\OpenVPN\keys\ta.key' as a OpenVPN static key file
Thu Nov 21 18:15:06 2013 Outgoing Control Channel Authentication: Using 128 bit message hash 'MD5' for HMAC authentication
Thu Nov 21 18:15:06 2013 Incoming Control Channel Authentication: Using 128 bit message hash 'MD5' for HMAC authentication
Thu Nov 21 18:15:06 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Nov 21 18:15:06 2013 UDPv4 link local: [undef]
Thu Nov 21 18:15:06 2013 UDPv4 link remote: [AF_INET]192.168.78.22:1194
Thu Nov 21 18:15:06 2013 MANAGEMENT: >STATE:1385043306,WAIT,,,
Thu Nov 21 18:16:06 2013 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu Nov 21 18:16:06 2013 SIGUSR1[soft,ping-restart] received, process restarting
Thu Nov 21 18:16:06 2013 MANAGEMENT: >STATE:1385043366,RECONNECTING,ping-restart,,
Thu Nov 21 18:16:06 2013 Restart pause, 2 second(s)

What's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eisaev, 2013-11-21
@eisaev

Let's start with a simple one: you have different types of interfaces in your configs - tun and tap. Bring to a single view depending on the technical needs.

D
DrSchaufel, 2013-11-21
@DrSchaufel

the same

Thu Nov 21 22:11:33 2013 Warning: cannot open --log file: C:\Program Files\OpenV
PN\log\openvpn.log: Îòêàçàíî â äîñòóïå.   (errno=5)
Thu Nov 21 22:11:33 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO]
[PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Thu Nov 21 22:11:33 2013 Note: cannot open C:\Program Files\OpenVPN\log\openvpn-
status.log for WRITE
Thu Nov 21 22:11:33 2013 Control Channel Authentication: using 'C:\Program Files
\OpenVPN\keys\ta.key' as a OpenVPN static key file
Thu Nov 21 22:11:33 2013 Outgoing Control Channel Authentication: Using 128 bit
message hash 'MD5' for HMAC authentication
Thu Nov 21 22:11:33 2013 Incoming Control Channel Authentication: Using 128 bit
message hash 'MD5' for HMAC authentication
Thu Nov 21 22:11:33 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Nov 21 22:11:33 2013 UDPv4 link local: [undef]
Thu Nov 21 22:11:33 2013 UDPv4 link remote: [AF_INET]192.168.78.22:1194
Thu Nov 21 22:12:33 2013 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu Nov 21 22:12:33 2013 SIGUSR1[soft,ping-restart] received, process restarting
Thu Nov 21 22:12:33 2013 Restart pause, 2 second(s)
Thu Nov 21 22:12:35 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Nov 21 22:12:35 2013 UDPv4 link local: [undef]
Thu Nov 21 22:12:35 2013 UDPv4 link remote: [AF_INET]192.168.78.22:1194
Thu Nov 21 22:13:35 2013 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu Nov 21 22:13:35 2013 SIGUSR1[soft,ping-restart] received, process restarting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question