1.4. 防火墙直接规则
firewalld
服务提供多种配置规则的方法,包括:
- 常规规则
- 直接规则
这两者之间的一个区别是每种方法与底层后端(iptables
或 nftables
)交互的方式。
直接规则是高级的、低级规则,其允许与 iptables
的直接交互。但是,iptables
组件是没有维护的,并将最终从 RHEL 中删除。因此,您可能会考虑使用 nftables
替换直接规则。如需了解更多详细信息,请参阅知识库文章解决方案 如何使用 nftables 替换 firewalld 直接规则?,以及 在区域之间过滤转发流量 中与策略对象有关的部分。