Почему нет соединения в OpenVPN?

На ноуте стоит VirtualBox. Через него поднята виртуальная машина с Ubuntu. На Ubuntu стоит OpenVPN сервер. На ноуте Win7 и клиент OpenVPN.
Конфиг сервера:
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 
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

При попытке соединения выдает:
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)

Что не так?
  • Вопрос задан
  • 5655 просмотров
Пригласить эксперта
Ответы на вопрос 2
@eisaev
Начнем с простого: у вас в конфигах указаны разные типы интерфейсов - tun и tap. Приведите к единому виду в зависимости от технических потребностей.
Ответ написан
@DrSchaufel Автор вопроса
то же самое
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
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы