江山川资讯

Centos6 配置配置ppptp服务防火墙策略

时间:2020-11-14 阅读:2531 来源:江山川

#清除全部规则

iptables -F

#22端口

iptables -I INPUT -p tcp --dport 22 -j ACCEPT

#内网转发到外网

iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -j SNAT --to-source 27.124.*.*

#打开ppptp通讯端口

iptables -A INPUT -p tcp --dport 1723 -j ACCEPT

#允许DNS连接

iptables -A INPUT -p gre -j ACCEPT

#保存规则

service iptables save

#重启防火墙

service iptables restart


成都江山川科技有限公司 总部