firewalld和netfilter
#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仅仅是它的工具
转载于:https://blog.51cto.com/13669226/2114250
firewalld和netfilter相关推荐
- Linux centos7 Linux网络相关、firewalld和netfilter、netfilter5表5链介绍、iptables语法
一. Linux网络相关 yum install net-tools ifconfig查看网卡ip ifup ens33开启网卡 ifdown ens33关闭网卡 设定虚拟网卡ens33:0 mii- ...
- 七周三次课(11月29日) 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法...
2019独角兽企业重金招聘Python工程师标准>>> 10.11 Linux网络相关 ifconfig 查看网卡ip (yum install net-tools) 安装 -a ...
- 七周三次课(1月24日) 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法...
七周三次课(1月24日) 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法 ====== ...
- Linux网络/firewalld和netfilter/netfilter/iptables语法
为什么80%的码农都做不了架构师?>>> linux网络相关 查看网卡网络信息 ifconfig 命令查看网卡网络信息,比如ip.网关.子网掩码等,但是安装centos7的版本 ...
- 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 ne
七周三次课 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法 10.11 Linux网络 ...
- Linux网络相关、firewalld、netfilter及其5表5链、iptables语法
2019独角兽企业重金招聘Python工程师标准>>> 1.Linux 网络相关 ifconfig 查看网卡IP,见下图, net-tools 包之前安装过了,这边还可以执行这个命令 ...
- centos7 中iptables、firewalld 、netfilter 关系
centos7系统使用firewalld服务替代了iptables服务,但是依然可以使用iptables来管理内核的netfilter 但其实iptables服务和firewalld服务都不是真正的防 ...
- firewalld、netfilter、 netfilter5表5链、iptables介绍
1. Linux网络相关 ifconfig查看网卡ip(如果没有这个命令请使用yum install net-tools安装) ifdown ens33 //关闭网卡ens33(在使用远程终端连接时不 ...
- linux netfilter路由表,linux网络相关,firewalld和netfilter,netfilter5表5链介绍,itptables语法...
Linux网络相关: 如果没有 ifconfig 命令 那么需要安装一个包(yum install net-tools) 如果 ifconfig 命令查看不到网卡的话,那么可以使用 ifconfig ...
最新文章
- LeetCode实战:二叉树中的最大路径和
- springboot 搭建分布式_爱了!阿里巴巴内部出品“SpringBoot+微服务指南”,理论与实战...
- DFS解01背包问题
- ARM Cortex-M3中断跳转过程
- 如何理解Minor/Major/Full GC
- java matcher replace_java.util.regex.Matcher.replaceFirst(String replacement)方法
- libjpeg移植到arm
- 【BZOJ3669】【codevs3314】魔法森林,写作LCT,读作SPFA
- SQL Server插入binary类型的数据
- Hadoop的基本结构介绍(原创)
- 系泊系统 matlab 代码,系泊系统的设计
- html打开网页一段时间字幕滚动,网页代码:求一个隔段时间可停顿的滚动字幕代码...
- Unity3d游戏开发用哪个语言更好?
- 用户故事,史诗故事和主题故事
- 笔记本风扇噪音太大,最简单操作风扇降噪
- 可以免费测试的短信验证码接口接入
- 统计相关国际期刊汇总
- web service 优缺点
- 常用vi编辑器命令行
- 计算机网络之概述、发展简史、层次结构设计、网络拓扑、性能指标