Opensuse

在命令行上使用 PPTP 協議啟動 VPN 連接

  • June 13, 2017

我正在嘗試使用以下命令在 OpenSUSE Leap 42.2 上設置 VPN 連接:

me@linux-box:~> sudo pptpsetup --create TUNNEL --server 172.16.100.2 --username 444182 --password 255553 --start

但我收到以下錯誤消息:

Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
anon warn[open_inetsock:pptp_callmgr.c:329]: connect: Connection refused
anon fatal[callmgr_main:pptp_callmgr.c:127]: Could not open control connection to 172.16.100.2
anon fatal[open_callmgr:pptp.c:479]: Call manager exited with error 256
Script pptp 172.16.100.2 --nolaunchpppd finished (pid 17988), status = 0x1
Modem hangup
Connection terminated.

此外,當嘗試使用以下方式啟動 VPN 時:

pppd call TUNNEL debug nodetach

我收到相同的錯誤消息。此外,當我關閉防火牆時,我會收到相同的錯誤消息。我想知道是否有人知道如何解決它。

實際上,我意識到在 MikroTik v6.25 上禁用了 PPTP,即 IP 地址 172.16.100.2,這就是我無法連接到 VPN 伺服器的原因。

在 MikroTik 上啟用 PPTP 後,我可以像這樣連接到伺服器:

me@linux-box:~> sudo pppd call TUNNEL debug nodetach
using channel 15
Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa905bd9b> <pcomp> <accomp>]

引用自:https://unix.stackexchange.com/questions/370855