my block list.
I *like* OSSEC's active response, and the result of it is used to
detect if I want/need to add ranges to my list.
I used to only
update my iptables control file and I noted that adding IP's to its
deny did not "stick".
Then I followed OSSEC's active response and found that it
uses /etc/hosts.deny, so I thought to move all blocks from iptables
to /etc/hosts.deny only to discover that hosts.deny is overwritten
instead of appended to and restored afterwards. So now I have - as temp
solution - a cronjob that does
1,6,11,16,21,26,31,36,41,46,51,56 * * * * grep -q ALL:103.41.124. /etc/hosts.deny || cat /etc/hosts.deny.ok >> /etc/hosts.deny