From: <abe...@us...> - 2013-08-22 19:46:39
|
Revision: 6176 http://sourceforge.net/p/astlinux/code/6176 Author: abelbeck Date: 2013-08-22 19:46:33 +0000 (Thu, 22 Aug 2013) Log Message: ----------- arnofw, Adaptive Ban plugin, add support for 'prosody' and remove old 'mini_httpd' support Modified Paths: -------------- branches/1.0/package/arnofw/adaptive-ban/95adaptive-ban.plugin.sh branches/1.0/package/arnofw/adaptive-ban/adaptive-ban-helper.sh branches/1.0/package/arnofw/adaptive-ban/adaptive-ban.conf branches/1.0/package/arnofw/arnofw.serial Modified: branches/1.0/package/arnofw/adaptive-ban/95adaptive-ban.plugin.sh =================================================================== --- branches/1.0/package/arnofw/adaptive-ban/95adaptive-ban.plugin.sh 2013-08-22 19:00:25 UTC (rev 6175) +++ branches/1.0/package/arnofw/adaptive-ban/95adaptive-ban.plugin.sh 2013-08-22 19:46:33 UTC (rev 6176) @@ -2,10 +2,10 @@ # -= Arno's iptables firewall - Adaptive Ban plugin =- # PLUGIN_NAME="Adaptive Ban plugin" -PLUGIN_VERSION="1.06" +PLUGIN_VERSION="1.07" PLUGIN_CONF_FILE="adaptive-ban.conf" # -# Last changed : July 19, 2013 +# Last changed : August 22, 2013 # Requirements : AIF 2.0.0+ # Comments : Parse a log file for failed access with offending IP addresses # Ban the IP address after multiple failed attempts Modified: branches/1.0/package/arnofw/adaptive-ban/adaptive-ban-helper.sh =================================================================== --- branches/1.0/package/arnofw/adaptive-ban/adaptive-ban-helper.sh 2013-08-22 19:00:25 UTC (rev 6175) +++ branches/1.0/package/arnofw/adaptive-ban/adaptive-ban-helper.sh 2013-08-22 19:46:33 UTC (rev 6176) @@ -134,7 +134,7 @@ ;; lighttpd) filter_lighttpd "$file" "$PREFIX" "$HOST" ;; - mini_httpd) filter_mini_httpd "$file" "$PREFIX" "$HOST" + prosody) filter_prosody "$file" "$PREFIX" "$HOST" ;; pptpd) filter_pptpd "$file" "$PREFIX" "$HOST" ;; @@ -185,11 +185,11 @@ "$file" >"$TEMPFILE" } -filter_mini_httpd() +filter_prosody() { local file="$1" PREFIX="$2" HOST="$3" - sed -n -r -e "s/^${PREFIX}${HOST} authentication failure - access denied$/\1/p" \ + sed -n -r -e "s/^${PREFIX}.* Failed authentication attempt \(.*\) from IP: ${HOST}[[:space:]]*$/\1/p" \ "$file" >"$TEMPFILE" } Modified: branches/1.0/package/arnofw/adaptive-ban/adaptive-ban.conf =================================================================== --- branches/1.0/package/arnofw/adaptive-ban/adaptive-ban.conf 2013-08-22 19:00:25 UTC (rev 6175) +++ branches/1.0/package/arnofw/adaptive-ban/adaptive-ban.conf 2013-08-22 19:46:33 UTC (rev 6176) @@ -19,7 +19,7 @@ ADAPTIVE_BAN_COUNT=6 # A list of analysis types that are applied -# Choose from: sshd asterisk lighttpd mini_httpd pptpd +# Choose from: sshd asterisk lighttpd prosody pptpd # ------------------------------------------------------------------------------ ADAPTIVE_BAN_TYPES="sshd asterisk" Modified: branches/1.0/package/arnofw/arnofw.serial =================================================================== --- branches/1.0/package/arnofw/arnofw.serial 2013-08-22 19:00:25 UTC (rev 6175) +++ branches/1.0/package/arnofw/arnofw.serial 2013-08-22 19:46:33 UTC (rev 6176) @@ -1 +1 @@ -0002~0020~0000~0000~0000~ +0002~0021~0000~0000~0000~ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |