this post was submitted on 21 Apr 2025
-1 points (0.0% liked)

Selfhosted

54480 readers
665 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi,

I've been trying to set up fail2ban for jellyfin both running in docker from compose and I'm doing something wrong.

Can someone tell me what path in the docker compose file you use for jellyfin logs and what path you use in the jail.d and the filter in filter.d?

Thanks

PS. Sorry for low detail, but I'm on phone and don't have my current conf readily available. Will provide if necessary.

top 6 comments
sorted by: hot top controversial new old
[–] MaggiWuerze@feddit.org 0 points 8 months ago* (last edited 8 months ago) (1 children)

If you plan to use fail2ban, I assume you want to make your Jellyfin accessible from the public internet. Please be aware, that large parts of the Jellyfin Backend are not properly authenticated and allow unauthorized, potential mapping of your library and even unauthorized streams.

https://github.com/jellyfin/jellyfin/issues/5415

[–] basic_user@lemmy.world -1 points 8 months ago

Thank you. I did see this list before. My jellyfin instance is not exposed to the net atm., but I'm thinking of exposing it in intervals and would like to have fail2ban working when/if I do.

[–] just_another_person@lemmy.world 0 points 8 months ago (1 children)

Why? Fail2ban is best placed on the host closest to a network entrypoint. Unless you're intentionally avoiding a bridged network, this isn't going to do much for your security unless the containers are directly addressed by an attached interface and an open service.

I won't go into a whole diatribe, but you should be running containers as single-process instances of applications. You only cause issues by cramming other process to run inside a container.

What are you using it to block, exactly?

[–] basic_user@lemmy.world -1 points 8 months ago (1 children)

Oh I can see how my title could be misunderstood - what I meant is that both jellyfin and fail2ban are running in (separate) docker containers. Not both services crammed.into one.

[–] just_another_person@lemmy.world 0 points 8 months ago (1 children)

But what are you trying to use fail2ban for?

[–] basic_user@lemmy.world -1 points 8 months ago

To prevent brute force login attempts into my jellyfin service.