openvpn可連線但是無法使用 - BBS
By Bennie
at 2009-04-20T03:26
at 2009-04-20T03:26
Table of Contents
如題,可以連線,但是無法使用。
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
----------------------------------------------------------------------------
--
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
----------------------------------------------------------------------------
--
Tags:
BBS
All Comments
Related Posts
奇怪的訊息...
By Una
at 2009-04-17T12:26
at 2009-04-17T12:26
gcc295
By Edith
at 2009-04-16T18:24
at 2009-04-16T18:24
gcc295
By Charlotte
at 2009-04-16T17:17
at 2009-04-16T17:17
想請教如何取代遠端使用者的畫面
By Belly
at 2009-04-16T10:15
at 2009-04-16T10:15
mail/p5-Mail-ClamAV broken
By Jake
at 2009-04-15T18:15
at 2009-04-15T18:15