Skip to content

Fail2ban support#2019

Open
raccettura wants to merge 1 commit into
henrygd:mainfrom
raccettura:main
Open

Fail2ban support#2019
raccettura wants to merge 1 commit into
henrygd:mainfrom
raccettura:main

Conversation

@raccettura
Copy link
Copy Markdown
Contributor

📃 Description

I had a desire to see graphs on some servers for fail2ban by jail, so added support.

I wanted this to work without sudo, which fail2ban-client requires, so it's setup to read off the sqlite3 DB fail2ban uses.

Note: This is AI generated based on my specs, reviewed by me for general correctness, but I'm not a go developer by trade. This was to scratch a specific itch I had and creating a PR in case it's helpful for anyone else.

📖 Documentation

    beszel-agent:
      image: beszel-agent:local
      container_name: beszel-agent
      restart: unless-stopped
      ports:
        - "45876:45876"
      volumes:
        - /var/lib/fail2ban/fail2ban.sqlite3:/var/lib/fail2ban/fail2ban.sqlite3:ro
        - agent-data:/var/lib/beszel-agent
      environment:
        PORT: 45876
        KEY: 'KEY HERE'
#        FAIL2BAN_DB: /var/lib/fail2ban/fail2ban.sqlite3

📷 Screenshots

image

@raccettura raccettura requested a review from henrygd as a code owner May 18, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant