• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Off Topic Self-hosting & Homelabs Is using a VPS with WireGuard really more secure for hosting web services?

     
    • 0 Vote(s) - 0 Average

    Is using a VPS with WireGuard really more secure for hosting web services?

    What is the real security value of VPS + WireGuard for hosting web services: is it more than just IP masking?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-02-22, 06:14 PM (This post was last modified: 2024-02-22, 06:15 PM by TheDreadPirate. Edited 1 time in total.)
    No single aspect of computer security is invulnerable.  You achieve "good enough" security by adding as many layers as you're comfortable with that meet for your needs and are appropriate for your application.  Using a VPS is a layer in this metaphoric onion of security.

    (2024-02-22, 03:25 PM)toparity Wrote: For exposing your self-hosted web services to the internet, a lot of people seem to suggest a variation of "hire a VPS and use WireGuard", so you would have a reverse proxy on your VPS and you don't actually need to open any ports on your home network. The VPS acts as a stepping stone, clients connect to your web services through the VPS, which forwards the connections via WireGuard to your home network.
    That seems nice for hiding your home IP address, but people seem to tout this as if it more secure for hosting web applications such as Jellyfin. If your VPS provider has DDoS protection, you also benefit from that, but it doesn't actually seem to make my home network more secure, no?


    The security to your home network is that extra hop a hypothetical hacker would need to make.  Access to the VPS does not grant it unrestricted access to your home network.  Or even the server on the other end of the wireguard tunnel.

    (2024-02-22, 03:25 PM)toparity Wrote: People keep talking about using whitelisting IPs, geo-blocking IPs, using fail2ban, and setting up a reliable and mature reverse proxy on the VPS. That's all great, but I can just run all of that on my home server? Surely someone is just as likely to bypass security measures on my VPS as they are on my home network directly, and if they manage to get onto my VPS they then have access to my home network anyway?
    The only additional service that I would actually be running, if I were to use a VPS rather than doing everything directly on my home server, is WireGuard. Is there something about WireGuard that would actually prevent an attacker on the VPS from accessing the home network? At that point, they have the public key associated with my home server, and they can send whatever they want.

    You, 100%, can just run all those apps on your home network.  Most people run those services either on the same host running Jellyfin or on another PC they have.  I run all my services on the same machine as jellyfin.  From anecdotal experience, a large percentage of VPS users also rely on the anonymity it grants for "acquiring" their media.  Wireguard does not do anything other P2P VPNs don't also do.  It is just built into the Linux kernel and is using the latest and greatest encryption and is super fast and lightweight.

    (2024-02-22, 03:25 PM)toparity Wrote: If someone tries to brute force my Jellyfin accounts, for example, a VPS does absolutely nothing to prevent this. WireGuard will happily route all those attempts to exactly the right place. It doesn't seem like a VPS with WireGuard makes it any harder for someone to access my home network.
    Just for clarification, I'm happy with how to secure my network, but I'm asking what additional security WireGuard + a VPS actually offers. It basically just seems to mask my home IP at the cost of latency and an additional failure point.

    Is there something I am misunderstanding here?

    There are two things to mitigate this.  1) Check "hide this user from the login screen" in the Users dashboard so you aren't giving hackers a starting point and 2) setup fail2ban so that after X number of failures you block them at the firewall level.

    This is why it is important to create as many layers as possible.  While using a VPS does give you a minor security boost, the main advantage is anonymity.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Is using a VPS with WireGuard really more secure for hosting web services? - by toparity - 2024-02-22, 03:25 PM
    RE: Is using a VPS with WireGuard really more secure for hosting web services? - by 34626 - 2024-02-22, 06:03 PM
    RE: Is using a VPS with WireGuard really more secure for hosting web services? - by TheDreadPirate - 2024-02-22, 06:14 PM
    RE: Is using a VPS with WireGuard really more secure for hosting web services? - by Jonasanas - 2024-12-26, 11:06 AM
    RE: Is using a VPS with WireGuard really more secure for hosting web services? - by TheDreadPirate - 2024-12-26, 05:42 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode