Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
0dc08f3b
Commit
0dc08f3b
authored
Nov 09, 2019
by
Phillip Smith (fukawi2)
Browse files
fail2ban: add inventory hosts to ignoreip (whitelist)
parent
6f4ba5b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/fail2ban/templates/jail.local.j2
View file @
0dc08f3b
...
...
@@ -28,3 +28,11 @@ sender = fail2ban@{{ansible_fqdn}}
# fail2ban-client set unban --all
# see `fail2ban-client help` for full list of runtime commands
banaction = firewallcmd-allports
# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
# will not ban a host which matches an address in this list. Several addresses
# can be defined using space (and/or comma) separator.
ignoreip = 127.0.0.1/8 ::1
{% for host in groups['all'] %}
{{ hostvars[host]['inventory_hostname'] }}
{% endfor %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment