mirror of
https://github.com/buildplan/du_setup.git
synced 2026-04-26 10:35:51 +03:00
[GH-ISSUE #78] feat: auto-whitelist SSH IP in Fail2Ban and deduplicate entries #3
Labels
No labels
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/du_setup#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kuuchuu on GitHub (Nov 19, 2025).
Original GitHub issue: https://github.com/buildplan/du_setup/issues/78
When setting up Fail2Ban, users connecting via SSH risk accidentally locking themselves out if their IP is not on the
ignoreiplist. Automating the addition of the user's SSH IP to theignoreiplist can help eliminate this possibility while also reducing potential lockout due to a misconfiguration/typo.Additionally, if IPs are added manually, the
ignoreiplist can accumulate duplicate entries, making the configuration cluttered and potentially harder to manage.I propose two enhancements to the Fail2Ban setup process:
$SSH_CONNECTIONvariable).ignoreiplist. This provides a convenient way to prevent accidental lockouts.ignoreipList Deduplication:ignoreiplist is always clean.