pptpd服务器连接上无法上网解决办法

时间:2024-11-14 08:35:19

sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

sudo iptables -I FORWARD -p tcp --syn -i ppp+ -j TCPMSS --set-mss 1396



ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.0.1  P-t-P:192.168.0.235  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
          RX packets:14295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12560 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1429603 (1.4 MB)  TX bytes:5145792 (5.1 MB)