Page 1 of 1

ubuntu update fail2ban

Posted: Mon Jul 22, 2019 11:47 am
by Stevyn
find new release:
https://github.com/fail2ban/fail2ban/releases

https://github.com/fail2ban/fail2ban/issues/2308

billynoah commented on May 11:

Code: Select all

# REMOVE FAIL2BAN COMPLETELY AND BACKUP EXISTING INSTALL
service fail2ban stop
cp -a /etc/fail2ban/ /etc/fail2ban_backup/
apt-get remove --auto-remove fail2ban
apt-get purge --auto-remove fail2ban
rm -r /etc/fail2ban/

# DOWNLOAD NEWER RELEASE AND INSTALL MANUALLY
wget https://github.com/fail2ban/fail2ban/archive/0.10.4.tar.gz
tar xzf 0.10.4.tar.gz
cd fail2ban-0.10.4/
python setup.py install

# PUT UBUNTU SPECIFIC FILES INTO PLACE
cp files/bash-completion /etc/bash_completion.d/fail2ban
cp man/*.5 /usr/share/man/man5
cp man/*.1 /usr/share/man/man1
wget -O /etc/logrotate.d/fail2ban https://raw.githubusercontent.com/fail2ban/fail2ban/debian/debian/fail2ban.logrotate
cp build/fail2ban.service /lib/systemd/system/fail2ban.service
systemctl enable fail2ban
service rsyslog restart
service fail2ban start
service fail2ban status
Now enable some jails or copy rules from your old jail.local or jail.conf files and you should be in business.