vespino
vespino

Reputation: 1940

ufw deny rule seems to be ignored

I have UFW setup as my firewall and a script that reads my log file to detect spammers (it's a mailserver). The script insert rules like these on the first line:

Anywhere DENY x.x.x.x

The script is running fine, rules are added. You would say everything is working fine, but there are still logs coming from IPs that should be blocked.

I have tried reloading UFW, but this does not solve this issue. These are basically my rules:

I assume the firewall stops when the rule is valid?

Upvotes: 0

Views: 642

Answers (1)

Flow
Flow

Reputation: 29

Yes, once a rule is matched the others will not be evaluated.

You can check the order of your rules and that ufw is active with:

sudo ufw status numbered 

Upvotes: 0

Related Questions