fail2ban rules AFTER others rules set to apache2 Ubuntu 16.04

Discussion in 'Server Operation' started by conny2540, Mar 6, 2019.

  1. conny2540

    conny2540 Member

    I'm having a problem. I've set some hardening rules before I've installed UFW and fail2ban on Ubuntu 16.04./ISPconfig 3.1.
    For ex. I added a blacklist-ip-file to /etc/apache2/conf-available. What happens is that fail2ban is ignoring this file and the rules are added to AFTER instead of BEFORE. How can I tell, i.e. include my apache rules into fail2ban AND THIS BEFORE the rules of ufw and fail2ban. Now I'm having some rules in double and not really applying by the way it was meant before I installed fail2ban and ufw. Is there a way to set push apache rules at place 1, push UFW rules at place 2 and than push fail2ban rules at the end ?

Share This Page