Add ban feature to fail2ban script#2538
Merged
casperklein merged 20 commits intodocker-mailserver:masterfrom Apr 19, 2022
Merged
Add ban feature to fail2ban script#2538casperklein merged 20 commits intodocker-mailserver:masterfrom
casperklein merged 20 commits intodocker-mailserver:masterfrom
Conversation
Member
|
I assigned |
Member
georglauterbach
left a comment
There was a problem hiding this comment.
Looks good all in all. I'd just like to discuss the `__usage´ section.
polarathene
requested changes
Apr 17, 2022
polarathene
approved these changes
Apr 18, 2022
georglauterbach
approved these changes
Apr 19, 2022
Contributor
|
Documentation preview for this PR is ready! 🎉 Built with commit: 8bcdbd6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new "ban" option to the fail2ban script. This allows to easily block custom IPs with fail2ban:
./setup.sh failban ban <IP>The default bantime is 180 days, but can be adjusted easily like other fail2ban settings.
setup.sh: fail2ban was moved from the "debug" section to it's own fail2ban section:setup.sh debug fail2ban-->setup.sh fail2banWhile adding the necessary changes to
config-examples/fail2ban-jail.cf, I've also synced all values there, with our default settings.A new fail2ban test was added and the existing ones were improved.
Type of change
Checklist:
docs/)