scott wrote:
Order matters with firewall rules, you'd want to -I (insert) those rather than -A (add) to ensure your other rules dont have an accept before them.
Yes, we know that, but the problem is with some ISPs like the one here in my country. The IPs are blacklisted and appears in almost all RBL. So, when I tried the ASL RBL rules in my server a lot of customers in my country were block, that is why I can't use something like.
But after reading your post, I tweaked your RBL Rule to something like this:
Code:
#Global RBL rules
SecRule REMOTE_ADDR "!@pmFromFile /etc/asl/whitelist" \
"chain,deny, log, id:350000,rev:2,msg:'Global RBL Match: IP is on the My IPs Blacklist',severity:'3'"
SecRule REMOTE_ADDR "@pmFromFile MyIP-blacklist.txt"
What do you think?
Regards,
Sergio