幾年前在 bsd 上安裝了 poptop 以 pptp 的方式提供給 windows 做 vpn 遠端登入
今天這幾器壞了
因為版本更新的關係
安裝的版本 pptpd v1.3.4
參考了
http://blog.xuite.net/efchang/network/6530882http://www.pingle.org/2006/04/11/getting-poptop-to-run-under-freebsd-5-6http://www.weithenn.idv.tw/cgi-bin/wiki.pl/Poptop-%E5%BB%BA%E7%AB%8BPPTP%E7%9A%84VPN%E9%80%A3%E7%B7%9A寫的很簡單
卻一直沒辦法正常連線
拜託大家幫我看看問題出在哪裡好嗎
謝謝大家
/usr/local/etc/pptpd.conf
option /etc/ppp/ppp.conf
localip 主機對外IP
remoteip 192.168.0.1-100
pidfile /var/run/pptpd.pid
nobsdcomp
proxyarp
+chapms-v2
mppe-40
mppe-128
mppe-stateless
noipparam
/etc/ppp/ppp.conf
pptp:
set timeout 0
set log phase chat connect lcp ipcp
set dial
set login
enable mssfixup
set ifaddr 主機對外IP 192.168.0.1-192.168.0.100 255.255.255.0
set server /tmp/loop "" 0177
enable chap
enable mschapv2
disable pap
#enable proxy
accept dns
set dns 168.95.1.1 168.95.192.1
#set nbns 192.168.0.1
set device !/etc/ppp/secure
ppp.log
Aug 14 14:12:59 aros ppp[1128]: Warning: Label /etc/ppp/ppp.conf rejected -direct connection: Configuration label not found
debug.log
Aug 14 14:12:59 aros pptpd[1127]: CTRL: Client 118.168.21.97 control connection started
Aug 14 14:12:59 aros pptpd[1127]: CTRL: Starting call (launching pppd, opening GRE)
Aug 14 14:12:59 aros ppp[1128]: Warning: Label /etc/ppp/ppp.conf rejected -direct connection: Configuration label not found
Aug 14 14:12:59 aros pptpd[1127]: GRE: read(fd=7,buffer=804d560,len=8196) from PTY failed: status = 0 error = No error
Aug 14 14:12:59 aros kernel: Aug 14 14:12:59 aros pptpd[1127]: GRE: read(fd=7,buffer=804d560,len=8196) from PTY failed: status = 0 error = No error
Aug 14 14:12:59 aros pptpd[1127]: CTRL: PTY read or GRE write failed (pty,gre)=(7,6)
Aug 14 14:12:59 aros kernel: Aug 14 14:12:59 aros pptpd[1127]: CTRL: PTY read or GRE write failed (pty,gre)=(7,6)
Aug 14 14:12:59 aros pptpd[1127]: CTRL: Reaping child PPP[1128]
Aug 14 14:12:59 aros pptpd[1127]: CTRL: Reaping child PPP[1128]
Aug 14 14:12:59 aros pptpd[1127]: CTRL: Client 118.168.21.97 control connection finished