[FEAT] Swag-dashboard Fail2ban return current not total bans
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend
Research direction
Start by locating the Swag-Dashboard code that builds the Fail2ban table and API response. Check how it distinguishes active bans from expired bans; the issue names no files or tests, so first trace the dashboard and API entry points. Done means the dashboard reports currently banned IPs, with the API returning that count or exposing a separate current-bans value.
Written by the indexing model from the issue text.
Description
Is this a new feature request?
- I have searched the existing issues
Name of mod
Swag-Dashboard
Wanted change
Have the dashboard, and API, return only currently banned IPs in the Fail2ban table instead of total bans (including expired bans). Alternatively, add a separate column and ability for the API to only return current bans.
Reason for change
The SWAG Dashboard's banned statistic can include IP addresses that were previously banned but are no longer actively banned. As a result, the dashboard can display a higher ban count than the number of IP addresses currently blocked by Fail2ban. This makes looking at the dashboard to assess whether any action is needed to potentially unban IPs inefficient and confusing.
Proposed code change
No response
- Dominant language
- No language data
- Stars
- 1.6k
- Forks
- 330
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxserver/docker-mods
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
linuxserver/docker-mods#1172 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
linuxserver/docker-mods#1175 · 4 comments ·
All issues in linuxserver/docker-mods
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
integration: ring
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
home-assistant/core#195897 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 14 days
-
review-panel severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kristovatlas/coin-accounting#576 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day