Wednesday, May 17, 2023

Linux主机pppoe拨号上网作为网关,部分网站打不开

echo 1 > /proc/sys/net/ipv4/ip_forward  # 或者修改 /etc/sysctl.conf
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1452

 

参考:

https://v2ex.com/t/940431

https://blog.csdn.net/victory08/article/details/51454030

No comments:

Post a Comment

一些有用的网站

Windows系统安装界面认不到硬盘,加载RST驱动: https://iknow.lenovo.com.cn/detail/419926.html 纯净版Flash: https://gitlab.com/cleanflash/installer/-/releases    ...