歡迎您光臨本站 註冊首頁

pptp客戶端

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

pptp客戶端

在linux RH9使用pptp客戶端連接到windows下的vpn server,用pppd call pptp logfd 2 updetach
每次都顯示:
Using interface ppp0
Connect: ppp0 <--> /dev/ttyp0
Modem hangup
Connection terminated.

這個「Modem hangup」是怎麼回事啊?
謝謝!
《解決方案》

Need MSCHAP or MPPE,

try this command line :

pppd local lock noauth proxyarp name$PPTPCLIENTNAME remotename $PPTPSERVERNAME updetach refuse-eap refuse-chap refuse-mschap-v2 nobsdcomp nodeflate require-mppe pty "/usr/sbin/pptp $PPTPSERVERIP --nolaunchpppd "


don't forget  instead $value of yours
《解決方案》

Thanks for b2linux's help,I finally dailed in our VPN server successfully.
My errors :
# pptpsetup --create ipsec --server 192.168.0.166 --username scott --password tiger --encrypt --start
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
LCP terminated by peer (h!M^L^@<M-Mt^@^@^BM-3)
Connection terminated.
Modem hangup
And here is the log :
# !ta
tail -f /var/log/messages
Jan 25 09:12:14 Northwest pppd: LCP terminated by peer (h!M^L^@<M-Mt^@^@^BM-3)
Jan 25 09:12:14 Northwest pptp: anon log: Received Call Clear Request.
Jan 25 09:12:17 Northwest pppd: Connection terminated.
Jan 25 09:12:17 Northwest pppd: Modem hangup
Jan 25 09:12:17 Northwest pptp: anon warn: short read (-1): Input/output error
Jan 25 09:12:17 Northwest pptp: anon warn: pppd may have shutdown, see pppd log
Jan 25 09:12:17 Northwest pptp: anon log: Closing connection (unhandled)
Jan 25 09:12:17 Northwest pppd: Exit.
Jan 25 09:12:17 Northwest pptp: anon log: Sent control packet type is 12 'Call-Clear-Request'
Jan 25 09:12:17 Northwest pptp: anon log: Closing connection (call state)
Jan 25 09:14:59 Northwest avahi-daemon: Invalid query packet.
Use the command given above :

# pppd local lock noauth proxyarp name scott remotename ipsec updetach refuse-eap refuse-chap refuse-mschap-v2 nobsdcomp nodeflate require-mppe pty "/usr/sbin/pptp 192.168.0.166 --nolaunchpppd "
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
CHAP authentication succeeded
CHAP authentication succeeded
Disabling 40-bit MPPE; MS-CHAP LM not supported
MPPE 128-bit stateless compression enabled
Cannot determine ethernet address for proxy ARP
local  IP address 192.168.1.80
remote IP address 192.168.1.84

[火星人 ] pptp客戶端已經有617次圍觀

http://coctec.com/docs/service/show-post-11804.html