請教各位前輩, 有關於 VPN 的問題.
小弟想透過家裏的電腦(ADSL, 動態IP), 與公司建立 VPN 連線.
參考以下網址設定方式設定:
http://pptpclient.sourceforge.net/howto-debian.phtml
http://pptpclient.sourceforge.net/routi ... n-via-adsl
透過 ADSL 連上網路是 ppp0,
以下是用 pppd call xxxx 測試時的 log:
Connect: ppp0 <--> eth0
PAP authentication succeeded
peer from calling number xx:xx:xx:xx:xx:xx authorized
local IP address xxx.xxx.xxx.xxx
remote IP address xxx.xxx.xxx.xxx
DNS address xxx.xxx.xxx.xxx
secondary DNS address xxx.xxx.xxx.xxx
pppd 2.4.4 started by root, uid 0
Using interface ppp1
Connect: ppp1 <--> /dev/pts/3
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Exit.
以下是用 pon xxxx debug dump logfd 2 nodetach 測試時的 log:
using channel 27
Using interface ppp1
Connect: ppp1 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> ...<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> ...<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> ...<pcomp> <accomp>]
VPN 連線是用 ppp1, 但用 ifconfig 看不到 ppp1 (是否為正常現象?),
用 tcpdump 查看, ppp0 有收到 rcv 的訊息.
按照 http://pptpclient.sourceforge.net/routi ... n-via-adsl
要加 route add -net xxx.xxx.xxx.xxx netmask 255.0.0.0 dev ppp1
但我執行後卻回覆 "SIOCADDRT: 沒有此一裝置"
求助各位前輩們, 可否不吝指點?
感謝!!!