Hi
I tried to wrong credentials to some of the app having Fail2ban from an IPv6. Surprisingly Fail2ban did not banned the IP version 6. On IPv4 it works well.
Someone else tried this? If its IPv6 is getting bypassed then there is a big security risk.
I am testing fail2ban 0.10.2 from testing branch on one of my server. Its working well for ipv6 and ipv4 .
fail2ban (0.10.2-1) unstable; urgency=medium This version is a major development leap forward to provide IPv6 support, which also required extensions to the configuration system. That is why it is not unlikely that configuration left from the previous version(s) would either not work or would not work as intended. You are advised to accept new configuration and adjust it for your customizations (if any). See changelog.Debian.gz for more information. – Yaroslav Halchenko <debian@onerussian.com> Sun, 21 Jan 2018 22:25:26 -0500
If you want, you can write a tutorial how to backport fail2ban on debian stretch. And if you have a good motivation, you can also work on the new fail2ban config for Yunohost. It will be really useful for the migration to buster
I am still testing it and will continue for few days, till I am absolutely sure its working.
The $ iptabes -L --line-numbers don’t show all the fail2ban services but they are working. Someone can tell where the iptables rules are setup on startup of the server?
Till Yunohost don’t migrate to buster here is a way to update Fail2ban to version 0.10.xx.
Please do it at your own risk this can break Yunohost.
Update your system$ apt-get update && apt-get upgrade
Create a file debian-testing.list in /etc/apt/sources.list.d/
Put the lines in it:
deb http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free
Create a file preferences in /etc/apt/ and put these lines in it:
Explanation: Uninstall or do not install any Debian-originated
Explanation: package versions other than those in the stable distro
Package: *
Pin: release a=stable
Pin-Priority: 900
Check if the system is not using testing sources $ apt-get update && apt-get upgrade Warning:There should be no package to upgrade, if it shows lot of packages to be updated, stop here some thing did not worked out. Undo changes done in step 3 and 4