>Это не правильно.
>
>push "route 10.8.0.1"
>
>Вот такую строку надо добавить в конфиг сервера. добавил такую строку. предыдушую удалил.
теперь смотрим таблицу маршрутов в винде:
Network Destination Netmask Gateway Interface Metric
10.8.0.1 255.255.255.255 10.8.0.5 10.8.0.6 1
10.8.0.4 255.255.255.252 10.8.0.6 10.8.0.6 30
10.8.0.6 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.4 192.168.0.4 30
192.168.0.4 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.0.255 255.255.255.255 192.168.0.4 192.168.0.4 30
224.0.0.0 240.0.0.0 10.8.0.6 10.8.0.6 30
224.0.0.0 240.0.0.0 192.168.0.4 192.168.0.4 30
255.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 1
255.255.255.255 255.255.255.255 192.168.0.4 192.168.0.4 1
===========================================================================
нет маршрута по умолчанию, который со старыми настройками был.
вот логи от клиента:
Tue Mar 24 12:58:20 2009 [local] Peer Connection Initiated with 192.168.0.9:1194
Tue Mar 24 12:58:21 2009 SENT CONTROL [local]: 'PUSH_REQUEST' (status=1)
Tue Mar 24 12:58:21 2009 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1,dhcp-option DNS 10.8.0.1,route 10.8.0.1,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Tue Mar 24 12:58:21 2009 OPTIONS IMPORT: timers and/or timeouts modified
Tue Mar 24 12:58:21 2009 OPTIONS IMPORT: --ifconfig/up options modified
Tue Mar 24 12:58:21 2009 OPTIONS IMPORT: route options modified
Tue Mar 24 12:58:21 2009 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Tue Mar 24 12:58:21 2009 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{48E3CA6A-AF9C-4F72-BFC3-CA1B65C186B9}.tap
Tue Mar 24 12:58:21 2009 TAP-Win32 Driver Version 8.4
Tue Mar 24 12:58:21 2009 TAP-Win32 MTU=1500
Tue Mar 24 12:58:21 2009 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {48E3CA6A-AF9C-4F72-BFC3-CA1B65C186B9} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Tue Mar 24 12:58:21 2009 Successful ARP Flush on interface [3] {48E3CA6A-AF9C-4F72-BFC3-CA1B65C186B9}
Tue Mar 24 12:58:21 2009 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down
Tue Mar 24 12:58:21 2009 Route: Waiting for TUN/TAP interface to come up...
Tue Mar 24 12:58:22 2009 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down
Tue Mar 24 12:58:22 2009 Route: Waiting for TUN/TAP interface to come up...
Tue Mar 24 12:58:23 2009 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down
Tue Mar 24 12:58:23 2009 Route: Waiting for TUN/TAP interface to come up...
Tue Mar 24 12:58:24 2009 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Tue Mar 24 12:58:24 2009 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
Tue Mar 24 12:58:24 2009 route ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Tue Mar 24 12:58:24 2009 route ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Tue Mar 24 12:58:24 2009 Initialization Sequence Completed
вот ipp.txt
~]# cat /etc/openvpn/ipp.txt
local,10.8.0.4
а вот лог openvpn-status.log
~]# cat /etc/openvpn/openvpn-status.log
OpenVPN CLIENT LIST
Updated,Tue Mar 24 10:00:09 2009
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
local,192.168.0.4:1138,4266,4440,Tue Mar 24 09:58:39 2009
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
10.8.0.6,local,192.168.0.4:1138,Tue Mar 24 09:58:43 2009
GLOBAL STATS
Max bcast/mcast queue length,0
END