RHEL7--- Limiting Network Communication with firewalld(一)

Firewalld介绍:

在上一代的红帽企业版OS中,netfilter作为一个模块被内核加载,主要用于检查数据包在传输中的情况,意味着一个数据包在incoming,outgoing和forwarded时会被检查,netfilter作为一个模块,系统提供了一个用户级别的工具---iptables 作为普通的用户去管理和调试netfilter的一个手段在之前的版本中,而在RHEL7中,会用到firewalld这个守护进程来替代iptables。firewalld这个守护进程被firewalld这个软件包提供,并且在默认安装系统的时候已经完整安装(除非是最小化安装OS)。

Firewalld工作原理:

firewalld把所有的流量划分为区(network zones)简化了防火墙管理,基于标准比如源IP或是进入网络的接口,流量被转义到适当的区域防火墙的规则,每个区域有属于自己的端口号,服务来进行开启与关闭。

关于预设区域(Pre-defined zones):

/usr/lib/firewall/zones 保存了大量的预设区,但此目录下的.xml文件是不可以被修改了

而/etc/firewalld/zones目录下的内容可以被修改

下图给出常见的系统预设区的名词和含义:

关于预设服务:

系统同时保留了一些预设的服务(Pre-defined services),同样/usr/lib/firewalld/service下面的.xml文件是不可以被修改的,而/etc/firewalld/service则是可以修改的。

cp /usr/lib/firewalld/services/[service].xml /etc/firewalld/services/[service].xml 然后做修改

常见的保留预设服务:

RHEL7--- Limiting Network Communication with firewalld(一),布布扣,bubuko.com

时间: 2024-11-06 08:09:46

RHEL7--- Limiting Network Communication with firewalld(一)的相关文章

GoldenGate OGG-01032 There Is a Problem in Network Communication Error in Writing to Rmt Remote Trail Rmttrail (Doc ID 1446621.1)

GoldenGate OGG-01032 There Is a Problem in Network Communication Error in Writing to Rmt Remote Trail Rmttrail (Doc ID 1446621.1) To Bottom In this Document   Symptoms   Changes   Cause   Solution APPLIES TO: Oracle GoldenGate - Version 10.0.0.0 to 1

RHEL7/CentOS7 Network Service开机无法启动的解决方法

RHEL7/CentOS7安装完成并配置好所有网络相关配置后重启机器,使用systemctl --failed检查是否有失败的服务,发现在network服务启动失败,使用systemctl status network查看服务状态,得到如下错误信息: [plain] view plain copy <span style="font-family:Microsoft YaHei;font-size:14px;"># systemctl status network netw

Network management system scheduling for low power and lossy networks

In one embodiment, a network management system (NMS) determines an intent to initialize a request-response exchange with a plurality of clients in a low power and lossy network (LLN). In response, the NMS adaptively schedules corresponding responses

How Network Load Balancing Technology Works--reference

http://technet.microsoft.com/en-us/library/cc756878(v=ws.10).aspx In this section Network Load Balancing Terms and Definitions Network Load Balancing Architecture Network Load Balancing Protocols Application Compatibility with Network Load Balancing

Linux - Network Configuration

Part 1: Basic Network Terminology Before setting up a network or accessing an existing network, it is important to know some key terms that are related to networking. This section explores the terms you should be aware of. Some of the terms are basic

Android RakNet 系列之六 源码说明

简介 既然选择Raknet开发,那就深入研究其源码结构,为以后的应用打下基础. 详情 1.文件 文件 描述 _FindFirst 快速查找 AutopatcherPatchContext 自动更新.不停 AutopatcherRepositoryInterface 更新 获取重要的数据接口 Base64Encoder base64编码 BitStream 比特流 流结构 CCRakNetSlidingWindow 观测 CCRakNetUDT   CheckSum 校验 CloudClient

Java性能提示(全)

http://www.onjava.com/pub/a/onjava/2001/05/30/optimization.htmlComparing the performance of LinkedLists and ArrayLists (and Vectors) (Page last updated May 2001, Added 2001-06-18, Author Jack Shirazi, Publisher OnJava). Tips: ArrayList is faster than

Role-based access control modeling and auditing system

A?role-based?access?control?(RBAC) modeling and auditing system is described that enables a user to?access?and/or create security roles that can be applied to users of a first software application. When a security role having a particular set of perm

On-demand diverse path computation for limited visibility computer networks

In one embodiment, a source device detects a packet flow that meets criteria for multi-path forwarding, and forwards a probe packet on a primary path from the source device to a destination device, the probe packet carrying an indication to cause a p