大网数据广告活动
服务器运维问答

Firewalld kills iptables

· 52CE 我爱测

I have centos7 with installed firewalld and fail2ban. When i'm start firewalld(service firewalld start) it kills iptables (and starting iptables kills runing firewalld). Can i remove iptables and use only firewalld? Fail2ban acti…

问题原文

原帖链接 · Kandrat · CC BY-SA 4.0

I have centos7 with installed firewalld and fail2ban. When i'm start firewalld(service firewalld start) it kills iptables (and starting iptables kills runing firewalld). Can i remove iptables and use only firewalld? Fail2ban action firewallcmd-ipset/allports/multiport use iptables to block. Could someone explain right way to setup firewalld+fail2ban ?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

You should not start the old iptables service if you intend to use firewalld. Start only firewalld and remove the other service.

The scripts comprising the old iptables service are in the RPM package named iptables-services, so you can remove this package from your system, and afterward use only firewalld.

yum remove iptables-services

(But do not remove the RPM package named iptables. You still need this as it contains the iptables command line tool.)

I recommend you set your fail2ban banaction to firewallcmd-ipset, as this gives the highest performance with very large lists of IP addresses.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。