cross-posted from: https://reddthat.com/post/77259862

Any thoughts on self-hosting VPNs?

Look, I am interested in self-hosting for sure. However, maintenance sounds like a nightmare. I wanna know if it actaully sounds as scary as it is. Only answer this if you ever self-hosted your own VPN. Are there any privacy compromises? Considering that actual humans say “self hosting is the only way to have real privacy”, I’m quite interested. If you found the most effecient way to maintain your self-hosted network, please let me know

  • herseycokguzelolacak@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 hour ago

    running a wireguard server on a cloud vps is very easy. It also helps me to connect to my home server when I’m away from home. (home server is behind NAT, so it is not immediately accessible).

  • Drun@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 hour ago

    I’m from Russia. I’m renting 4 servers for me and my relatives, and also one cascade infrastructure server inside the country. Two in Netherlands, one in Germany and another one - in Finland. No KYC, summary costs are somewhere around $15.

    I vibesloped a software that runs on a infrastructure server and it’s doing next things:

    1. Automates servers setup (key auth, X-ray, VLESS with a templated, very patriotic website for a self-steal)
    2. It provides an UI for managing new VPN clients. It automates client registers on a VPN servers
    3. It serves (and updating if servers changed) subscribe links with splitrouting rules for Clash. Configs are autoupdated by clients every 6 hours.
    4. It calculates the used traffic by users and provide tool to balance the load between servers. Users are free to use any available server, but by default they are landing on a “Recommended” server choosed by the balancer
  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    11 hours ago

    Not likely in the way you mean, but yes.

    When you buy a vps there’s a kyc process to navigate and a second set of credentials for the dashboard you gotta manage.

    Unless you’re keeping a dozen or so different vps subscriptions you are much more limited in the different servers you can connect to. This might limit you if your vps with a datacenter ip gets blacklisted because you’re running an automated shrek futa scraper or if there’s a power or data outage in the area it’s physically located.

    Vpses are also susceptible to container and virtualization escape attacks and you never know who you’re a co-tenant with.

    Vps hosting providers are often able and required to provide law enforcement real time access to your system unless you take serious precautions.

    You are not as skilled, competent or experienced as a commercial vpn provider and it’s likely you are less motivated to provide a high quality service than they are.

    So it’s pretty fucking stupid to choose a self hosted vpn over a reputable commercial provider.

    But it’s not all bad, building a WireGuard or even ssh tunnel on a vps is a fantastic tool to have in your arsenal.

    Heck, I use cheap vpses for my overlay networks publicly reachable nodes, and that’s a type of vpn!

    But it’s better to pay for mullvad as opposed to a vps for 99.9% of people who would consider the choice.

    E: and you’re working with less support, fewer tools and much less control over your hardware than a commercial vpn provider. If it’s not clear enough, treating a tunnel to a vps as a general purpose vpn is about the dumbest thing you can do.

    If you’re worried about law enforcement then use mullvad. If you wanna pirate use air unless you’re Italian then I guess you are fucked.

  • xylogx@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    21 hours ago

    The lowest tier vm on Azure/AWS or any VPS makes a fine wireguard server depending on what you want to do with it and what geolocation you need.

  • juipeltje@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    2 days ago

    Why is this post downvoted so much? Just curious tbh. But i’m pretty much gonna echo what has already been said here. Selfhosting a VPN isn’t that difficult with Wireguard. I’ve used this tutorial in the past and it’s working great. One thing to note that i struggled with was the endpoint. I had to use my public IP as the endpoint to make it work and access the server from outside my network, but that wasn’t clear to me from watching that video.

    But you should consider what you’re using the VPN for.

    Do you want to be able to access your selfhosted services from outside your home network? Then setting up your own VPN is a simple and safe alternative to exposing your server to the internet, especially if you’re the only one using it.

    You may have seen those commercial VPN ads about encrypting your traffic and keeping it safe from snooping, when you’re out and about on a public wifi for example. Is that what you’re after? If yes then selfhosting a VPN is also a good option because it encrypts your traffic the same way.

    Are you going to “sail the high seas”? Then selfhosting a VPN will do you no good, since the VPN will also be located in your house, they can still track you down when you’re doing something illegal. Commercial VPNs can help with this because the IP will trace back to their servers instead of your actual location.

    • dieTasse@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      I didn’t downvote, but I think the point is that the question is unclear and when people asked for clarification, none was given (at least mine was ignored), so we don’t really know what do they actually want to achieve.

  • burghler@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    2 days ago

    For those wondering why it’s down voted. Check through OPs profile, they’re a known rude and disingenuous poster. Engaging with them is like dealing with that one annoying kid who always had “your super power but plus 1” when you were a child.

    They have a poor understanding of how all the internet and service infrastructure works and when corrected or given tips, they just respond poorly. I’ve seen very very few people with a lack of self awareness like OP here doesn’t have.

      • qjkxbmwvz@startrek.website
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        In your original post, many of the responses are essentially, “can you clarify what you actually want?” which (as of now) are unanswered.

        The term “VPN” refers to two completely different concepts (though they are related by a common technology): privacy VPNs, and corporate/intranet VPNs. Both use similar technology stacks, but actually running your own is totally different between the two.

        If you don’t want to be considered rude, then do the research to pose your question precisely, or when asked for clarification, describe exactly what it is you’re trying to accomplish, along with your preliminary ideas on how to accomplish that.

          • qjkxbmwvz@startrek.website
            link
            fedilink
            arrow-up
            2
            ·
            21 hours ago

            The tech stack, sure. But if you want to host your own privacy VPN, that’s a very different situation (rent rack space, preserve your privacy… technical part is easy, but getting privacy preserving stuff is a different situation).

            Either OP wants to do that — implement mullvad/nord/proton on their own — or they just want to open a port and run WireGuard on a home router/computer. Very different tasks, but yeah, they both use the same tunnel and require some routing.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          21 hours ago

          The term “VPN” refers to two completely different concepts (though they are related by a common technology): privacy VPNs, and corporate/intranet VPNs. Both use similar technology stacks, but actually running your own is totally different between the two.

          Whaaat? Those are the same thing. The term VPN doesn’t mean something different based on what you’re using it for.

          • MonkderVierte@lemmy.zip
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            21 hours ago

            VPN is a encrypted transport protocol, essentially a virtual wire through the net. This can be used to have your own closed-off little net for security, or to connect your computer to a server in a different part of the world (geo-IP) to pretend you’re there. Btw, a VPN doesn’t help at all for privacy, if you don’t aggressively block trackers and keep logged off of your usual services.

            • dieTasse@feddit.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 hour ago

              Even if you don’t block trackers, your privacy is improved. Your ISP or mobile operator can no longer snoop on you (granted operators have more ways to snoop, but its still privacy + 1).

            • atzanteol@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              6 hours ago

              I know what a vpn is kid. 🙄

              It doesn’t change depending on what you’re using it for.

              It’s like saying a car is a different thing when using it to drop kids off at school and when using it to do your shopping.

              • MonkderVierte@lemmy.zip
                link
                fedilink
                arrow-up
                1
                ·
                2 hours ago

                It doesn’t change depending on what you’re using it for.

                Did i say something different?

                And try friendly the next time.

          • qjkxbmwvz@startrek.website
            link
            fedilink
            arrow-up
            1
            ·
            21 hours ago

            OP wants to “host their own VPN,” so yes, they mean something completely different: do you want to rent rackspace and exit nodes that preserve your privacy? Or, do you want to run WiteGuard on your router/computer so you can access LAN services remotely?

            Yes a privacy VPN and a corporate/homelab VPN both use the same tech stack, but functionally they mean two different things.

              • dieTasse@feddit.org
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 hour ago

                A vpn is a vpn, but what you do with the vpn may differ. Unless op wanted to get every possible use case a clarification was in order. I think you don’t need to take everything said literally.

        • MisterFred@reddthat.comOP
          link
          fedilink
          arrow-up
          0
          ·
          1 day ago

          I did try to research my way on this topic prior to this post. This is just adding on to that. Once again, I don’t know how to sound friendly beyond not using negative words and ALL CAPS

          • just another dev@lemmy.my-box.dev
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            23 hours ago

            You could start with answering people’s questions when they try to help you.

            That’s literally what the person above here told you, and you just answered “I don’t know, I can’t help it, oh well.”

            So yeah, either you’re a very successful troll or someone unwilling to change after people point things out to you. Either way, I think it’s better for everyone involved to not give further attention to you (and that includes downvoting)

            Goodbye.

            • MisterFred@reddthat.comOP
              link
              fedilink
              arrow-up
              0
              ·
              21 hours ago

              I am not a troll and I don’t know how to properly change. I genuinely don’t know how to use words properly beyond raw grammar

              • qjkxbmwvz@startrek.website
                link
                fedilink
                arrow-up
                2
                ·
                20 hours ago

                Then start with an easy one, just answer this question:

                What are you trying to do?

                1. host your own privacy VPN (like mullvad/nord/proton),
                2. host your own VPN to access your LAN from the Internet (like Tailscale), or
                3. something else?
  • Admetus@sopuli.xyz
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    2 days ago

    From my experience, ssh in, set up ssh key for computer, set up firewall appropriately, make sure VPN is encrypted, strong random password and you’re good to go?

    Edit: Oh and update regularly lol

  • just another dev@lemmy.my-box.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    2 days ago

    Depends on what your goal is. I use wireguard to connect to my home network, and have access to my services that way. Works great for that.

    I could use a vps for a rented exit node, but such an external ip would just flag you for irregular traffic (not a “domestic” ip), although I guess no more than a normal vpn would. The chances your traffic is tapped there, rather than at your own isp or a big name vpn - well, that depends on your isp and where you rent your vps.

    If you want a vpn for any other reason than accessing your own network, I advice you to watch this video: https://youtu.be/WVDQEoe6ZWY?t=360 and verify if you truly need one.

    -edit: Oh, now I remember. You’re the kid who asked for advice if you should install Linux on the family computer, despite not knowing much about Linux. Yeah, this is going to end well, I can feel it.-

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 day ago

    your question seems very innocent so i’m wondering what you did to get the downvotes.