- cross-posted to:
- selfhosted@lemmy.world
- degoogle@lemmy.ml
- cross-posted to:
- selfhosted@lemmy.world
- degoogle@lemmy.ml
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
I’m from Russia. I’m renting 4 servers for me and my relatives, and also one cascade infrastructure server inside the country.
I vibesloped a software that runs on a infrastructure server and it’s doing next things:
- Automates servers setup (key auth, X-ray, VLESS with a templated, very patriotic website for a self-steal)
- It provides an UI for managing new VPN clients. It automates client registers on a VPN servers
- It serves (and updating if servers changed) subscribe links with splitrouting rules for Clash. Configs are autoupdated by clients every 6 hours.
- 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
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.
Yes, pfSense, but I’d recommend OpenSense today. https://docs.opnsense.org/manual/how-tos/sslvpn_client.html
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.
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.
Finally! A helpful comment! Thank you
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.
I just wanna get some help bruh I didn’t know I was rude. Idk how to sound kind!
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.
VPNs are just tunnels plus a bit of routing. It’s no more complicated than that.
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.
Oh, yeah. No disagreement here!
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.
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.
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.
It doesn’t change depending on what you’re using it for.
Did i say something different?
And try friendly the next time.
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.
No. A vpn is a vpn.
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
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.
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
Then start with an easy one, just answer this question:
What are you trying to do?
- host your own privacy VPN (like mullvad/nord/proton),
- host your own VPN to access your LAN from the Internet (like Tailscale), or
- something else?
Well, I wanna both (q1 and q2) at the same time
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
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.-
Looks like we meet again
your question seems very innocent so i’m wondering what you did to get the downvotes.




