我正在尝试连接到 PPTP VPN 服务器。相同的配置在 Windows 中运行良好,但在 Ubuntu 12.10 中失败。这一定是一些配置问题。
sudo pptpsetup --create MYVPN --server xxx.xxx.xxx.xxx --username username --password password
Run Code Online (Sandbox Code Playgroud)
一切都设置正确。但是当我尝试实际运行 VPN 时,我得到了这个:
$ sudo pppd call MYVPN updetach
Using interface ppp1
Connect: ppp1 <--> /dev/pts/2
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Run Code Online (Sandbox Code Playgroud)
当我这样做以获取更多详细信息时:
tail -n 30 /var/log/syslog | grep -i ppp
Mar 18 06:33:08 tp pppd[5082]: pppd 2.4.5 started by root, uid 0
Mar 18 06:33:08 tp pppd[5082]: Using interface ppp1
Mar 18 06:33:08 tp pppd[5082]: Connect: ppp1 <--> …Run Code Online (Sandbox Code Playgroud) 我的 pptp 连接无法保持连接,它会在不到一分钟的时间内断开连接
这是一些相关的日志条目
May 31 13:32:31 localhost NetworkManager[931]: <info> Starting VPN service 'pptp'...
May 31 13:32:31 localhost NetworkManager[931]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 15216
May 31 13:32:31 localhost NetworkManager[931]: <info> VPN service 'pptp' appeared; activating connections
May 31 13:32:31 localhost NetworkManager[931]: <info> VPN plugin state changed: init (1)
May 31 13:32:31 localhost NetworkManager[931]: <info> VPN plugin state changed: starting (3)
May 31 13:32:31 localhost NetworkManager[931]: <info> VPN connection 'Dynalabs' (Connect) reply received.
May 31 13:32:31 localhost pppd[15221]: …Run Code Online (Sandbox Code Playgroud) 我是一名网络工程师,对 Ubuntu 的经验非常有限。我一直在遵循这些在线说明来设置 pptp 服务器,
但没有太多运气让它工作。我的服务器是一个在 Cisco 防火墙后面运行 Apple Xserve 的虚拟机。我确保为盒子打开了 tcp 1723 和 GRE。下面是 syslog 输出,看起来我总是卡在GRE: Bad checksum from pppd. 我正在运行 Ubuntu 10.04。
Sep 24 13:21:53 ubuntu pptpd[1231]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 24 13:21:53 ubuntu pptpd[1231]: CTRL: Reaping child PPP[1232]
Sep 24 13:21:53 ubuntu pptpd[1231]: CTRL: Client 166.137.85.165 control connection finished
Sep 24 13:22:41 ubuntu pptpd[1276]: MGR: connections limit (100) reached, extra IP addresses ignored
Sep 24 13:22:41 ubuntu pptpd[1277]: MGR: …Run Code Online (Sandbox Code Playgroud) 我不小心删除了一个配置文件 ( /etc/pptpd.conf),想知道恢复 pptpd 包附带的默认配置文件的最佳方法是什么。有没有办法从包中“签出”单个文件?
我已按照本教程中的说明设置了一个 vpn 服务器,以便我可以连接到该服务器并从另一个位置虚拟上网。离windows很远,我可以连接到它,但没有互联网访问。
我在conf文件中使用的ip地址和教程中的完全一样
localip 192.168.0.1
remoteip 192.168.0.100-200
Run Code Online (Sandbox Code Playgroud)
DNS 也是 8.8.8.8。
(你需要知道的关于我所做的一切都已经在那个链接中了)
你认为可能是什么问题?
我需要一些帮助来设置我的 VPN。一切都配置正确,但 pptpd 服务器无法启动。这是发生的事情:
# /etc/init.d/pptpd status
* /usr/sbin/pptpd is not running
# /etc/init.d/pptpd start
# /etc/init.d/pptpd restart
* Restarting PoPToP Point to Point Tunneling Server pptpd [ OK ]
# /etc/init.d/pptpd status
* /usr/sbin/pptpd is not running
Run Code Online (Sandbox Code Playgroud)
我看到 pptpd 没有运行,然后我启动它,没有任何反应。我重新启动它,它说好。当我再次检查状态时,它仍然没有运行!我有一个运行 Ubuntu Server 14.04.1 LTS 的 VPS。我跑了sudo apt-get upgrade,sudo apt-get update刚才。我从我的 Windows 8.1 PC 连接。根据本指南填写所有配置文件:使用 Ubuntu VPS 创建 VPN 服务器
请帮忙,我希望我发布了足够的信息
乔