大量のルールをロードするため firewall-cmd --reload は時間がかかる
Issue
firewall-cmd --reload
は時間がかかり、その間にシステムは接続を停止します。
# time firewall-cmd --reload
success
real 0m46.997s
user 0m0.132s
sys 0m0.018s
- この環境には、大量の送信元 IP アドレスのルールがあります。
# firewall-cmd --info-zone=public
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources: 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 ... <<<--- huge amount of rules
services: dhcpv6-client ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Environment
- Red Hat Enterprise Linux 7
- Firewalld
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.