mirror of https://github.com/fail2ban/fail2ban
`action.d/sendmail-geoip-lines.conf` fixed using new tag `<ip-host>` (dns-cache and without external command execution);
changelog updated;pull/1705/head
parent
59cf761129
commit
6a2c95da95
|
@ -17,6 +17,8 @@ TODO: implementing of options resp. other tasks from PR #1346
|
||||||
- [grave] injection on user name to host fixed
|
- [grave] injection on user name to host fixed
|
||||||
* `action.d/complain.conf`
|
* `action.d/complain.conf`
|
||||||
- fixed using new tag `<ip-rev>` (sh/dash compliant now)
|
- fixed using new tag `<ip-rev>` (sh/dash compliant now)
|
||||||
|
* `action.d/sendmail-geoip-lines.conf`
|
||||||
|
- fixed using new tag `<ip-host>` (without external command execution)
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
* New Actions:
|
* New Actions:
|
||||||
|
@ -44,7 +46,11 @@ TODO: implementing of options resp. other tasks from PR #1346
|
||||||
to re.sub with callable)
|
to re.sub with callable)
|
||||||
* substituteRecursiveTags optimization + moved in helpers facilities (because currently used
|
* substituteRecursiveTags optimization + moved in helpers facilities (because currently used
|
||||||
commonly in server and in client)
|
commonly in server and in client)
|
||||||
* Provides new tag `<ip-rev>` for PTR reversed representation of IP address
|
* New tags (usable in actions):
|
||||||
|
- `<fid>` - failure identifier (if raw resp. failures without IP address)
|
||||||
|
- `<ip-rev>` - PTR reversed representation of IP address
|
||||||
|
- `<ip-host>` - host name of the IP address
|
||||||
|
- `<F-...>` - interpolates to the corresponding filter group capture `...`
|
||||||
|
|
||||||
|
|
||||||
ver. 0.10.0-alpha-1 (2016/07/14) - ipv6-support-etc
|
ver. 0.10.0-alpha-1 (2016/07/14) - ipv6-support-etc
|
||||||
|
|
|
@ -36,7 +36,7 @@ actionban = ( printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n
|
||||||
http://whois.domaintools.com/<ip>\n\n
|
http://whois.domaintools.com/<ip>\n\n
|
||||||
Country:`geoiplookup -f /usr/share/GeoIP/GeoIP.dat "<ip>" | cut -d':' -f2-`
|
Country:`geoiplookup -f /usr/share/GeoIP/GeoIP.dat "<ip>" | cut -d':' -f2-`
|
||||||
AS:`geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "<ip>" | cut -d':' -f2-`
|
AS:`geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "<ip>" | cut -d':' -f2-`
|
||||||
hostname: `host -t A <ip> 2>&1`\n\n
|
hostname: <ip-host>\n\n
|
||||||
Lines containing failures of <ip>\n";
|
Lines containing failures of <ip>\n";
|
||||||
%(_grep_logs)s;
|
%(_grep_logs)s;
|
||||||
printf %%b "\n
|
printf %%b "\n
|
||||||
|
|
Loading…
Reference in New Issue