本文共 1845 字,大约阅读时间需要 6 分钟。
通过开发同事老是提出连接上***确ping不通内网,经过日志排查
Dec 17 10:27:33 webserver pppd[11221]: LCP terminated by peer (U^_^^M-I^@/dev/pts/2Dec 17 10:27:44 webserver pptpd[11240]: GRE: Bad checksum from pppd.Dec 17 10:27:47 webserver pptpd[11240]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!Dec 17 10:27:47 webserver pppd[11241]: MPPE 128-bit stateless compression enabledDec 17 10:27:48 webserver pppd[11241]: found interface eth0 for proxy arpDec 17 10:27:48 webserver pppd[11241]: local IP address 192.168.1.17Dec 17 10:27:48 webserver pppd[11241]: remote IP address 192.168.1.211
Dec 17 10:27:44 webserver pptpd[11240]: GRE: Bad checksum from pppd. 发现存在报错 1.首先查看***软件版本
[root@webserver ~]# rpm -qa ppp
ppp-2.4.5-5.el6.x86_64
[root@webserver ~]# rpm -qa pptp
pptp-1.7.2-8.1.el6.x86_64
[root@webserver ~]# rpm -qa pptpd
pptpd-1.3.4-2.el6.x86_64
[root@webserver ~]# sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
You have mail in /var/spool/mail/root
版本没错但是发现转发有错
加载模块然后重启解决[root@webserver ~]# modprobe bridge
[root@webserver ~]# lsmod | grep bridge
bridge 79078 0
stp 2218 1 bridge
llc 5546 2 bridge,stp
[root@webserver ~]# service pptpd restart
Shutting down pptpd: [ OK ]
Starting pptpd: [ OK ]
Warning: a pptpd restart does not terminate existing
connections, so new connections may be assigned the same IP
address and cause unexpected results. Use restart-kill to
destroy existing connections during a restart.
转载地址:http://zcdml.baihongyu.com/