This is an old revision of the document!


Fail2ban

ban hosts that cause multiple authentication errors

Installation from git

  1. clone repository
    git clone https://github.com/fail2ban/fail2ban.git
  2. change directory and install the app
    cd fail2ban
    python setup.py install
  3. copy config files
    cp config/* /etc/fail2ban/
  4. print iptables version
    iptables --version
  5. if iptables version >1.4.20 edit the /etc/fail2ban/action.d/iptables-common.conf and set locking opt to empty string:
    lockingopt =
  6. create startup script and start the service
    cp files/debian-initd /etc/init.d/fail2ban
    update-rc.d fail2ban defaults
    service fail2ban start
  • NOTE: installation script registers the app to python package system so uninstall is as easy as
    pip uninstall fail2ban
 
linux/fail2ban.1447083729.txt.gz · Last modified: 2015/11/09 16:42 by vondra