Попробовал подключить клиента..
получил такое:
В файле ClientVPN1.log (на клиенте):
'route' is not recognized as an internal or external command,
operable program or batch file.
В файле openvpn.log (на клиенте):
Tue Sep 06 18:10:36 2005 OpenVPN 2.0.2 Win32-MinGW [SSL] [LZO] built on Aug 25 2005
Tue Sep 06 18:10:36 2005 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Tue Sep 06 18:10:36 2005 Control Channel Authentication: using 'C:\OpenVPN\ssl\ta.key' as a OpenVPN static key file
Tue Sep 06 18:10:36 2005 LZO compression initialized
Tue Sep 06 18:10:36 2005 Attempting to establish TCP connection with 192.168.0.101:8888
Tue Sep 06 18:10:36 2005 TCP connection established with 192.168.0.101:8888
Tue Sep 06 18:10:36 2005 TCPv4_CLIENT link local: [undef]
Tue Sep 06 18:10:36 2005 TCPv4_CLIENT link remote: 192.168.0.101:8888
Tue Sep 06 18:10:37 2005 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1576', remote='link-mtu 1544'
Tue Sep 06 18:10:37 2005 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Tue Sep 06 18:10:37 2005 [ServerVPN] Peer Connection Initiated with 192.168.0.101:8888
Tue Sep 06 18:10:38 2005 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{A0981F51-DCCC-4555-89E9-1E1D102499C9}.tap
Tue Sep 06 18:10:38 2005 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.10.0.10/255.255.255.252 on interface {A0981F51-DCCC-4555-89E9-1E1D102499C9} [DHCP-serv: 10.10.0.9, lease-time: 31536000]
Tue Sep 06 18:10:38 2005 Successful ARP Flush on interface [65540] {A0981F51-DCCC-4555-89E9-1E1D102499C9}
Tue Sep 06 18:10:41 2005 ERROR: Windows route add command failed: system() returned error code 1
Tue Sep 06 18:10:41 2005 Initialization Sequence Completed
Tue Sep 06 18:10:49 2005 Connection reset, restarting [-1]
Tue Sep 06 18:10:49 2005 SIGUSR1[soft,connection-reset] received, process restarting
В файле openvpn.log (на сервере):
Tue Sep 06 18:16:03 2005 OpenVPN 2.0.2 Win32-MinGW [SSL] [LZO] built on Aug 25 2005
Tue Sep 06 18:16:04 2005 Diffie-Hellman initialized with 1024 bit key
Tue Sep 06 18:16:04 2005 Control Channel Authentication: using 'C:\OpenVPN\ssl\ta.key' as a OpenVPN static key file
Tue Sep 06 18:16:04 2005 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 06 18:16:04 2005 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 06 18:16:04 2005 TLS-Auth MTU parms [ L:1544 D:168 EF:68 EB:0 ET:0 EL:0 ]
Tue Sep 06 18:16:04 2005 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{E41CE5C3-043F-4B6F-B425-E7DDFB529248}.tap
Tue Sep 06 18:16:04 2005 TAP-Win32 Driver Version 8.1
Tue Sep 06 18:16:04 2005 TAP-Win32 MTU=1500
Tue Sep 06 18:16:04 2005 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.10.0.1/255.255.255.252 on interface {E41CE5C3-043F-4B6F-B425-E7DDFB529248} [DHCP-serv: 10.10.0.2, lease-time: 31536000]
Tue Sep 06 18:16:04 2005 Sleeping for 10 seconds...
Tue Sep 06 18:16:14 2005 Successful ARP Flush on interface [3] {E41CE5C3-043F-4B6F-B425-E7DDFB529248}
Tue Sep 06 18:16:14 2005 route ADD 192.168.0.0 MASK 255.255.255.0 10.10.0.2
Tue Sep 06 18:16:14 2005 route ADD 10.10.0.0 MASK 255.255.255.0 10.10.0.2
Tue Sep 06 18:16:14 2005 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep 06 18:16:14 2005 Listening for incoming TCP connection on [undef]:8888
Tue Sep 06 18:16:14 2005 TCPv4_SERVER link local (bound): [undef]:8888
Tue Sep 06 18:16:14 2005 TCPv4_SERVER link remote: [undef]
Tue Sep 06 18:16:14 2005 MULTI: multi_init called, r=256 v=256
Tue Sep 06 18:16:14 2005 IFCONFIG POOL: base=10.10.0.4 size=62
Tue Sep 06 18:16:14 2005 IFCONFIG POOL LIST
Tue Sep 06 18:16:14 2005 client1,10.10.0.4
Tue Sep 06 18:16:14 2005 ClientVPN1,10.10.0.8
Tue Sep 06 18:16:14 2005 MULTI: TCP INIT maxclients=60 maxevents=64
Tue Sep 06 18:16:14 2005 Initialization Sequence Completed
Tue Sep 06 18:16:16 2005 MULTI: multi_create_instance called
Tue Sep 06 18:16:16 2005 Re-using SSL/TLS context
Tue Sep 06 18:16:16 2005 LZO compression initialized
Tue Sep 06 18:16:16 2005 Control Channel MTU parms [ L:1544 D:168 EF:68 EB:0 ET:0 EL:0 ]
Tue Sep 06 18:16:16 2005 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep 06 18:16:16 2005 Local Options hash (VER=V4): 'bd577cd1'
Tue Sep 06 18:16:16 2005 Expected Remote Options hash (VER=V4): 'ee93268d'
Tue Sep 06 18:16:16 2005 TCP connection established with 192.168.9.43:1916
Tue Sep 06 18:16:16 2005 TCPv4_SERVER link local: [undef]
Tue Sep 06 18:16:16 2005 TCPv4_SERVER link remote: 192.168.9.43:1916
Tue Sep 06 18:16:16 2005 192.168.9.43:1916 Connection reset, restarting [0]
Tue Sep 06 18:16:16 2005 192.168.9.43:1916 SIGUSR1[soft,connection-reset] received, client-instance restarting
Tue Sep 06 18:16:16 2005 TCP/UDP: Closing socket
Tue Sep 06 18:16:20 2005 MULTI: multi_create_instance called
Tue Sep 06 18:16:20 2005 Re-using SSL/TLS context
Tue Sep 06 18:16:20 2005 LZO compression initialized
и так далее по кругу....
Вот конфиги мои, посмотрите, может, где напортачил
Сервер:
Код
dev tun
dev-node "OpenVPN"
proto tcp-server
port 8888
tls-server
server 10.10.0.0 255.255.255.0
comp-lzo
route-method exe
route 192.168.0.0 255.255.255.0 10.10.0.2
client-to-client
client-config-dir C:\\OpenVPN\\config\\ccd
ifconfig-pool-persist C:\\OpenVPN\\config\\ccd\\ipp.txt
dh C:\\OpenVPN\\ssl\\dh1024.pem
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\\ssl\\ServerVPN.crt
key C:\\OpenVPN\\ssl\\ServerVPN.key
persist-tun
persist-key
tls-auth C:\\OpenVPN\\ssl\\ta.key 0
keepalive 10 120
status C:\\OpenVPN\\log\\openvpn-status.log
log C:\\OpenVPN\\log\\openvpn.log
verb 3
Клиент:
Код
dev tun
dev-node "OpenVPN"
proto tcp-client
remote 192.168.0.101 8888
route-method exe
client
tls-client
ns-cert-type server
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\\ssl\\ClientVPN1.crt
key C:\\OpenVPN\\ssl\\ClientVPN1.key
tls-auth C:\\OpenVPN\\ssl\\ta.key 1
comp-lzo
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
status C:\\OpenVPN\\log\\openvpn-status.log
log C:\\OpenVPN\\log\\openvpn.log
Верисия 2.0.2 с GUI (openvpn-2.0.2-gui-1.0.3-install.exe)
ОС сервера - вин2003сп1, клиента - винХРсп2