Suggestion: Run a custom script after ban and unban
Posted: 13 Feb 2013, 09:35
Hello,
I'm using CSF generic on Gentoo.
I have a feature suggestion: Run a script whenever an IP is banned or unbanned. It would run on any kind of ban/unban: auto or manual and perm or temp.
It would pass similar arguments as BLOCK_REPORT to the custom script.
Currently I am using BLOCK_REPORT to run a script that talks to the CloudFlare API when an IP is auto-banned, and using bash aliases to run the script when I need to manual ban.. But I dont have a way to automatically unban from CloudFlare when the tempban expires.
Thanks
I'm using CSF generic on Gentoo.
I have a feature suggestion: Run a script whenever an IP is banned or unbanned. It would run on any kind of ban/unban: auto or manual and perm or temp.
It would pass similar arguments as BLOCK_REPORT to the custom script.
Currently I am using BLOCK_REPORT to run a script that talks to the CloudFlare API when an IP is auto-banned, and using bash aliases to run the script when I need to manual ban.. But I dont have a way to automatically unban from CloudFlare when the tempban expires.
Thanks