1 network-manager vpn networking
我对 Ubuntu 和 Linux 还是很陌生,所以如果这很明显,请原谅我。前几天我设置了 PPTP VPN 连接。它工作得很好,但有一天到另一天,它不再了。我在 12.04 上使用它,它在那里停止工作。然后我升级到 13.04,它仍然无法工作。我唯一改变的是添加第二台显示器(我现在正在运行双显示器),但我怀疑这与它有什么关系。我还安装了推荐的更新。
系统日志给了我这个:
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> Starting VPN service 'pptp'...
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 4958
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN service 'pptp' appeared; activating connections
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN plugin state changed: init (1)
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN plugin state changed: starting (3)
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN connection 'us vpn' (Connect) reply received.
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: pppd 2.4.5 started by root, uid 0
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Using interface ppp0
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Connect: ppp0 <--> /dev/pts/1
Sep 11 13:59:18 Veith-Ubuntu pptp[4965]: nm-pptp-service-4958 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Sep 11 13:59:18 Veith-Ubuntu pptp[4966]: nm-pptp-service-4958 warn[open_inetsock:pptp_callmgr.c:329]: connect: Connection refused
Sep 11 13:59:18 Veith-Ubuntu pptp[4966]: nm-pptp-service-4958 fatal[callmgr_main:pptp_callmgr.c:127]: Could not open control connection to 67.212.175.124
Sep 11 13:59:18 Veith-Ubuntu pptp[4965]: nm-pptp-service-4958 fatal[open_callmgr:pptp.c:487]: Call manager exited with error 256
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Modem hangup
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Connection terminated.
Sep 11 13:59:18 Veith-Ubuntu avahi-daemon[865]: Withdrawing workstation service for ppp0.
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <warn> VPN plugin failed: 1
Sep 11 13:59:18 Veith-Ubuntu pppd[4962]: Exit.
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <warn> VPN plugin failed: 1
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <warn> VPN plugin failed: 1
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN plugin state changed: stopped (6)
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> VPN plugin state change reason: 0
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <info> Policy set 'Kabelnetzwerkverbindung 1' (eth0) as default for IPv4 routing and DNS.
Sep 11 13:59:18 Veith-Ubuntu NetworkManager[885]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 11 13:59:23 Veith-Ubuntu NetworkManager[885]: <info> VPN service 'pptp' disappeared
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索了一下,卸载了 pptp-linux 和 network-manager-pptp。然后我重新安装了它们。我仍然无法连接,我得到了相同的代码。
我肯定在网络管理器中正确配置了所有内容,否则它一开始就不会起作用。我激活了 MPPE,并检查了所有设置 100 次。另一个奇怪的事情:昨天我尝试时,它会给我消息,它连接了大约半秒钟,然后立即被“无法连接”消息取代。不过,它今天没有这样做。我还尝试禁止所有压缩类型。
我搜索过,但找不到任何东西(至少我什么都不懂)。任何帮助都非常感谢!
你好
从日志中,不可能诊断出真正发生了什么,但是 PPTP 协议已经知道很难通过防火墙,所以这里可能就是这种情况。
对于PPTP VPN协议,需要开放1723端口,不同的VPN协议有不同的需求,看这个总结:
PPTP :
L2TP :
SSTP :
IKEv2:
(来源)
要检查您的端口是否打开,您只需telnet访问 VPN 地址即可。
> telnet ipaddress 1723
Run Code Online (Sandbox Code Playgroud)
如果连接正常,VPN 会响应。
如果连接不正常,您将在一段时间后收到连接超时响应。尝试不同的连接(例如移动)以确认情况。
如果可能,请联系您的 ISP 以更正此问题。
更新:您问题中的命令失败
连接被拒绝,无法打开与 xxx.xxx.xxx.xxx 的控制连接,并且呼叫管理器退出并出现错误 256
所以很可能telnet会因连接被拒绝(被主机)而失败,这可能是不同的问题。联系 VPN 管理员检查来自您 IP 地址的 VPN 日志和拒绝原因。
更新 2:您可以按照此帮助页面中的建议修复 256 错误。基本上就是这四个步骤:
ping到hosttraceroute到hosttelnet到host