From 59a4682f811584a36a1b745347a13fc136969ad6 Mon Sep 17 00:00:00 2001
From: fantu <fantu@ispconfig3>
Date: Sat, 28 May 2011 13:58:54 +0000
Subject: [PATCH] Add detail about fail2ban working also with ipv6

---
 docs/INSTALL_DEBIAN_6.0_courier_mydns.txt | 12 ++++++++++++
 docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt  | 11 +++++++++++
 2 files changed, 23 insertions(+)

diff --git a/docs/INSTALL_DEBIAN_6.0_courier_mydns.txt b/docs/INSTALL_DEBIAN_6.0_courier_mydns.txt
index 7816eadd73..31083a959c 100644
--- a/docs/INSTALL_DEBIAN_6.0_courier_mydns.txt
+++ b/docs/INSTALL_DEBIAN_6.0_courier_mydns.txt
@@ -380,6 +380,18 @@ then pureftpd is not able to resolve the hostname. Name resolving can be disable
 echo 'yes' > /etc/pure-ftpd/conf/DontResolve
 /etc/init.d/pure-ftpd-mysql restart
 
+-----------------------------------------------------------------------------------------------------------
+Fail2ban also working with ipv6:
+# Download here and install the package: http://homes.dcc.ufba.br/~rogeriobastos/files/fail2ban/
+# Set banaction = route in jail.conf
+# Create or modify route.conf in /etc/fail2ban/action.d
+[Definition]
+actionban = ip route add unreachable <ip>
+actionunban = ip route del unreachable <ip>
+action6ban = ip route add unreachable <ip>
+action6unban = ip route del unreachable <ip>
+-----------------------------------------------------------------------------------------------------------
+
 
 
 
diff --git a/docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt b/docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt
index 263d4c841b..3fbdffe01d 100644
--- a/docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt
+++ b/docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt
@@ -262,6 +262,17 @@ echo 'yes' > /etc/pure-ftpd/conf/DontResolve
 /etc/init.d/pure-ftpd-mysql restart
 
 
+-----------------------------------------------------------------------------------------------------------
+Fail2ban also working with ipv6:
+# Download here and install the package: http://homes.dcc.ufba.br/~rogeriobastos/files/fail2ban/
+# Set banaction = route in jail.conf
+# Create or modify route.conf in /etc/fail2ban/action.d
+[Definition]
+actionban = ip route add unreachable <ip>
+actionunban = ip route del unreachable <ip>
+action6ban = ip route add unreachable <ip>
+action6unban = ip route del unreachable <ip>
+-----------------------------------------------------------------------------------------------------------
 
 
 
-- 
GitLab