> CentOS > CentOS入门 >

CentOS 7 使用iptables防火墙

# 停止firewalld服务 systemctl stop firewalld systemctl mask firewalld

# 安装iptables-services yum install iptables-services Enable the service at boot-time:

# 启动iptables服务 systemctl enable iptables

# 管理iptables systemctl [stop|start|restart] iptables

# 保存规则 service iptables save 或者 /usr/libexec/iptables/iptables.init save



(责任编辑:IT)