PPTPd-配置错误?

PPTPd-配置错误?
an  5 01:09:12 vpn pptpd[1832]: GRE: read(fd=6,buffer=611860,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jan  5 01:09:12 vpn pptpd[1832]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jan  5 01:09:12 vpn pptpd[1832]: CTRL: Client 71.55.203.144 control connection finished
Jan  5 01:09:29 vpn pptpd[1853]: MGR: Maximum of 100 connections reduced to 1, not enough IP addresses given
Jan  5 01:09:29 vpn pptpd[1854]: MGR: Manager process started
Jan  5 01:09:29 vpn pptpd[1854]: MGR: Maximum of 1 connections available
Jan  5 01:09:36 vpn pptpd[1856]: CTRL: Client MYIP control connection started
Jan  5 01:09:36 vpn pptpd[1856]: CTRL: Starting call (launching pppd, opening GRE)
Jan  5 01:09:36 vpn pppd[1857]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Jan  5 01:09:36 vpn pppd[1857]: This system lacks kernel support for PPP.  This could be because the PPP kernel module could not be loaded, or because PPP was not included in the kernel configuration.  If PPP was included as a module, try `/sbin/modprobe -v ppp'.  If that fails, check that ppp.o exists in /lib/modules/`uname -r`/net. See README.linux file in the ppp distribution for more details.
Jan  5 01:09:36 vpn pptpd[1856]: GRE: read(fd=6,buffer=611860,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jan  5 01:09:36 vpn pptpd[1856]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jan  5 01:09:36 vpn pptpd[1856]: CTRL: Client MYIP control connection finished

我正在运行 OpenVZ 系统。这是否意味着我缺少内核模块以使 PPTP 正常工作?

答案1

是的:

1 月 5 日 01:09:36 vpn pppd[1857]: 此系统缺少对 PPP 的内核支持。这可能是因为无法加载 PPP 内核模块,或者因为内核配置中未包含 PPP。如果 PPP 已作为模块包含,请尝试/sbin/modprobe -v ppp'. If that fails, check that ppp.o exists in /lib/modules/uname -r`/net。有关更多详细信息,请参阅 ppp 发行版中的 README.linux 文件。

你试过了吗?这是解决方案,前提是你可以访问主机:http://wiki.openvz.org/PPP_in_container

归结为:

vzctl set [VEnumber] --features ppp:on --save
vzctl start [VEnumber]
vzctl set [VEnumber] --devices c:108:0:rw --save
vzctl exec [VEnumber] mknod /dev/ppp c 108 0
vzctl exec [VEnumber] chmod 600 /dev/ppp

相关内容