作者xjxuvup (随性)
看板FreeBSD
标题[问题] openvpn可连线但是无法使用
时间Mon Apr 20 03:26:34 2009
如题,可以连线,但是无法使用。
openvpn.log里头的错误讯息我有google查过了。
但是讯息不够明确,能够找到的有用资料较少,
因此上来此版寻求各位先进的协助,
小弟是个FreeBSD新手,请各位先进多多提拔,thanks a lot.
/var/log/messages的错误讯息如下:
-----------------------------------------------------------------------------
/sbin/ifconfig tun0 192.168.0.1 192.168.0.2 mtu 1500 netmask 255.255.255.255 up
ERROR: FreeBSD route add command failed: shell command exited with error status: 1
-----------------------------------------------------------------------------
/usr/local/etc/openvpn/openvpn.conf的设定如下:
-----------------------------------------------------------------------------
#server子网路网段为192.168.0.0/24
local 140.xxx.xxx.xxx #vpn server IP 参考网路上文章
dev tun
port 1194
proto tcp
server 192.168.0.0 255.255.255.0 #参考网路上文章,不知道是否有错误?
ifconfig-pool-persist ipp.txt
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/dh1024.pem
push "route 140.131.151.0 255.255.255.0"#参考网路上文章,不知道是否有错?
comp-lzo
keepalive 10 100
ping-timer-rem
persist-tun
persist-key
user nobody
group nobody
daemon
push "redirect-gateway"
----------------------------------------------------------------------------
route的设定如下:
----------------------------------------------------------------------------
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 253-xxx-xxx-140-au UGS 0 1678 fxp0
localhost localhost UH 0 0 lo0
140.xxx.xxx.0 link#1 UC 0 0 fxp0
253-xxx-xxx-140-au 00:04:38:8e:ae:03 UHLW 2 0 fxp0 1162
192.168.0.0 link#1 UC 0 0 fxp0
192.168.0.2 192.168.0.1 UH 0 0 tun0
----------------------------------------------------------------------------
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.182.214