Originally Posted by
staticroute
Из конфига дебиана уберите:
Code:
auth none
redirect-gateway
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
и сделайте на дебиане
Code:
chmod 0600 /etc/openvpn/keys/server.key
лог debian-клиента тоже покажите.
Спасибо за ответ! Сделал. Соединение продержалось дольше обычного, даже удалось зайти на шару дебиан-сервера. Потом опять разрыв. В логах сервета все тоже самое, а логи клиента сейчас сниму.
Лог дебиан-клиента:
PHP Code:
Fri Oct 19 13:35:54 2012 OpenVPN 2.2.1 i486-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 23 2012
Fri Oct 19 13:35:54 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Oct 19 13:35:54 2012 ******* WARNING *******: null MAC specified, no authentication will be used
Fri Oct 19 13:35:54 2012 LZO compression initialized
Fri Oct 19 13:35:54 2012 Attempting to establish TCP connection with [AF_INET] :80 [nonblock]
Fri Oct 19 13:35:55 2012 TCP connection established with [AF_INET] :80
Fri Oct 19 13:35:55 2012 TCPv4_CLIENT link local: [undef]
Fri Oct 19 13:35:55 2012 TCPv4_CLIENT link remote: [AF_INET] :80
Fri Oct 19 13:35:59 2012 [server] Peer Connection Initiated with [AF_INET] :80
Fri Oct 19 13:36:01 2012 TUN/TAP device tap0 opened
Fri Oct 19 13:36:01 2012 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Oct 19 13:36:01 2012 /sbin/ifconfig tap0 192.168.1.202 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255
Fri Oct 19 13:36:01 2012 Initialization Sequence Completed
Fri Oct 19 13:38:05 2012 Connection reset, restarting [0]
Fri Oct 19 13:38:05 2012 SIGUSR1[soft,connection-reset] received, process restarting
Fri Oct 19 13:38:10 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Oct 19 13:38:10 2012 Re-using SSL/TLS context
Fri Oct 19 13:38:10 2012 LZO compression initialized
Fri Oct 19 13:38:10 2012 Attempting to establish TCP connection with [AF_INET]:80 [nonblock]
Fri Oct 19 13:38:11 2012 TCP connection established with [AF_INET] :80
Fri Oct 19 13:38:11 2012 TCPv4_CLIENT link local: [undef]
Fri Oct 19 13:38:11 2012 TCPv4_CLIENT link remote: [AF_INET] :80
Fri Oct 19 13:38:14 2012 [server] Peer Connection Initiated with [AF_INET] :80
Fri Oct 19 13:38:16 2012 Preserving previous TUN/TAP instance: tap0
Fri Oct 19 13:38:16 2012 Initialization Sequence Completed
Fri Oct 19 13:45:07 2012 event_wait : Interrupted system call (code=4)
Fri Oct 19 13:45:07 2012 /sbin/ifconfig tap0 0.0.0.0
Fri Oct 19 13:45:08 2012 SIGTERM[hard,] received, process exiting
В конце - это я остановил сервис OVPN.