Доброе время суток!
* Очень простой вопрос по настройке OpenVPN *
Следуя ману (на русском) уставноил OpenVPN (из портов, всё как положено), сгенерировал ключи, сделал конфиг и запустил. Не работает
В логе прочитал:
Код:
Tue Jun 24 16:31:48 2008 us=900853 TUN/TAP device /dev/tun0 opened
Tue Jun 24 16:31:48 2008 us=900972 /sbin/ifconfig tun0 10.20.30.1 10.20.30.2 mtu 1500 netmask 255.255.255.255 up
Tue Jun 24 16:31:48 2008 us=912682 /sbin/route add -net 10.20.30.0 10.20.30.2 255.255.255.0
add net 10.20.30.0: gateway 10.20.30.2
Tue Jun 24 16:31:48 2008 us=922990 /sbin/route add -net 10.20.30.0 10.20.30.2 255.255.255.0
route: writing to routing socket: File exists
add net 10.20.30.0: gateway 10.20.30.2: route already in table
Tue Jun 24 16:31:48 2008 us=933373 ERROR: FreeBSD route add command failed: shell command exited with error status: 1
Tue Jun 24 16:31:48 2008 us=933537 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Jun 24 16:31:48 2008 us=935934 GID set to nobody
Tue Jun 24 16:31:48 2008 us=936056 UID set to nobody
Tue Jun 24 16:31:48 2008 us=936100 Listening for incoming TCP connection on [undef]:1194
Tue Jun 24 16:31:48 2008 us=936221 Socket Buffers: R=[65536->65536] S=[32768->65536]
Tue Jun 24 16:31:48 2008 us=936286 TCPv4_SERVER link local (bound): [undef]:1194
Tue Jun 24 16:31:48 2008 us=936313 TCPv4_SERVER link remote: [undef]
Tue Jun 24 16:31:48 2008 us=936358 MULTI: multi_init called, r=256 v=256
Tue Jun 24 16:31:48 2008 us=936463 IFCONFIG POOL: base=10.20.30.4 size=62
Tue Jun 24 16:31:48 2008 us=936583 IFCONFIG POOL LIST
Tue Jun 24 16:31:48 2008 us=936620 MULTI: TCP INIT maxclients=10 maxevents=14
Tue Jun 24 16:31:48 2008 us=936670 Initialization Sequence Completed
Tue Jun 24 16:32:27 2008 us=279875 TCP/UDP: Closing socket
Tue Jun 24 16:32:27 2008 us=280074 /sbin/route delete -net 10.20.30.0 10.20.30.2 255.255.255.0
route: must be root to alter routing table
Tue Jun 24 16:32:27 2008 us=290555 ERROR: FreeBSD route delete command failed: shell command exited with error status: 77
* Очень простой вопрос по настройке OpenVPN *
Следуя ману (на русском) уставноил OpenVPN (из портов, всё как положено), сгенерировал ключи, сделал конфиг и запустил. Не работает
В логе прочитал:
Код:
Tue Jun 24 16:31:48 2008 us=900853 TUN/TAP device /dev/tun0 opened
Tue Jun 24 16:31:48 2008 us=900972 /sbin/ifconfig tun0 10.20.30.1 10.20.30.2 mtu 1500 netmask 255.255.255.255 up
Tue Jun 24 16:31:48 2008 us=912682 /sbin/route add -net 10.20.30.0 10.20.30.2 255.255.255.0
add net 10.20.30.0: gateway 10.20.30.2
Tue Jun 24 16:31:48 2008 us=922990 /sbin/route add -net 10.20.30.0 10.20.30.2 255.255.255.0
route: writing to routing socket: File exists
add net 10.20.30.0: gateway 10.20.30.2: route already in table
Tue Jun 24 16:31:48 2008 us=933373 ERROR: FreeBSD route add command failed: shell command exited with error status: 1
Tue Jun 24 16:31:48 2008 us=933537 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Jun 24 16:31:48 2008 us=935934 GID set to nobody
Tue Jun 24 16:31:48 2008 us=936056 UID set to nobody
Tue Jun 24 16:31:48 2008 us=936100 Listening for incoming TCP connection on [undef]:1194
Tue Jun 24 16:31:48 2008 us=936221 Socket Buffers: R=[65536->65536] S=[32768->65536]
Tue Jun 24 16:31:48 2008 us=936286 TCPv4_SERVER link local (bound): [undef]:1194
Tue Jun 24 16:31:48 2008 us=936313 TCPv4_SERVER link remote: [undef]
Tue Jun 24 16:31:48 2008 us=936358 MULTI: multi_init called, r=256 v=256
Tue Jun 24 16:31:48 2008 us=936463 IFCONFIG POOL: base=10.20.30.4 size=62
Tue Jun 24 16:31:48 2008 us=936583 IFCONFIG POOL LIST
Tue Jun 24 16:31:48 2008 us=936620 MULTI: TCP INIT maxclients=10 maxevents=14
Tue Jun 24 16:31:48 2008 us=936670 Initialization Sequence Completed
Tue Jun 24 16:32:27 2008 us=279875 TCP/UDP: Closing socket
Tue Jun 24 16:32:27 2008 us=280074 /sbin/route delete -net 10.20.30.0 10.20.30.2 255.255.255.0
route: must be root to alter routing table
Tue Jun 24 16:32:27 2008 us=290555 ERROR: FreeBSD route delete command failed: shell command exited with error status: 77