What’s your go too (secure) method for casting over the internet with a Jellyfin server.

I’m wondering what to use and I’m pretty beginner at this

top 75 comments

sorted by: hot top controversial new old
[–] 66 points 1 year ago (9 children)
  • [–] 13 points 1 year ago* (4 children)

    and a local reverse proxy that can route through wireguard when you want to watch on a smart tv.

    its not as complicated as it sounds, it's just a wireguard client, and a reverse proxy like on the main server.

    it can even be your laptop, without hdmi cables

  • source
  • parent
  • hideshow 4 child comments
  • [–] 9 points 1 year ago (1 child)

    You can also use a router that can run wireguard/openvpn and have that run the tunnel back to home for you. I've got a portable GL-Inet router with OpenWRT that I use for this when I'm on the road

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year ago (1 child)

    How would you do this off network?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    what do you mean by off network? on the wifi of a different home's network, that has internet access?

    the wireguard client on your laptop is supposed to give the laptop (and the laptop only) access to your home network, and the reverse proxy running on the laptop is supposed to give local devices access to services at home selectively, by listening on port 443 on the local network, and processing requests to services that you defined, by forwarding them through the vpn tunnel.
    this requires that a machine at home runs a wireguard server, and that its port is forwarded in your router

  • source
  • parent
  • [–] 40 points 1 year ago* (3 children)

    I think my approach is probably the most insane one, reading this thread…

    So the only thing I expose to the public internet is a homemade reverse proxy application which supports both form based and basic authentication. The only thing anonymous users have access to is the form login page. I’m on top of security updates with its dependencies and thus far I haven’t had any issues, ever. It runs in a docker container, on a VM, on Proxmox. My Jellyfin instance is in k8s.

    My mum wanted to watch some stuff on my Jellyfin instance on her Chromecast With Google TV, plugged into her ancient Dumb TV. There is a Jellyfin Android TV app. I couldn’t think of a nice way to run a VPN on Android TV or on any of her (non-existent) network infra.

    So instead I forked the Jellyfin Android TV app codebase. I found all the places where the API calls are made to the backend (there are multiple). I slapped in basic auth credentials. Recompiled the app. Deployed it to her Chromecast via developer mode.

    Solid af so far. I haven’t updated Jellyfin since then (6 months), but when I need to, I’ll update the fork and redeploy it on her Chromecast.

  • source
  • hideshow 3 child comments
  • [–] 26 points 1 year ago (3 children)

    I used to do all the things mentioned here. Now, I just use Wireguard. If a family member wants to use a service, they need Wireguard. If they don't want to install it, they dont get the service.

  • source
  • hideshow 3 child comments
  • [–] 5 points 1 year ago

    I started my homelab with a couple exposed services, but frankly the security upkeep and networking headaches weren't worth the effort when 99% of this server's usage is at home anyway.

    I've considered going the Pangolin route to expose a handful of things for family but even that's just way too much effort for very little added value (plus moving my reverse proxy to a VPS doesn't sound ideal in case the internet here goes down).

    Getting 2 or 3 extra folks on to wireguard as necessary is just much easier.

  • source
  • parent
  • [–] 61 points 1 year ago (6 children)

    I just expose my local machine to the internet, unsecured

  • source
  • hideshow 6 child comments
  • [–] 2 points 1 year ago* (3 children)

    Yea same I don’t even care.

    It’s an old laptop, I have a backup. Go ahead, fuck it up.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (2 children)

    Do you at least have it on a VLAN?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago* (1 child)

    I dunno. It’s plugged in directly to the modem/router provided by my ISP while my wifi is provided by a separate mesh setup, which is also plugged in to the modem/router 🤷‍♂️

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year ago

    Yeah, you’ll definitely want to make sure that computer is isolated. It doesn’t sound like it’s currently on a VLAN. The real danger isn’t just someone messing up that one machine, once they’re in, they’re behind your firewall and can potentially access anything else on your network. Smart home devices are often the next targets, things like light bulbs, security cameras, and especially Windows computers, which are usually easy to compromise if they’re on the same network.

    You might be wondering, “How likely is that?” Honestly, very likely. Back when my website was online, it would get hit by hackers, mostly script kiddies, several times an hour.

  • source
  • parent
  • load more comments (1 reply)
    [–] 17 points 1 year ago (2 children)

    Tailscale with self hosted headscale

  • source
  • hideshow 2 child comments
  • [–] 15 points 1 year ago (8 children)

    I rent a cheap $5/mo VPS and use it to run a wireguard server with wgeasy and nginx proxy manager. Everything else runs on my home server connected by wireguard.

  • source
  • hideshow 8 child comments
  • [–] 1 point 1 year ago

    This is 99% my setup, just with a traefik container attached to my wifeguard container.

    Can recommend especially because I can move apartments any time, not care about CGNAT (my current situation which I predicted would be the case), and easily switch to any backup by sticking my boxes on any network with DHCP that can reach the Internet (like a 4G hotspot or a nanobeam pointed at a public wifi down the road) in a pinch without reconfiguring anything.

  • source
  • parent
  • [–] 2 points 1 year ago (2 children)

    Is Nginx Proxy Manager running on the VPS itself and then the proxy routes across the wireguard to your home server? Or is the VPS just port forwarding to your home server which runs the proxy?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago

    My goal was to have no ports exposed on my home network so the proxy is on the VPS. My home server connects over wireguad to the vps, then all the traffic is routed over wireguard to the home server which only listens on wireguard.

  • source
  • parent
  • [–] 2 points 1 year ago (3 children)

    I was just trying to get a setup like this going yesterday. I used standard Wiregaurd and got that working between the VPS and home server, but I was trying to set up Caddy as a reverse proxy to direct the incoming traffic through the WG VPN to my services. I wasnt able to figure it out yesterday. Everyone online says Caddy is so simple, but I'm such a noob I just have no idea what it's doing or how to troubleshoot.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (1 child)

    I've also really struggled with Caddy despite everyone saying its so simple. I'm pretty new to all this, but I had better luck with Traefik - I now actually have a reverse proxy up and running correctly, which I haven't been able replicate with Caddy.

    Traefik labels make sense to me in a way Caddy does not.

  • source
  • parent
  • hideshow 1 child comment
  • I appreciate this response. I'll try booting up traefik later.

    I think Caddy just abstracts things to such a great degree that if you dont already know what it's supposed to do, it's harder to learn what you're doing with it. I'm sure plenty of others have stepped right up and loved the "two line config" without already understanding the basics, but it's not clicking for me.

  • source
  • parent
  • [+] 15 points 1 year ago (5 children)
  • [–] [S] 1 point 1 year ago (1 child)

    Look pretty interesting. Do you have guide I could follow ?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    Not at hand no, but I’m sure any of the LLMs can guide you through the setup if googling does not give anything good.

    Nothing very special about all this, well maybe the subdir does require some extra spells to reverse proxy config.

  • source
  • parent
  • [–] 4 points 1 year ago (2 children)

    I kept the main domain open, but redirected it to a rickroll

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 1 year ago (1 child)

    Nice, but the bots may not understand the joke.

    And not only that but they will tag the domain with ”there is something here”, and maybe some day someone will take a closer look and see if you are all up-to-date or would there maybe be a way in. So better to just drop everything and maybe also ban the IP if they happen to try poke some commonly scanned things (like /wp-admin, /git, port 22 etc.) GoAccess is a pretty nice tool to show you what they are after.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Yeah that's a good point. The joke is mostly for my own enjoyment or any random user who happens to forget the jellyfin. subdomain.

    I have had a few hits to /wp-admin, but cloudflare actually blocks those for me (I don't use a tunnel but I do use them for the domain name which helps a bit). I might just shut down the main page then.

  • source
  • parent
  • [+] 30 points 1 year ago (27 children)
  • [–] 10 points 1 year ago (26 children)

    Nobody is gonna bother wasting time hacking into your home server

    They absolutely will lol. It’s happening to you right now in fact. It’s not to consume your media, it’s just a matter of course when you expose something to the internet publicly.

  • source
  • parent
  • hideshow 26 child comments
  • [–] 1 point 1 year ago (6 children)

    And this is the start of the longest crypto nerd fight I've seen on Lemmy. Well done, people!

  • source
  • parent
  • hideshow 6 child comments
  • [–] 3 points 1 year ago (5 children)

    Not so much a fight as an exercise in futility lol

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 1 year ago (4 children)

    Well, I might as well put a dog in the fight. I'm considering my final, actually secure deployment of nextcloud.

    This discussion has convinced me that a vpn is the only answer.
    And almost everyone says wireguard.

    K. Thats what I will build.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    It’s not the only answer, but it’s the one that will get you the most secure with the least amount of effort.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago* (2 children)

    Ya. I understand VPN. I do enterprise IT stuff. The things I build assume a secure environment. VPN is step one.
    Nailing down a web server on the internet tho ... there's so many ways to attack. There's so many things to secure. And its a bit complex to manage all that.
    The nextcloud site covers hardening the server, but doesn't even mention vpn.
    I've been watching threads like this. I'm pretty convinced vpn is the answer.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Yeah Nextcloud won’t mention VPN for hardening because the assumption is you want it publicly accessible.

    I have a number of things publicly accessible and there are a number of things I do to secure them. crowdsec monitoring and blocking, a reverse proxy with OIDC for authentication, a WAF in front of it all. But those are only for the things I have exposed because I want other people to use them. If it’s something just for me, I don’t bother with all that and just access it via VPN.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Ok. Yes, my use case is a private document and media store. I'm ungoogling.
    VPN seems like a good place to start. But I'd like a simple answer, and I expect there are none to be had. As you've illustrated here, I'll find a reason to punch holes in the firewall. And then I'm going to need to secure a web server. Life happens. I'll keep it simple for now while I sort things. Thanks for your perspective.

  • source
  • parent
  • [+] 4 points 1 year ago (12 children)
  • [–] 7 points 1 year ago* (11 children)

    No, they are actively trying to get in right now. If you have Authelia exposed they’re brute forcing it. They’re actively trying to exploit vulnerabilities that exist in whatever outwardly accessible software you’re exposing is, and in many cases also in software you’re not even using in scattershot fashion. Cloudflare is blocking a lot of the well known CVEs for sure, so you won’t see those hit your server logs. If you look at your Authelia logs you’ll see the login attempts though. If you connect via SSH you’ll see those in your server logs.

    You’re mitigating it, sure. But they are absolutely 100% trying to get into your server right now, same as everyone else. There is no consideration to whether you are a self hosted or a Fortune 500 company.

  • source
  • parent
  • hideshow 11 child comments
  • [+] 2 points 1 year ago (10 children)
  • [–] 2 points 1 year ago* (last edited 1 year ago) (9 children)

    Yes they are. The idea that they’re not would be a statistical wonder.

    2k requests made to the Authelia login page in the last 24 hours

    Are you logging into your Authelia login page 2k times a day? If not, I suspect that some (most) of those are malicious lol.

    You don't know jack shit about what's going on in another persons network

    It’s the internet, not your network. And I’m well aware of how the internet works. What you’re trying to argue here is like arguing that there’s no possible way that I know your part of the earth revolves around the sun. Unless you’re on a different internet from the rest of us, you’re subject to the same behavior. I mean I guess I didn’t ask if you were hosting your server in North Korea but since you’re posting here, I doubt it.

    I'm not sure why you're acting like some kind of expert

    Well I am an expert with over a decade of experience in cybersecurity, but I’m not acting like an expert here, I’m acting like somebody with at least a rudimentary understanding of how these things work.

  • source
  • parent
  • hideshow 9 child comments
  • [+] -5 points 1 year ago (8 children)
  • [–] 3 points 1 year ago (7 children)

    a rule blocking connections from other countries, and also requiring the request for the login page come from one of the services on your domain, will block virtually all malicious attempts to access your services.

    Whoa whoa whoa. What malicious attempts?

    You just told me you were the statistical wonder that nobody is bothering attack?

    That’s 2k requests made. None of them were served.

    So those 2k requests were not you then? They were hostile actors attempting to gain unauthorized access to your services?

    Well there we have it folks lmao

  • source
  • parent
  • hideshow 7 child comments
  • [+] -4 points 1 year ago (6 children)
  • [–] 2 points 1 year ago (5 children)

    As OP should be. 2k attempts a day at unauthorized access to your services is a pretty clear indicator of that. Seems you’ve mitigated it well enough, why would you suggest that OP not bother doing the same? If you’re so convinced those 2k attempts are not malicious, then go ahead and remove those rules if they’re unnecessary.

    Perhaps as someone with only meager experience running a Jellyfin server who can’t even recognize malicious traffic to their server, and zero understanding of the modern internet threat landscape, you shouldn’t be spreading misinformation that’s potentially damaging to new selfhosters?

  • source
  • parent
  • hideshow 5 child comments
  • [+] -1 points 1 year ago (4 children)
  • [–] -4 points 1 year ago (3 children)

    It’s over man. You’ve made it very clear you have no idea what you’re talking about, how any of this works, or even what’s going on with your own selfhosted services. Back peddling away from your own arguments and trying to sweep up the beans you’ve already spilled isn’t going to help your case.

    Maybe stick to your day job, I just don’t think that cybersecurity career is in the cards for you.

  • source
  • parent
  • hideshow 3 child comments
  • [+] 0 points 1 year ago (2 children)
  • [–] -2 points 1 year ago* (1 child)

    You’ve argued from a position of weakness against a well known and accepted truth, and have provided zero proof to back up your outlandish claim. On the contrary you’ve admitted to the existence of unwanted access attempts to your services, as well as your usage of mitigations to the same problem you insist doesn’t exist.

    It’s over man. You’re certified expert yapper but that’s not going to convince me or anyone else here that you know what you’re talking about. It’s a wrap.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 4 points 1 year ago (5 children)

    What a bunch of B's. Sure your up gets probed it's happening to every ipv4 address all the time. But that is not hacking.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 14 points 1 year ago* (last edited 1 year ago) (4 children)

    Anything you expose to the internet publicly will be attacked, just about constantly. Brute force attempts, exploit attempts, the whole nine. It is a ubiquitous and fundamental truth I’m afraid. If you think it’s not happening to you, you just don’t know enough about what you’re doing to realize.

    You can mitigate it, but you can’t stop it. There’s a reason you’ll hear terms like “attack surface” used when discussing this stuff. There’s no “if” factor when it comes to being attacked. If you have an attack surface, it is being attacked.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 1 year ago (2 children)

    Yup, the sad reality is that you don’t need to worry about the attacks you expect; You need to worry about the ones you don’t know anything about. Honeypots exist specifically to alert you that something has been breached.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Couple questions here.

    What is a honeypot? I've only heard it in terms of piracy.

    Also, what steps can someone take to reinforce this attack layer? You have an infograph or something people can google search their way through?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year ago* (last edited 1 year ago)

    A honeypot is something that is intentionally left available, to alert you when it gets hit. In practice, they’re just a tool to tell security specialists when they need to start worrying; They wouldn’t be used by the average user at all.

    The goal is to build your security like layers, and ideally have all of your services behind the secure walls. Between these layers, you have honeypots. If someone gets through your first layer of security but hits the honeypot, you know someone is sniffing around, or maybe has an exploit for your outer layer that you need to research. If they get through the second layer and hit your second honeypot, you know that someone is specifically targeting you (instead of simply running automated scans) and you need to pay closer attention. Etc…

    Reinforcing the attack layer comes in two main forms, which work in tandem: Strengthening the actual layer, and reducing attack vectors. The first is focused on using strong passwords, keeping systems up to date, running something like Fail2Ban for services that are exposed, etc… The goal is for each layer of security to be robust, to reduce the chances of a bot attack actually working. Bots will simply sniff around and automatically throw shit at the wall to see if anything sticks.

    The second part is focused on identifying and mitigating attack vectors. Essentially reducing the amount of holes in the wall. It doesn’t matter how strong the wall is if it’s full of holes for your server’s various services. The goal is typically to have each layer be as solid as possible, and grant access to the layers below it. So for instance, running a VPN. The VPN gets you access to the network, without exposing services externally. In order to access your services, they need to get through the VPN first, making the VPN the primary attack vector. So you can focus on ensuring that the VPN is secure, instead of trying to spread your focus amongst a dozen different services. If it’s exposed to the open internet, it is a new potential attack vector; The strength of the wall doesn’t actually matter, if one of those services has an exploit that someone can use to get inside your network.

    Home users really only need to worry about things like compromised services, but corporate security specialists also focus on things like someone talking their way past the receptionist and into the server room, USB sticks getting “lost” around the building and plugged into random machines by curious employees, etc… All of these are attack vectors, even if they’re not digital. If you have three or four layers of security in a corporate setting and your third or fourth honeypot gets hit, you potentially have some corporate spy wrist-deep in your server room.

    For an easy example, imagine having a default password on a service, and then exposing it to the internet via port forwarding. It doesn’t matter how strong your firewall is anymore. The bot will simply sniff the service’s port, try the default credentials, and now it has control of that service.

    The better way to do it would be to reduce your attack vectors at each layer; Require the VPN to access the network via a secure connection, then have a strong password on the service so it can’t easily be compromised.

  • source
  • parent
  • [–] 4 points 1 year ago

    @EncryptKeeper That’s my experience. Zombied home computers are big business. The networks are thousands of computers. I had a hacker zombie my printer(!) maybe via an online fax connection and it/they then proceeded to attack everything else on my network. One older machine succumbed before I could lock everything down.

  • source
  • parent
  • [–] 14 points 1 year ago

    Wireguard vpn into my home router. Works on android so fire sticks etc can run the client.

  • source
  • [–] 13 points 1 year ago (2 children)

    I access it through a reverse proxy (nginx). I guess the only weak point is if someone finds out the domain for it and starts spamming the login screen. But I've restricted access to the domain for most of the world anyway. Wireguard would probably be more secure but its not always possible if like on vacation and want to use it on the TV there..

  • source
  • hideshow 2 child comments
  • [–] 31 points 1 year ago (2 children)

    I host it publicly accessible behind a proper firewall and reverse proxy setup.

    If you are only ever using Jellyfin from your own, wireguard configured phone, then that's great; but there's nothing wrong with hosting Jellyfin publicly.

    I think one of these days I need to make a "myth-busting" post about this topic.

  • source
  • hideshow 2 child comments
  • load more comments
    view more: next ›