FirewallD ipset shenanigans
Greetings, fellow Linux practitioners!
I've just finished setting up FirewallD on my personal server using nftables as its backend, and I can't understand a few aspects of FirewallD:
- Unless I add a record to an
ipsetthroughfirewall-cmd, it's ignored: zoneblockhas a sourceipset:blacklist4, and if I add a network to thatipset, (ipset add blacklist4 CIDR), it doesn't work, but if I do the same throughfirewall-cmd- it works, why is that? - The same seems to apply to rich rules -
rule priority=-10 family="ipv4" source ipset="blacklist4" dropin zonepublic- no dice. However,sshguard, doing the same, in the same zone, but callingfirewall-cmdto add an address to itsipset- works.
What am I missing here? Does using ipset not update runtime config for FirewallD?
0 comments · 67% upvoted · other discussions