iptables -F iptables -X iptables -Z iptables -A INPUT -p tcp --dport 1723 -j ACCEPT iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source x.x.x.x(外网IP) service iptables save service iptables restart原文链接:https://www.f2er.com/centos/381254.html