Skip to content

Conversation

@goodoldme
Copy link

Use bips as it has the list of all persisted banned IPs. This should fix the incorrect count of banned IPs in the dashboard

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Update query used in swag-f2b.py to pull the ban count in the dashboard.

Benefits of this PR and context:

I believe this should fix issue #444

How Has This Been Tested?

I ran the query directly on the database directly first to ensure the results match what I see from fail2ban-client. I then updated the query in swag-f2b.py and checked the count in the dashboard.

I run swag in a docker container in a debian 13 VM

Source / References:

#444

Use bips as it has the list of all persisted banned IPs. This should fix the incorrect count of banned IPs in the dashboard

Signed-off-by: Calvin Hobbes <[email protected]>
@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_1077

Copy link
Member

@quietsy quietsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution

@github-project-automation github-project-automation bot moved this from PRs to PRs Approved in Issue & PR Tracker Nov 17, 2025
@quietsy quietsy merged commit aad7270 into linuxserver:swag-dashboard Nov 17, 2025
4 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants