我遵循这教程,在centos 6 VPS和fedora 22工作站之间配置pptp连接。我只做了一件与该教程不同的事情:我从epel存储库中安装了pptpd,而不是提供的链接。
在本教程之后,我将以下规则添加到iptables中:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables -I INPUT -s 10.0.0.0/8 -i ppp0 -j ACCEPT
iptables --append FORWARD --in-interface eth0 -j ACCEPT我还添加了以下规则,以确保我的费尔沃尔没有阻止我的连接请求:
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT其中XXX.XXX是我的工作站公共固定ipv4。
当我跑步时:
pppd call pptpserver
ip route add 10.0.0.0/8 dev ppp0我得到了RTNETLINK answers: Network is down的几次尝试,我得到了Cannot find device "ppp0"。
我从journalctl -f得到:
pppd[7632]: pppd 2.4.5 started by user, uid 0
pppd[7632]: Using interface ppp0
pppd[7632]: Connect: ppp0 <--> /dev/pts/5
NetworkManager[1186]: <info> (ppp0): new Generic device (driver: 'unknown' ifindex: 15)
NetworkManager[1186]: <info> (ppp0): exported as /org/freedesktop/NetworkManager/Devices/14
pptp[7633]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated
NetworkManager[1186]: <info> (ppp0): No existing connection detected.
pptp[7640]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 1 'Start-Control-Connecti...equest'
pptp[7640]: anon log[ctrlp_disp:pptp_ctrl.c:758]: Received Start Control Connection Reply
pptp[7640]: anon log[ctrlp_disp:pptp_ctrl.c:792]: Client connection established.
pptp[7640]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 7 'Outgoing-Call-Request'
pptp[7640]: anon log[ctrlp_disp:pptp_ctrl.c:877]: Received Outgoing Call Reply.
pptp[7640]: anon log[ctrlp_disp:pptp_ctrl.c:916]: Outgoing call established (call ID 0, peer's call ID 256).几秒钟后:
pppd[7632]: LCP: timeout sending Config-Requests
pppd[7632]: Connection terminated.
avahi-daemon[874]: Withdrawing workstation service for ppp0.
gnome-session[2254]: Gjs-Message: JS LOG: Removing a network device that was not added
pppd[7632]: Modem hangup
pptp[7633]: anon warn[decaps_hdlc:pptp_gre.c:220]: short read (-1): Input/output error
pptp[7633]: anon warn[decaps_hdlc:pptp_gre.c:232]: pppd may have shutdown, see pppd log
pppd[7632]: Exit.
pptp[7640]: anon log[callmgr_main:pptp_callmgr.c:245]: Closing connection (unhandled)
pptp[7640]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 12 'Call-Clear-Request'
pptp[7640]: anon log[call_callback:pptp_callmgr.c:84]: Closing connection (call state)有人知道我的关系出了什么问题吗?是在我的工作站上还是在服务器上?
谢谢
发布于 2016-04-17 21:12:18
关闭并清除iptable并执行连接测试。如果它有效,您很可能不需要适当的iptables配置才能使pptp正常工作。
如果它与清除和禁用iptables一起工作,那么您可能应该阅读以下内容:PPTP IPTables路由问题
https://serverfault.com/questions/770880
复制相似问题