From 923d2214d92bd00b8e34b84124fabf6cfb836ab9 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 18 Oct 2006 05:15:53 +0000 Subject: [PATCH] added wuftpd to both 0.6 and 0.7 --- debian/changelog | 6 ++++++ debian/jail.conf | 11 +++++++++++ debian/patches/00list | 1 + debian/patches/10_wuftpd_section.dpatch | 25 +++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100755 debian/patches/10_wuftpd_section.dpatch diff --git a/debian/changelog b/debian/changelog index 3bab7323..95550e5d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +fail2ban (0.7.3-2) experimental; urgency=low + + * Added wuftpd section + + -- Yaroslav Halchenko Wed, 18 Oct 2006 01:15:00 -0400 + fail2ban (0.7.3-1) experimental; urgency=low * New upstream release diff --git a/debian/jail.conf b/debian/jail.conf index 1e99612b..6099b895 100644 --- a/debian/jail.conf +++ b/debian/jail.conf @@ -61,6 +61,7 @@ filter = apache-auth logpath = /var/log/apache*/*access.log maxretry = 6 + # # FTP servers # @@ -82,6 +83,16 @@ filter = proftpd logpath = /var/log/proftpd/proftpd.log maxretry = 6 + +[wuftpd] + +enabled = false +port = ftp +filter = wuftpd +logpath = /var/log/auth.log +maxretry = 6 + + # # Mail servers # diff --git a/debian/patches/00list b/debian/patches/00list index 2110f79f..fb5ffc9e 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -2,4 +2,5 @@ X00_rigid_python24 X00_apache_log_failregex 10_dbts_manpages 10_proftpd_section +10_wuftpd_section 10_sasl_section diff --git a/debian/patches/10_wuftpd_section.dpatch b/debian/patches/10_wuftpd_section.dpatch new file mode 100755 index 00000000..d34f1718 --- /dev/null +++ b/debian/patches/10_wuftpd_section.dpatch @@ -0,0 +1,25 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_wuftpd_section.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad fail2ban-0.7.3~/config/filter.d/wuftpd.conf fail2ban-0.7.3/config/filter.d/wuftpd.conf +--- fail2ban-0.7.3~/config/filter.d/wuftpd.conf 1969-12-31 19:00:00.000000000 -0500 ++++ fail2ban-0.7.3/config/filter.d/wuftpd.conf 2006-10-18 01:12:23.000000000 -0400 +@@ -0,0 +1,14 @@ ++# Fail2Ban configuration file for wuftpd ++# ++# Author: Yaroslav Halchenko ++# ++# $Revision: $ ++# ++ ++[Definition] ++ ++# Option: failregex ++# Notes.: regex to match the password failures messages in the logfile. ++# Values: TEXT Default: ++# ++failregex = wu-ftpd\[\d+\]:\s+\(pam_unix\)\s+authentication failure.* rhost=(?P\S*)