firewalld和netfilter
#setenforce 0 //臨時(shí)關(guān)閉selinux
#vi /etc/selinux/config //永久關(guān)閉selinux需要修改這個(gè)配置文件
將SELINUX=enforcing修改為SELINUX=disabled
#getenforce //查看selinux是否關(guān)閉
centos7之前使用netfilter防火墻
centos7開(kāi)始使用firewalld防火墻
以下是在centos7上關(guān)閉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 //開(kāi)啟iptables
#iptables -nvL //查看itables默認(rèn)規(guī)則
關(guān)閉centos7上的firewalld,啟用centos6之前用的netfilter總結(jié):
firewalld --> close / disable + stop
netfilter --> open --> yum安裝iptables-services --> enable iptables / start iptables
注意:真正的防火墻是netfilnet,而iptables僅僅是它的工具
轉(zhuǎn)載于:https://blog.51cto.com/13669226/2114250
總結(jié)
以上是生活随笔為你收集整理的firewalld和netfilter的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: nginx配置tomcat负载均衡,ng
- 下一篇: 埃维诺任命杰出企业家郭秀闲掌舵大中华区业