``` sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" source address="0.0
These two rules are NOT have any logging enabled.
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" service name="http" drop'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" service name="https" drop'LogDenied=all.iptables -A and iptables -I [optional_position].iptables -A, the new rule you add would never match, you would need iptables -I [optional_position] to insert it before the previous rule.

HTTP-/080-DROP: and HTTPS/443-DROP: will literally be the tag in the above example-/080 is just an example for alignment purposes, so they have the same length.../ complains, you can name them INSECURE-HTTP-DROP and SECURE-HTTP-DROP/SECURE-HTTPS-DROP instead or whatever you prefer. iptables -Aiptables -Aiptables -I [optional_position]iptables -I [optional_position]sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" service name="http" log prefix="HTTP-/080-DROP: " drop'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" service name="https" log prefix="HTTPS/443-DROP: " drop'HTTP-/080-DROP:HTTPS/443-DROP:-/080INSECURE-HTTP-DROPSECURE-HTTP-DROPSECURE-HTTPS-DROPsudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" priority=1 source ipset="Cloudflarev4" service name="https" accept'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv6" priority=1 source ipset="Cloudflarev6" service name="https" accept'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" priority=1 source ipset="Cloudflarev4" service name="http" accept'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv6" priority=1 source ipset="Cloudflarev6" service name="http" accept'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" priority=32767 source address="0.0.0.0/0" service name="http" drop'
sudo firewall-cmd --permanent --zone=dmz --add-rich-rule='rule family="ipv4" priority=32767 source address="0.0.0.0/0" service name="https" drop'