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

Selfhosted

62256 readers
564 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 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
[–] MaggiWuerze@feddit.org 30 points 1 year ago* (last edited 1 year ago) (5 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

[–] CompactFlax@discuss.tchncs.de 9 points 1 year ago

Thanks for sharing; I was unaware. Just closed off that network hole.

[–] basic_user@lemmy.world 4 points 1 year ago (1 children)

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.

[–] MaggiWuerze@feddit.org 2 points 1 year ago

I'm just not sure if fail2ban can mitigate the unaouthorized api access or other issues

[–] Zeoic@lemmy.world 3 points 1 year ago (1 children)

Wow, I tested out jellyfin every 6 months for the last few years to see if it was ready to replace plex yet, and I had no idea about such huge security issues. There should really be a big ass warning about making jellyfin publicly accessible in the app and in setup guides..

[–] MaggiWuerze@feddit.org 5 points 1 year ago* (last edited 1 year ago)

The main issue for me is the way they react to it. Not only is there no warning about this, but they also refuse to fix it because it would break client support and they prefer backwards compatibility over security

[–] Vendetta9076@sh.itjust.works 2 points 1 year ago (1 children)

Would putting jellyfin behind authentik or googleSSO protect me? Trying to figure out how to replace plex for my extended family since theyre charging for external connections now

[–] Appoxo@lemmy.dbzer0.com 3 points 1 year ago (1 children)

Just be aware that putting Jellyfin behind a Reverse Proxy that redirects to external auth services, breaks client support that is not in a browser.
Thus you either white-/blacklist specific server access paths or set up accounts that may relay the loging credentials.
Maybe something like LDAP may work but I can't say how well it works as I havent used that.

[–] _cryptagion@lemmy.dbzer0.com 1 points 1 year ago

It works as advertised.

[–] N0x0n@lemmy.ml -1 points 1 year ago (1 children)

The solution here is to use a wireguard (or similar technology) server and use it on all your devices. People already use VPNs for everything, so adding this layer isn't that much of a hassle !

[–] MaggiWuerze@feddit.org 3 points 1 year ago

That depends entirely on your target audience as well as the devices you want to use it on. Smart TVs don't really support VPNs and my parents would not know how to even activate that let alone set it up on their end. I have a lot of non tech savvy users, so Plex is just way more convenient and accessible.