|
|
|
@ -4,18 +4,16 @@
|
|
|
|
|
Summary: Ban IPs that make too many password failures
|
|
|
|
|
Name: fail2ban
|
|
|
|
|
Version: 0.8.3
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Release: 22%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
|
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
#Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source0: http://www.fail2ban.org/nightly/fail2ban-FAIL2BAN-0_8.tar.bz2
|
|
|
|
|
Source1: fail2ban-logrotate
|
|
|
|
|
Patch0: fail2ban-0.8.3-init.patch
|
|
|
|
|
Patch1: fail2ban-0.8.1-sshd.patch
|
|
|
|
|
#Patch2: fail2ban-0.8.1-sock.patch
|
|
|
|
|
Patch3: fail2ban-0.8.2-fd_cloexec.patch
|
|
|
|
|
Patch4: 0001-BF-anchoring-regex-for-IP-with-at-the-end.patch
|
|
|
|
|
Patch5: fail2ban-0.8.3-inodecheck.patch
|
|
|
|
|
Patch6: fail2ban-0.8.3-log2syslog.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
BuildRequires: python-devel >= 2.3
|
|
|
|
@ -31,13 +29,10 @@ Fail2ban scans log files like /var/log/pwdfail or
|
|
|
|
|
failures. It updates firewall rules to reject the IP address.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -n %{name}-%{version}-SVN
|
|
|
|
|
%patch0 -p1 -b .init
|
|
|
|
|
%patch1 -p1 -b .sshd
|
|
|
|
|
#patch2 -p1 -b .sock
|
|
|
|
|
%patch3 -p1 -b .fd_cloexec
|
|
|
|
|
%patch4 -p1 -b .CVE-2009-0362
|
|
|
|
|
%patch5 -p1 -b .inodecheck
|
|
|
|
|
%patch6 -p1 -b .log2syslog
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -88,6 +83,9 @@ fi
|
|
|
|
|
%dir %{_localstatedir}/run/fail2ban
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 2 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.3-22
|
|
|
|
|
- Update to a newer svn snapshot to fix python 2.6 issue.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 27 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.3-21
|
|
|
|
|
- Log to syslog (RH bug #491983). Also deals with RH bug #515116.
|
|
|
|
|
- Check inodes of log files (RH bug #503852).
|
|
|
|
|