So I'll try to not get in to the details, but I'm having to use the "trusted" zone in firewalld (dev's keep complaining its the firewalld blocking their software, and want me to turn the firewalls off).
I would like to block a single IP (the network gateway) in the trusted zone.
I have done: added the network to the trusted zone
add the subnet to trusted zone
sudo firewall-cmd --zone=trusted --permanent --add-source=192.168.0.0/16
block the ip
sudo firewall-cmd --zone=trusted --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 reject'
sudo firewall-cmd --zone=trusted --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 drop'
block everywhere because still working
sudo firewall-cmd --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 reject'
sudo firewall-cmd --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 drop'
make the default zone drop
sudo firewall-cmd --set-default=drop
reload
sudo firewall-cmd --reload
and make sure its all there
sudo firewall-cmd --list-all-zones
I'm guessing the order in which the iptables are the problem. Is there another way ? or am I missing something. I've even tried adding source and dest to the block.