#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相关推荐

  1. Linux centos7 Linux网络相关、firewalld和netfilter、netfilter5表5链介绍、iptables语法

    一. Linux网络相关 yum install net-tools ifconfig查看网卡ip ifup ens33开启网卡 ifdown ens33关闭网卡 设定虚拟网卡ens33:0 mii- ...

  2. 七周三次课(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   ...

  3. 七周三次课(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语法 ====== ...

  4. Linux网络/firewalld和netfilter/netfilter/iptables语法

    为什么80%的码农都做不了架构师?>>>    linux网络相关 查看网卡网络信息 ifconfig 命令查看网卡网络信息,比如ip.网关.子网掩码等,但是安装centos7的版本 ...

  5. 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网络 ...

  6. Linux网络相关、firewalld、netfilter及其5表5链、iptables语法

    2019独角兽企业重金招聘Python工程师标准>>> 1.Linux 网络相关 ifconfig 查看网卡IP,见下图, net-tools 包之前安装过了,这边还可以执行这个命令 ...

  7. centos7 中iptables、firewalld 、netfilter 关系

    centos7系统使用firewalld服务替代了iptables服务,但是依然可以使用iptables来管理内核的netfilter 但其实iptables服务和firewalld服务都不是真正的防 ...

  8. firewalld、netfilter、 netfilter5表5链、iptables介绍

    1. Linux网络相关 ifconfig查看网卡ip(如果没有这个命令请使用yum install net-tools安装) ifdown ens33 //关闭网卡ens33(在使用远程终端连接时不 ...

  9. linux netfilter路由表,linux网络相关,firewalld和netfilter,netfilter5表5链介绍,itptables语法...

    Linux网络相关: 如果没有 ifconfig 命令 那么需要安装一个包(yum install net-tools) 如果 ifconfig 命令查看不到网卡的话,那么可以使用 ifconfig ...

最新文章

  1. LeetCode实战:二叉树中的最大路径和
  2. springboot 搭建分布式_爱了!阿里巴巴内部出品“SpringBoot+微服务指南”,理论与实战...
  3. DFS解01背包问题
  4. ARM Cortex-M3中断跳转过程
  5. 如何理解Minor/Major/Full GC
  6. java matcher replace_java.util.regex.Matcher.replaceFirst(String replacement)方法
  7. libjpeg移植到arm
  8. 【BZOJ3669】【codevs3314】魔法森林,写作LCT,读作SPFA
  9. SQL Server插入binary类型的数据
  10. Hadoop的基本结构介绍(原创)
  11. 系泊系统 matlab 代码,系泊系统的设计
  12. html打开网页一段时间字幕滚动,网页代码:求一个隔段时间可停顿的滚动字幕代码...
  13. Unity3d游戏开发用哪个语言更好?
  14. 用户故事,史诗故事和主题故事
  15. 笔记本风扇噪音太大,最简单操作风扇降噪
  16. 可以免费测试的短信验证码接口接入
  17. 统计相关国际期刊汇总
  18. web service 优缺点
  19. 常用vi编辑器命令行
  20. 计算机网络之概述、发展简史、层次结构设计、网络拓扑、性能指标

热门文章

  1. wmsys.WM_CONCAT
  2. 科研SCI论文图片常见问题和错误汇总
  3. CAD 2021安装教程(超简单)
  4. Matlab 2022a 安装教程(手把手式教程 超简单)
  5. a表两个字段都与b表一个字段关联_数据库表的主键实例分析
  6. hfss13.0安装教程
  7. Photoshop2018详细安装教程
  8. 光流 | 基于光流的人体异常行为检测(附源代码)
  9. 服务器上有图片但是app不显示不出来,网络app图片显示不出来的
  10. 套接字有哪些类型?socket有哪些类型?