Firewall Rule Name for logging

Hello,

Is there a way to name the firewall rule to see which rule allowed or blocked the connection in logs?

Hello @ezyz - Welcome to the IPFire Community!

you probably need to create your own rule and add it to firewall.local

and add something like this:

iptables -t TABLE -A CUSTOMPREROUTING [your rule here] -m limit --limit 10/sec --limit-burst 20 -j LOG --log-prefix "your rule name here"
iptables -t TABLE -A CUSTOMPREROUTING [your rule here] -j RETURN
3 Likes

2 posts were split to a new topic: In Log, is it very difficult to add a “rule name”