Skip to content

feat: switch fail2Ban banaction to ipset - #121

Merged
buildplan merged 3 commits into
mainfrom
dev
Aug 8, 2026
Merged

feat: switch fail2Ban banaction to ipset#121
buildplan merged 3 commits into
mainfrom
dev

Conversation

@buildplan

@buildplan buildplan commented Aug 8, 2026

Copy link
Copy Markdown
Owner

switch fail2Ban banaction to ipset and update UFW SSH rules to limit for improved security and performance

  • Updated the Fail2Ban installation logic to install both fail2ban and ipset dependencies.
  • Modified the Fail2Ban default configuration to use banaction = iptables-ipset-proto6-allports instead of ufw.
  • Replaced all instances of ufw allow "$SSH_PORT" with ufw limit "$SSH_PORT". This natively restricts brute-force attempts at the kernel level (max 6 connections / 30s per IP)

thanks for the suggestion @GuinnessDublin

@buildplan buildplan added the enhancement New feature or request label Aug 8, 2026
@buildplan buildplan linked an issue Aug 8, 2026 that may be closed by this pull request
Comment thread README.md Dismissed
@buildplan
buildplan merged commit 59d9618 into main Aug 8, 2026
13 checks passed
@buildplan
buildplan deleted the dev branch August 8, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail2ban change to have ipset and not only ufw?

2 participants