Changes of Revision 22
[-] | Changed | blocksshd.spec |
x 1
2 Patch1: blocksshd-suse-config.diff 3 Patch2: blocksshd-redhat-config.diff 4 Patch3: blocksshd-redhat-init.diff 5 +Patch4: blocksshd-regex.patch 6 7 Requires: perl >= 5, /sbin/chkconfig 8 9
10 %patch2 -p1 11 %patch3 -p1 12 %endif 13 +%patch4 14 15 %build 16 %{__make} 17
18 /sbin/chkconfig --del blocksshd 19 20 %changelog 21 +* Sun Oct 23 2011 Carsten Schoene <cs@linux-administrator.com> - 1.3-4 22 +- added blocksshd-regex.patch 23 + 24 * Fri Jan 21 2011 Carsten Schoene <cs@linux-administrator.com> - 1.3-3 25 - fix redhat init script (sysconfig startup function call) 26 27 |
||
[+] | Added | blocksshd-regex.patch ^ |
@@ -0,0 +1,10 @@ +--- blocksshd.orig 2011-10-23 09:46:17.188394796 +0200 ++++ blocksshd 2011-10-23 09:46:54.937331450 +0200 +@@ -146,6 +146,7 @@ + } + + if ( ++ /.*Authentication failure for .* from ($work->{ipv4}|$work->{fqdn})$/i || + /.*Failed (password) .* from ($work->{ipv4}|$work->{fqdn}) port [0-9]+/i || + /.*(Invalid|Illegal) user .* from ($work->{ipv4}|$work->{fqdn})$/i || + /.*Failed .* for (invalid|illegal) user * from ($work->{ipv4}|$work->{fqdn}) port [0-9]+ .*/i || | ||
[+] | Changed | blocksshd.sysconfig ^ |
@@ -1,11 +1,11 @@ # blocksshd startup & stop configuration - +# function bsshd_startup { sleep 2 iptables -N `grep chain /etc/blocksshd.conf | awk -F\' '{print $2}'` iptables -A INPUT -j `grep chain /etc/blocksshd.conf | awk -F\' '{print $2}'` } - +# function bsshd_shutdown { iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT @@ -13,15 +13,16 @@ iptables -F iptables -X } - +# # startup # e.g. iptables -A INPUT -j blocksshd # STARTCMD="bsshd_startup" - +# STARTCMD="bsshd_startup" - +# # stop # set all chains to accept, flush chains , remove extra chains # STOPCMD="bsshd_shutdown" - +# STOPCMD="bsshd_shutdown" + |