Код: Выделить всё
OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Outgoing Control Channel Authentication: Using 128 bit message hash 'MD5' for HMAC authentication
Incoming Control Channel Authentication: Using 128 bit message hash 'MD5' for HMAC authentication
LZO compression initialized
Control Channel MTU parms [ L:1572 D:164 EF:64 EB:0 ET:0 EL:0 ]
Data Channel MTU parms [ L:1572 D:1450 EF:40 EB:135 ET:32 EL:0 AF:3/1 ]
Local Options hash (VER=V4): '9e6a0b8d'
Expected Remote Options hash (VER=V4): 'e6045f71'
Attempting to establish TCP connection with vpn server ip:2000
TCP connection established with vpn server ip:2000
TCPv4_CLIENT link local: [undef]
TCPv4_CLIENT link remote: vpn server ip:2000
TLS: Initial packet from vpn server ip:2000, sid=bf7adfb0 fabe20fe
VERIFY OK: depth=1, /C=RU/ST=RU/L=MOSCOW/O=VPN/OU=home/CN=vpn-server/emailAddress=mail@yandex.ru
VERIFY OK: nsCertType=SERVER
VERIFY OK: depth=0, /C=RU/ST=RU/O=VPN/OU=home/CN=vpn-server/emailAddress=mail@yandex.ru
Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Data Channel Encrypt: Using 128 bit message hash 'MD5' for HMAC authentication
Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Data Channel Decrypt: Using 128 bit message hash 'MD5' for HMAC authentication
Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
[vpn-server] Peer Connection Initiated with vpn server ip:2000
SENT CONTROL [vpn-server]: 'PUSH_REQUEST' (status=1)
PUSH: Received control message: 'PUSH_REPLY,route 10.0.0.0 255.255.255.0,route-gateway 10.0.0.1,ping 10,ping-restart 120,ifconfig 10.0.0.2 255.255.255.0'
OPTIONS IMPORT: timers and/or timeouts modified
OPTIONS IMPORT: --ifconfig/up options modified
OPTIONS IMPORT: route options modified
TAP-WIN32 device [Подключение по локальной сети 5] opened: \\.\Global\{020A76BC-02F7-4A01-8593-EB2B6412E736}.tap
TAP-Win32 Driver Version 8.4
TAP-Win32 MTU=1500
Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.0.0.2/255.255.255.0 on interface {020A76BC-02F7-4A01-8593-EB2B6412E736} [DHCP-serv: 10.0.0.0, lease-time: 31536000]
Successful ARP Flush on interface [29] {020A76BC-02F7-4A01-8593-EB2B6412E736}
TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
route ADD 10.0.0.0 MASK 255.255.255.0 10.0.0.1
ROUTE: route addition failed using CreateIpForwardEntry: Неверны один или несколько аргументов. [if_index=29]
Route addition via IPAPI failed
Initialization Sequence Completed
Код: Выделить всё
ROUTE: route addition failed using CreateIpForwardEntry: Неверны один или несколько аргументов. [if_index=29]
Вот настройки сервера openvpn.conf
Код: Выделить всё
port 2000
proto tcp
dev tap0
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/server.crt
key /usr/local/etc/openvpn/keys/server.key
dh /usr/local/etc/openvpn/keys/dh2048.pem
server 10.0.0.0 255.255.255.0
push "route 10.0.0.0 255.255.255.0"
client-config-dir ccd
tls-server
tls-auth keys/ta.key 0
tls-timeout 120
auth MD5
cipher BF-CBC
keepalive 10 120
comp-lzo
max-clients 100
user nobody
group nobody
persist-key
persist-tap
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn.log
verb 3
Код: Выделить всё
push "route 192.168.0.1 255.255.255.0"