Change permanent block to temporary

Post Reply
DanH42
Junior Member
Posts: 5
Joined: 03 Jun 2014, 20:41

Change permanent block to temporary

Post by DanH42 »

I'm using a subset of the OWASP ruleset, and I'm still getting lots of false positives. Almost every time that happens, the IP responsible gets a permanent block in iptables, which I think is a little strict even if they were trying to attack the server.

I've tried Googling around a bit, and I can't find a way to make bans temporary. I think a block of 5~30 minutes would be reasonable.
DanH42
Junior Member
Posts: 5
Joined: 03 Jun 2014, 20:41

Re: Change permanent block to temporary

Post by DanH42 »

Update: I asked the same question on the cPanel forums, and found out there's a setting for this in CSF:

Code: Select all

LF_MODSEC = "10"
LF_MODSEC_PERM = "300"
This would block for 5 minutes (300 seconds) after modsec rules being triggered.
Post Reply