您的位置:首页 > 运维架构 > Linux

【操作系统】CentOS 7 防火墙配置

2016-06-22 15:42 489 查看
CentOS 7 防火墙配置

       在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。

假如采用传统请执行一下命令:

systemctl stop firewalld

systemctl mask firewalld

并且安装iptables-services:

yum install iptables-services

设置开机启动:

systemctl enable iptables

systemctl [stop|start|restart] iptables

#or

service iptables [stop|start|restart]

 

service iptables save

#or

/usr/libexec/iptables/iptables.init save
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: