[FEAT] Swag-dashboard Fail2ban return current not total bans

Offen
#1,170 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement
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

Vorherrschende Sprache
Keine Sprachdaten
Sterne
1.5k
Forks
330
Ø Merge
1 Std. 11 Min.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus linuxserver/docker-mods

Alle Issues in linuxserver/docker-mods

Ähnliche Issues

Weitere Issues zu Backend & API Design

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.