Firewall - CMD - add - rich - rule="rule family=ipv4 source address=1.1.1.1/24 accept"
Question if I want to add 100.0.0.1-100.0.0.3 IP networks outside of this kind of relatively arbitrary section?
The original iptables is simple:
Iptables -a INPUT -p TCP - m iprange - SRC - range 100.0.0.1-100.0.0.3 -- dport 1234 - sport 1024:65534 - j ACCEPT
Now Firewalld will become three rich rules respectively to join?
Firewall - CMD - add - rich - rule="rule family=ipv4 source address=100.0.0.1 accept"
Firewall - CMD - add - rich - rule="rule family=ipv4 source address=100.0.0.2 accept"
Firewall - CMD - add - rich - rule="rule family=ipv4 source address=100.0.0.3 accept"
Is there a better way, because before the iptables only need several hundred, use firewalld now after the split into hundreds of thousands of rich rule
CodePudding user response:
Address range aggregation, CIDR