Page 1 of 1

How to auto unban/release IPs in csf.deny

Posted: 08 Nov 2022, 09:59
by killed
Dear friends,

Now my server had configurated with permanent ban that IP after temporary ban 4 times. But I don't know the option which I can config to auto remove/unban/release permanent IP in csf.deny after seconds/minutes/hours/...

Could you please kind help me for that.

Thanks so much!

Re: How to auto unban/release IPs in csf.deny

Posted: 09 Nov 2022, 03:06
by Sergio
I think all of us have been in that situation.

In my case I created a shebang script that unblock permanent IPs each 15 minutes on the hour, depending of the type of error it had.
My script has a whitelist where I can set Countries, Computer names, etc.
So, if the IP is permanently blocked, the script will unblock it.

You can do something similar.