[-]
[+]
|
Changed |
blocksshd.spec
|
|
[-]
[+]
|
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"
+
|