this post was submitted on 21 Apr 2025
26 points (90.6% liked)

Selfhosted

46265 readers
220 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.

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.

you are viewing a single comment's thread
view the rest of the comments
[–] just_another_person@lemmy.world 6 points 3 days ago (5 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 3 days ago (4 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 3 days ago (2 children)

But what are you trying to use fail2ban for?

[–] basic_user@lemmy.world 2 points 3 days ago (1 children)

To prevent brute force login attempts into my jellyfin service.

[–] Xanza@lemm.ee 1 points 19 hours ago

These people seem...pretty stupid tbh. Maybe they don't understand what fail2ban is, or what it does, but you should absolutely use fail2ban. Security is objectively better by just having it enabled than not for any service, not just jellyfin.

load more comments (1 replies)
load more comments (1 replies)