fail2ban/config/action.d
Aaron Brice 7ae0ef2408 Fix actions in ufw.conf
On Ubuntu 15.04 the ufw action was not working.
- With empty <application>, receiving errors:

2015-04-24 16:28:35,204 fail2ban.filter         [8527]: INFO    [sshd] Found 43.255.190.157
2015-04-24 16:28:35,695 fail2ban.actions        [8527]: NOTICE  [sshd] Ban 43.255.190.157
2015-04-24 16:28:35,802 fail2ban.action         [8527]: ERROR   [ -n "" ] && app="app " -- stdout: b''
2015-04-24 16:28:35,803 fail2ban.action         [8527]: ERROR   [ -n "" ] && app="app " -- stderr: b''
2015-04-24 16:28:35,803 fail2ban.action         [8527]: ERROR   [ -n "" ] && app="app " -- returned 1

- With action = ufw[application=OpenSSH], it was silently not doing
  anything (no errors after "Ban x.x.x.x", but no IP addresses in ufw
  status).

Re-arranged the bash commands on two lines, and it works with or without
<application>.
2015-04-28 11:39:00 -07:00
..
apf.conf DOC: DEV NOTES before author names 2014-01-04 08:53:45 +11:00
badips.conf ENH: add badips action 2013-12-14 01:41:28 +00:00
badips.py ENH: check badips.com response on presence of "categories" in it 2015-02-13 08:55:35 -05:00
blocklist_de.conf Fix a few typos 2014-03-24 13:16:52 +00:00
bsd-ipfw.conf Update bsd-ipfw.conf 2015-02-08 15:55:32 +03:00
cloudflare.conf Changed to Cloudflare JSON API 2014-07-28 11:10:50 -04:00
complain.conf Fix 2 more typos that codespell didn't catch 2014-03-25 10:57:20 +00:00
dshield.conf Options in actions to be specified in jails have no "Default"s besides those specified in the files -- thus removing from comments 2013-10-14 16:29:16 -04:00
dummy.conf Use /var/run/fail2ban in config/action.d/dummy.conf 2013-08-08 20:41:44 -06:00
firewallcmd-allports.conf Update firewallcmd-allports.conf 2015-02-14 12:32:36 -05:00
firewallcmd-ipset.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
firewallcmd-multiport.conf Update firewallcmd-multiport.conf 2015-02-14 12:31:33 -05:00
firewallcmd-new.conf Use multiport for firewallcmd-new 2014-10-29 16:27:37 -06:00
hostsdeny.conf ENH: action.d/hostsdeny to take daemon_list arguement as suggested in README.Solaris 2013-07-14 16:20:21 +10:00
ipfilter.conf
ipfw.conf BF: grep matches on <ip> shouldn't include other IPs 2013-11-30 18:01:45 +11:00
iptables-allports.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-common.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-ipset-proto4.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-ipset-proto6-allports.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-ipset-proto6.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-multiport-log.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-multiport.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-new.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables-xt_recent-echo.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
iptables.conf ENH: Introduce iptables-common.conf. 2014-06-18 19:04:57 +09:00
mail-buffered.conf ENH - Added server name to subject line in email notifications 2013-09-08 15:21:58 -07:00
mail-whois-lines.conf improving grepping 2014-10-29 23:14:47 -04:00
mail-whois.conf BF: put notice in email if whois program could not provide more information. Closes gh-471 2013-12-04 22:43:06 +11:00
mail.conf ENH - Added server name to subject line in email notifications 2013-09-08 15:21:58 -07:00
mynetwatchman.conf
nsupdate.conf Changed default TTL value to 60 seconds. 2015-01-28 22:46:43 -05:00
osx-afctl.conf ENH: add action.d/osx-afctl anonymously contributed on f2b wiki 2013-08-31 10:51:04 +10:00
osx-ipfw.conf DOC: some typos, fixes from Vincent Lefevre 2014-01-06 23:38:52 -05:00
pf.conf Options in actions to be specified in jails have no "Default"s besides those specified in the files -- thus removing from comments 2013-10-14 16:29:16 -04:00
route.conf
sendmail-buffered.conf ENH - Added server name to subject line in email notifications 2013-09-08 15:21:58 -07:00
sendmail-common.conf ENH: use non-UTC date invocation (without -u) and report offset for localzone (%z) 2015-01-26 09:19:44 -05:00
sendmail-geoip-lines.conf Line notes implemented 2015-02-06 17:22:30 +01:00
sendmail-whois-ipjailmatches.conf Fixed grammatical error in emails sent 2015-02-06 11:47:03 -05:00
sendmail-whois-ipmatches.conf Fixed grammatical error in emails sent 2015-02-06 11:47:03 -05:00
sendmail-whois-lines.conf ENH: use non-UTC date invocation (without -u) and report offset for localzone (%z) 2015-01-26 09:19:44 -05:00
sendmail-whois-matches.conf Fixed grammatical error in emails sent 2015-02-06 11:47:03 -05:00
sendmail-whois.conf ENH: use non-UTC date invocation (without -u) and report offset for localzone (%z) 2015-01-26 09:19:44 -05:00
sendmail.conf ENH: use non-UTC date invocation (without -u) and report offset for localzone (%z) 2015-01-26 09:19:44 -05:00
shorewall.conf Update comments in shorewall.conf for new settings 2014-04-01 16:52:21 +01:00
smtp.py BF: aInfo could be modified by actions, causing unexpected behaviour 2014-06-17 23:24:23 +01:00
symbiosis-blacklist-allports.conf ENH: Ignore errors while unbaning in symbiosis firewall 2014-08-12 11:57:07 -04:00
ufw.conf Fix actions in ufw.conf 2015-04-28 11:39:00 -07:00
xarf-login-attack.conf ENH: use non-UTC date invocation (without -u) and report offset for localzone (%z) 2015-01-26 09:19:44 -05:00