TomR
Verified User
- Joined
- Jan 7, 2008
- Messages
- 51
I setup blocking BFM from DirectAmin with CSF and everything is working fine.
However I would like to see that script brute_force_notice_ip.sh only send mails when an IP is really blocked. Not if it is already blocked by CSF. This gives me a lot of mails which I am not as much interressed as in the first time an IP will be blocked.
I guess a nice solution could be to change the block_ip.sh script with some different exit codes based on the action performed. However I can not figure out how to use that exit code in brute_force_notice_ip.sh.
Another approach would be to send the mails from block_ip.sh and make brute_force_notice_ip.sh obsolete, however this seems not flexible to me.
Please your thoughts and maybe a hint how to use exit codes from block_ip.sh in brute_force_notice_ip.sh
However I would like to see that script brute_force_notice_ip.sh only send mails when an IP is really blocked. Not if it is already blocked by CSF. This gives me a lot of mails which I am not as much interressed as in the first time an IP will be blocked.
I guess a nice solution could be to change the block_ip.sh script with some different exit codes based on the action performed. However I can not figure out how to use that exit code in brute_force_notice_ip.sh.

Another approach would be to send the mails from block_ip.sh and make brute_force_notice_ip.sh obsolete, however this seems not flexible to me.

Please your thoughts and maybe a hint how to use exit codes from block_ip.sh in brute_force_notice_ip.sh