• 1 Post
  • 221 Comments
Joined 3 years ago
cake
Cake day: February 1st, 2024

help-circle


  • Great! 2) is straightforward, and most folks probably recommend running wireguard, either on a computer or your router. Generally the tricky part is dealing with not having a static IP. Even worse you may be CGNAT’d. My solution to this is to use a VPS with a static IP as a hub, so connecting to home has a hop there. This is all common practice.

    For 1), this is technically easy — I can route my traffic through my VPS as an exit node. But, it’s pointless because while my ISP doesn’t see my traffic, my VPS provider does, and they know who I am (also, against ToS to use my VPS that way). You need to find a way to get exit nodes with an acceptable amount of privacy.

    My privacy VPN solution is to use mullvad on a computer in my home. I can steer any LAN client, and any “road warrior” client (like my phone connected to my home as described), over any of 5 mullvad interfaces (mullvad allows 5 local peers). I can also change the remote peers of course, no limit on that. End result is that so long as I can use wireguard into my VPS, I have access to both my home, and privacy exit nodes more or less anywhere in the world. But, I do not have any control over mullvad’s servers, which it sounds like you want.



  • 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.


  • 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.


  • 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.



  • I think it’s a little unclear. Self hosting a VPN as in, hosting your own mullvad/nord/proton? That’s tricky because you don’t have anonymity — you now rely on your server provider to not associate your name with your rented IP address. That could be tricky. And you can’t self host on your home network because, well, a VPN from your home network to your home network is just a LAN with more steps.

    If you mean self hosting your own “road warrior” VPN, like a Tailscale replacement to access local services securely from other locations, that’s completely different and people do it all the time (me included).

    What are you trying for?







  • Cool, I recommend it!

    I have my public facing reverse proxy point to my public services, and I also have it set up as a “roadwarrior” VPN to my home. So, I can connect my phone via WireGuard to my VPS, and a local DNS resolves my private services to the private IP addresses in my home network (so, I also run a reverse proxy on my server, for internal services).

    I also have an off-site backup using this — just a raspberry pi and an HDD at family’s, that rsyncs+snapshots over the WireGuard network.

    I’m sure I’m not following all the best practices here, but so far so good.