feat(fail2ban): add fail2ban_ignoreip to exempt trusted addresses
Write fail2ban_ignoreip as ignoreip in the [DEFAULT] section of jail.local, so it applies to every jail, the service jails in jail.d included. The default is Fail2Ban's own (127.0.0.1/8 and ::1). Entries are validated (no whitespace, \Z-anchored) because they are joined into one line. The first run after upgrading adds the [DEFAULT] section and restarts Fail2Ban once. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q72rsMCgwaR1sbYZangwbp
This commit is contained in:
1 parent
263d892634
commit
57b15df1ac
8 files changed
+97
-2
No files matched your search
@@ -15,6 +15,13 @@ fail2ban_jails:
|
||||
bantime: "1h"
|
||||
findtime: "10m"
|
||||
|
||||
# Addresses, networks or hostnames that are never banned, on every jail (the [DEFAULT] section of jail.local covers the
|
||||
# jails of fail2ban_jails and the service jails in jail.d). The default is fail2ban's own. Add the machine that runs
|
||||
# Ansible, or a CI runner, so a mistyped key cannot lock automation out. An empty list exempts nothing, loopback included.
|
||||
fail2ban_ignoreip:
|
||||
- 127.0.0.1/8
|
||||
- "::1"
|
||||
|
||||
fail2ban_service:
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
Reference in new issue
Block a user