Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
fail2ban
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
webarch
fail2ban
Commits
6cc90d3c
Verified
Commit
6cc90d3c
authored
1 year ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Don't install iptables and nftables by default
parent
dc5e5902
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#29388
passed
1 year ago
Stage: bookworm
Stage: jammy
Stage: trixie
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-5
3 additions, 5 deletions
README.md
defaults/main.yml
+5
-4
5 additions, 4 deletions
defaults/main.yml
molecule/default/converge.yml
+1
-0
1 addition, 0 deletions
molecule/default/converge.yml
with
9 additions
and
9 deletions
README.md
+
3
−
5
View file @
6cc90d3c
...
...
@@ -6,7 +6,9 @@ This repository contains an Ansible role for installing [Fail2ban](https://fail2
## Usage
By default this role installs
`fail2ban`
and
`iptables`
and creates a
`/etc/fail2ban/jail.local`
file.
By default this role installs
`fail2ban`
and creates a
`/etc/fail2ban/jail.local`
file.
You might want to install
`iptables`
,
`nftables`
or
`ufw`
prious to running this role.
The
[
alternatives role
](
https://git.coop/webarch/alternatives
)
can be used to set the priority for
`iptables`
or these commands can be run manually:
...
...
@@ -86,7 +88,3 @@ If you use this role please use a tagged release, see [the release notes](https:
Copyright 2019-2023 Chris Croome,
<
[chris@webarchitects.co.uk](mailto:chris@webarchitects.co.uk)
>
.
This role is released under
[
the same terms as Ansible itself
](
https://github.com/ansible/ansible/blob/devel/COPYING
)
, the
[
GNU GPLv3
](
LICENSE
)
.
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
5
−
4
View file @
6cc90d3c
...
...
@@ -27,11 +27,12 @@ fail2ban_config_files:
bantime
:
86400
fail2ban_pkgs
:
-
fail2ban
-
iptables
-
iptables-persistent
-
netfilter-persistent
-
nftables
#
- iptables
#
- iptables-persistent
#
- netfilter-persistent
#
- nftables
-
python3-pyinotify
# - ufw
-
whois
fail2ban_whitelist
:
-
"
127.0.0.1"
...
...
This diff is collapsed.
Click to expand it.
molecule/default/converge.yml
+
1
−
0
View file @
6cc90d3c
...
...
@@ -37,6 +37,7 @@
fail2ban
:
true
fail2ban_pkgs
:
-
fail2ban
-
python3-pyinotify
-
ufw
-
whois
...
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