看板 FreeBSD 關於我們 聯絡資訊
如題,可以連線,但是無法使用。 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