csf 防火墙中的 pptp gre

csf 防火墙中的 pptp gre

我有一个高级问题。当我想通过 Tap 适配器或 pptp 连接连接 pptp 时,连接断开了,并在消息日志中收到以下错误:

linux pptpd[20275]: GRE: read(fd=7,buffer=60a400,len=8260) from network failed: status = -1 error = Message too long
linux pptpd[20275]: CTRL: GRE read or PTY write failed (gre,pty)=(7,6)
linux pppd[20276]: Modem hangup
linux pppd[20276]: Connect time 0.2 minutes.
linux pppd[20276]: Sent 15948 bytes, received 11596 bytes.
linux pppd[20276]: MPPE disabled
linux pppd[20276]: Connection terminated.
linux pppd[20276]: Exit.
linux pptpd[20275]: CTRL: Client xx.xx.xx.xx control connection finished

为了使我的防火墙为 CSF 添加,我在 csfpre.sh 中插入了以下规则:

iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT
iptables -A OUTPUT -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT

但什么都没改变,上述问题仍然存在。谢谢

答案1

幸运的是,问题已经通过添加解决

mru 900
mtu 900

在 options.pptp 中

相关内容