How to auto unban/release IPs in csf.deny

Post Reply
killed
Junior Member
Posts: 1
Joined: 08 Nov 2022, 09:53

How to auto unban/release IPs in csf.deny

Post 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!
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

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

Post 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.
Post Reply