Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fail2ban and fail2ban discord mod question

Featured Replies

Hello. I'm fairly new to unraid and containers and docker and all this, so excuse me if this is a dumb question.

 

I installed fail2ban from linuxserver.io via CA. I wanted to get discord messages when it blocked an IP, so luckily I found a fail2ban mod for just such a purpose. https://github.com/linuxserver/docker-mods/tree/swag-f2bdiscord

 

When I initially configured it like the readme says I was getting errors about it not being able to import geoip2.database. OK I thought, I don't really need a map in the discord message, so I removed the import and call to that from Fail2Ban.py, but then I got an error that it couldn't import requests. The python script imports several modules, so at this point I figured maybe I could just install the modules at runtime, but evidently pip doesn't come with the fail2ban container, so then I found https://github.com/linuxserver/docker-mods/tree/universal-package-install

 

So now I have fail2ban installing pip, which then installs the 3 modules that are needed for the discord integration to run.

image.thumb.png.53a721f56c6ace69c944a8e03b530b7b.png

 

This seems like it works. I got notified when I rebooted fail2ban that my jails had started in discord.

 

My question is, is this the way to do this? It seems really convoluted and I have to install pip anytime it restarts. I feel like there has got to be a better way.

 

I would appreciate any guidance. Thank you.

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.