码迷,mamicode.com
首页 > Web开发 > 详细

firewalld和netfilter

时间:2018-05-09 10:52:31      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:关闭centos7上的firewalld

技术分享图片
#setenforce 0 //临时关闭selinux
#vi /etc/selinux/config //永久关闭selinux需要修改这个配置文件
将SELINUX=enforcing修改为SELINUX=disabled
#getenforce //查看selinux是否关闭

centos7之前使用netfilter防火墙
centos7开始使用firewalld防火墙
以下是在centos7上关闭firewalld防火墙,使用centos6上的netfilter防火墙
#systemctl disable firewalld //禁用firewalld
#systemctl stop firewalld //停止firewalld
#yum install -y iptables-services //yum安装iptables-services
#systemctl enable iptables //启用iptables
#systemctl start iptables //开启iptables
#iptables -nvL //查看itables默认规则
技术分享图片
关闭centos7上的firewalld,启用centos6之前用的netfilter总结:
firewalld --> close / disable + stop
netfilter --> open --> yum安装iptables-services --> enable iptables / start iptables
注意:真正的防火墙是netfilnet,而iptables仅仅是它的工具

firewalld和netfilter

标签:关闭centos7上的firewalld

原文地址:http://blog.51cto.com/13669226/2114250

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!