From 6a2c95da9542c6ad2f26eda6b1d3fd131524ec0c Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 8 Mar 2017 16:45:04 +0100 Subject: [PATCH] `action.d/sendmail-geoip-lines.conf` fixed using new tag `` (dns-cache and without external command execution); changelog updated; --- ChangeLog | 8 +++++++- config/action.d/sendmail-geoip-lines.conf | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83d61a55..d2284473 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ TODO: implementing of options resp. other tasks from PR #1346 - [grave] injection on user name to host fixed * `action.d/complain.conf` - fixed using new tag `` (sh/dash compliant now) +* `action.d/sendmail-geoip-lines.conf` + - fixed using new tag `` (without external command execution) ### New Features * New Actions: @@ -44,7 +46,11 @@ TODO: implementing of options resp. other tasks from PR #1346 to re.sub with callable) * substituteRecursiveTags optimization + moved in helpers facilities (because currently used commonly in server and in client) -* Provides new tag `` for PTR reversed representation of IP address +* New tags (usable in actions): + - `` - failure identifier (if raw resp. failures without IP address) + - `` - PTR reversed representation of IP address + - `` - host name of the IP address + - `` - interpolates to the corresponding filter group capture `...` ver. 0.10.0-alpha-1 (2016/07/14) - ipv6-support-etc diff --git a/config/action.d/sendmail-geoip-lines.conf b/config/action.d/sendmail-geoip-lines.conf index 34c3aedd..decf2c05 100644 --- a/config/action.d/sendmail-geoip-lines.conf +++ b/config/action.d/sendmail-geoip-lines.conf @@ -36,7 +36,7 @@ actionban = ( printf %%b "Subject: [Fail2Ban] : banned from `uname -n http://whois.domaintools.com/\n\n Country:`geoiplookup -f /usr/share/GeoIP/GeoIP.dat "" | cut -d':' -f2-` AS:`geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "" | cut -d':' -f2-` - hostname: `host -t A 2>&1`\n\n + hostname: \n\n Lines containing failures of \n"; %(_grep_logs)s; printf %%b "\n