BFM + autoblock on CentOS 7

nostech

Verified User
Joined
Jun 5, 2009
Messages
37
Hello,

I have currently DA running on the new CentOS version 7. All is working (exept for managing the services from within DA), but my problem is I can't get the IP auto block function running in the brute force monitor.
So maybe someone has an updated version of the scripts that are explained on http://help.directadmin.com/item.php?id=380 ?
I think the main issue is that the script /etc/init.d/iptables isn't being triggered (correctly). I've added a tocuh command in that script and the file wasn't created neither.
I've been trying to figure it out why IP's don't get blocked by the script, but couldn't find it. Maybe the rules aren't saved before restarting, since it's now done via /usr/libexec/iptables/iptables.init save (althoug enabling this option in the iptables-config, didn't do the trick neither). And the restarting should be done via systemctl restart iptables.service... I tried adapting the script to have it working, but I must be overlooking something I guess. The sh-file for showing the rules iptables -nL, is working.

Thanks in advance.
 
Last edited:
I have successfully made the switch to iptables, but it's the new way of restarting services, saving rules, etc (since CentOS 7), that makes the script unuseful I guess. Manually adding rules (from shell) to iptables is working (so iptables itself is fine), but I guess the script http://files.directadmin.com/services/all/iptables needs some changes... to be compatible?
 
Back
Top