Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-public
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
system
ansible-public
Commits
790b1474
Commit
790b1474
authored
5 months ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Set fail2ban backend to nftables, Refs
#40113
parent
99d922c1
Branches
master
stable
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+7
-2
7 additions, 2 deletions
CHANGELOG.md
roles/system/fail2ban/tasks/base.yml
+3
-0
3 additions, 0 deletions
roles/system/fail2ban/tasks/base.yml
roles/system/fail2ban/templates/jail.local.j2
+4
-0
4 additions, 0 deletions
roles/system/fail2ban/templates/jail.local.j2
with
14 additions
and
2 deletions
CHANGELOG.md
+
7
−
2
View file @
790b1474
# 2024-09-19
*
Default nftables forward chain policy set to accept for netcapture hosts.
*
Change default fail2ban backend to nftables.
# 2024-08-12
*
Add HAProxy stats page listening on localhost on frontend servers for HA deployment
*
Update HAProxy maxconn value for HA deployment
*
Add HAProxy stats page listening on localhost on frontend servers for HA deployment
.
*
Update HAProxy maxconn value for HA deployment
.
# 2024-07-09
...
...
This diff is collapsed.
Click to expand it.
roles/system/fail2ban/tasks/base.yml
+
3
−
0
View file @
790b1474
...
...
@@ -9,6 +9,9 @@
content
:
|
[DEFAULT]
# Debian 12 bug:
# see: https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=1037437
# 2024-09-19 > default configuration not working
-
name
:
"
Configure
sshd
jail
backend"
notify
:
"
Restart
fail2ban"
ansible.builtin.lineinfile
:
...
...
This diff is collapsed.
Click to expand it.
roles/system/fail2ban/templates/jail.local.j2
+
4
−
0
View file @
790b1474
...
...
@@ -6,3 +6,7 @@ maxretry = {{ fail2ban_maxretry }}
destemail = {{ fail2ban_email_to }}
sender = {{ fail2ban_email_from }}
action = %({{ fail2ban_action }})s
# nftables configuration
banaction = nftables-multiport
banaction_allports = nftables-allports
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment