Re: [問答] 用pptp架設VPN server
※ 引述《gn00618777 (非常念舊)》之銘言:
: ※ [本文轉錄自 Network 看板 #1KAcIOZh ]
: 作者: gn00618777 (非常念舊) 看板: Network
: 標題: [問答] 用pptp架設VPN server
: 時間: Tue Sep 30 16:06:43 2014
: 我先在同個網域先做測試,VPN server ip(ubuntu):172.16.51.27
: client ip(Windows):172.16.51.16
: 1 apt-get install pptpd
: =============================================
: 2 vim etc/pptpd.conf
: localip 172.16.51.27
: remoteip 172.16.51.234-238, 172.16.51.245
: =============================================
: 3 vim etc/ppp/pptpd-options
: name pptp
: ms-dns 168.95.1.1
: ms-dns 8.8.8.8
: ===============================================
: 4 vim etc/ppp/chap-secrets
: vpn_user pptp bernie 172.16.51.234
: =================================================
: 接著使用Windows VPN 連線程式 輸入以上serviceIP以及帳密,無法與目標建立連線
: 出現 2147952461 錯誤訊息,googlg 之後去改了VPN連線點右鍵內容安全性
: 資料加密選不允許加密,以及取消 Microsoft CHAP 版本2-->試驗結果無效。
: 接著懷疑ubuntu沒有開VPN server 1723 port,請問是用iptables開啟嗎?
: iptables -A INPUT -p tcp --dport 1723 -j ACCEPT --> 試驗結果無效
: 我目前就只是想用Windows VPN連線程式連到 device 上的 VPN server而以
: 沒想用來上網,請問我到底沒設定到啥呢? 謝謝。
我打上 grep pptp /var/log/syslog 出現訊息
Sep 30 09:27:38 ubuntu-armhf pptpd[1553]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 30 09:27:38 ubuntu-armhf pptpd[1553]: CTRL: Reaping child PPP[1554]
Sep 30 09:27:38 ubuntu-armhf pptpd[1553]: CTRL: Client 172.16.51.16 control connection finished
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: CTRL: Client 172.16.51.16 control connection started
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: CTRL: Starting call (launching pppd, opening GRE)
Sep 30 09:28:56 ubuntu-armhf pppd[1556]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: GRE: read(fd=6,buffer=1547c,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: CTRL: Reaping child PPP[1556]
Sep 30 09:28:56 ubuntu-armhf pptpd[1555]: CTRL: Client 172.16.51.16 control connection finished
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: CTRL: Client 172.16.51.16 control connection started
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: CTRL: Starting call (launching pppd, opening GRE)
Sep 30 09:29:22 ubuntu-armhf pppd[1558]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: GRE: read(fd=6,buffer=1547c,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: CTRL: Reaping child PPP[1558]
Sep 30 09:29:22 ubuntu-armhf pptpd[1557]: CTRL: Client 172.16.51.16 control connection finished
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: CTRL: Client 172.16.51.16 control connection started
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: CTRL: Starting call (launching pppd, opening GRE)
Sep 30 09:34:10 ubuntu-armhf pppd[1560]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: GRE: read(fd=6,buffer=1547c,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: CTRL: Reaping child PPP[1560]
Sep 30 09:34:10 ubuntu-armhf pptpd[1559]: CTRL: Client 172.16.51.16 control connection finished
霧煞煞= =
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.146.76.147
※ 文章網址: http://www.ptt.cc/bbs/Soft_Job/M.1412071278.A.E25.html
→
09/30 22:10, , 1F
09/30 22:10, 1F
→
09/30 22:28, , 2F
09/30 22:28, 2F
→
10/01 10:18, , 3F
10/01 10:18, 3F
→
10/01 12:34, , 4F
10/01 12:34, 4F
→
10/29 15:49, , 5F
10/29 15:49, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):