首页 > Web开发 > 详细

firewalld和netfilter

时间:2018-05-09 10:43:55      阅读:202      评论:0      收藏:0      [点我收藏+]
技术分享图片
#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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!