athimm 18 years ago
parent 959d57f14c
commit 2d07810e66

@ -1 +1,2 @@
fail2ban-0.8.0.tar.bz2
fail2ban-logrotate

@ -9,7 +9,9 @@
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
mail-whois[name=SSH, dest=yourmail@mail.com]
- mail-whois[name=SSH, dest=yourmail@mail.com]
-logpath = /var/log/sshd.log
+ mail-whois[name=SSH, dest=root]
+logpath = /var/log/secure
maxretry = 5

@ -3,11 +3,12 @@
Summary: Ban IPs that make too many password failures
Name: fail2ban
Version: 0.8.0
Release: 4%{?dist}
Release: 5%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://fail2ban.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: fail2ban-logrotate
Patch0: fail2ban-0.8.0-init.patch
Patch1: fail2ban-0.8.0-sshd.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -38,7 +39,8 @@ mkdir -p %{buildroot}%{_initdir}
install -p -m 755 files/redhat-initd %{buildroot}%{_initdir}/fail2ban
mkdir -p %{buildroot}%{_mandir}/man1
install -p -m 644 man/fail2ban*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/fail2ban
%clean
rm -rf %{buildroot}
@ -68,8 +70,13 @@ fi
%config(noreplace) %{_sysconfdir}/fail2ban/jail.conf
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/*.conf
%config(noreplace) %{_sysconfdir}/fail2ban/filter.d/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban
%changelog
* Wed May 23 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-5
- send mail to root; logrotate (Jonathan Underwood
<jonathan.underwood@gmail.com>)
* Sat May 19 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-4
- Update to 0.8.0.
- enable ssh by default, fix log file for ssh scanning, adjust python

@ -1 +1,2 @@
7988a65a978bc5c44a92aaf1dbdebcba fail2ban-0.8.0.tar.bz2
b5dd7b5c95dcdbf1089f5c7d2641add9 fail2ban-logrotate

Loading…
Cancel
Save