86
Sharing Jellyfin (poptalk.scrubbles.tech)

Hi folks. So, I know due to a myriad of reasons I should not allow Jellyfin access to the open internet. However, in trying to switch family over from Plex, I'll need something that "just works".

How are people solving this problem? I've thought about a few solutions, like whitelisting ips (which can change of course), or setting up VPN or tail scale (but then that is more work than they will be willing to do on their side). I can even add some level of auth into my reverse proxy, but that would break Jellyfin clients.

Wondering what others have thought about for this problem

you are viewing a single comment's thread
view the rest of the comments

Now that's interesting, what is the purpose of the reverse proxy, don't you still need something exposed then?

[-] synestine@sh.itjust.works 5 points 1 year ago

The reverse proxy is the part that's exposed. CrowdSec watches the logs for intrusion attempts like fail2ban would.

[-] airgapped@piefed.social 3 points 1 year ago

A reverse proxy saves you from having to expose your services directly and acts as a go-between.

Internet <--> Reverse Proxy <--> Service

Right, but what exactly does the reverse proxy do to stop intrusion?

[-] Codilingus@sh.itjust.works 2 points 1 year ago

Think of it as more modular.

I personally used Traefik, but only because I'm a masochist and it would be useful to know in IT workplace.

Traefik + CrowdSec + CowdSec Traefik Bouncer.

Traefik handles the traffic, and said traffic has to get a green light from CrowdSec + Bouncer before it can go anywhere.

The concept of CrowdSec is honestly super awesome.

[-] possiblylinux127@lemmy.zip 2 points 1 year ago

Is Taefik really that good? It seems crazy complex

[-] Codilingus@sh.itjust.works 2 points 1 year ago

It's designed to scale. Plus it's nifty to be able to add ~3 tags to a docker container and then it's instantly online and ready to be used.

[-] Jakeroxs@sh.itjust.works 2 points 1 year ago

Crowdsec is what stops the intrusion.

[-] possiblylinux127@lemmy.zip 2 points 1 year ago

Crowdsec won't protect against a security vulnerability

[-] Jakeroxs@sh.itjust.works 1 points 1 year ago

It will if it detects the requests and blocks them

[-] possiblylinux127@lemmy.zip 1 points 1 year ago

Only if it is from a known bad IP

Also the vulnerability may be in something needed for client functionality.

[-] possiblylinux127@lemmy.zip 1 points 1 year ago

It protects against vulnerabilities in layer 3 of the OSI model. It is the thing that gets hit from the outside while the back end is hidden away. This makes some attacks much harder.

[-] greyfox@lemmy.world 1 points 1 year ago

Depending on how you setup your reverse proxy it can reduce random scanning/login attempts to basically zero. The point of a reverse proxy is to act as a proxy, as a sort of web router, and to validate that the http requests are correctly formatted.

For the routing depending on what DNS name/path the request comes in with it can route to different backends. So you can say that app1.yourdomain.com is routed to the internal IP address of your app1, and app2.yourdomain.com goes to app2. You can also do this with paths if the applications can handle it. Like yourdomain.com/app1.

When your client makes a request the reverse proxy uses the "Host" header or the SNI string that is part of the TLS connection to determine what certificate to use and what application to route to.

There is usually a "default" backend for any request that doesn't match any of the names for your backend services (like a scanner blindly trying to access your IP). If you disable the default backend or redirect default requests to something that you know is secure any attacker scanning your IP for vulnerabilities would get their requests rejected. The only way they can even try to hit your service is to know the correct DNS name of your service.

Some reverse proxies (Traefik, HAproxy) have options to reject the requests before the TLS negation has even completed. If the SNI string doesn't match the connection just drops it doesn't even bother to send a 404/5xx error. This can prevent an attacker from doing information gathering about the reverse proxy itself that might be helpful in attacking it.

This is security by obscurity which isn't really security, but it does reduce your risk because it significantly reduces the chances of an attacker being able to find your applications.

Reverse proxies also have a much narrower scope than most applications as well. Your services are running a web server with your application, but is Jellyfin's built in webserver secure? Could an attacker send invalid data in headers/requests to trigger a buffer overflow? A reverse proxy often does a much better job of preventing those kinds of attacks, rejecting invalid requests before they ever get to your application.

this post was submitted on 25 Apr 2025
86 points (97.8% liked)

Selfhosted

62781 readers
545 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