瀏覽代碼

Only ban in response to fail2ban results

Don't mail them individually to the destemail. The destemail setting is thus no
longer used, but let's set it anyway to be clear where it will mail if you
change the action back.
Mark Paschal 11 年之前
父節點
當前提交
10aff54015
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      roles/common/templates/etc_fail2ban_jail.local.j2

+ 1
- 1
roles/common/templates/etc_fail2ban_jail.local.j2 查看文件

@@ -3,7 +3,7 @@ ignoreip  = 127.0.0.1 {{ ansible_default_ipv4.address }} {{ ' '.join(friendly_ne
3 3
 bantime   = 86400
4 4
 destemail = {{ admin_email }}
5 5
 banaction = iptables-multiport
6
-action    = %(action_mwl)s
6
+action    = %(action_)s
7 7
 
8 8
 # JAILS
9 9
 [ssh]

Loading…
取消
儲存