posted in Selfhosted

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

reddthat.com/pictrs/image/416aafba-7cca-43ac-bb9c-d925ccafdb1f.png
enPage

Replying to @⁨MisterFred@reddthat.com⁩

Truly I don’t know.

Are you asking if self-hosted VPNs provide privacy? Yes, but no, it depends what you’re trying to achieve.

Are you asking if self hosting requires a lot of maintenance? Yeah, kinda.

Are you asking if self hosted VPNs specifically require a lot of maintenance? Not really.

There is no such thing as privacy on the internet, just levels of protection. A self hosted VPN will just make all the connections appear as if they are coming from your house, and it does not exactly provide any level of protection except if your application is sending unencrypted data over the wire and you’re at a McDonalds. The VPN will in that event, at least, encrypt the data.

Self-hosted VPNs generally only serve one function: provide access to the other side of your firewall from the outside.

You should route your traffic through Tor if you’re paranoid. You can do that from anywhere in the world and it requires no infrastructure commitment from you.

Replying to @⁨MisterFred@reddthat.com⁩

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?

Replying to an earlier post

spoiler

I’ve worked for VPN company at infrastructure and server side.

Depends on what are you looking for, multiple endpoints in different regions with multiple different protocols - yes it would be a nightmare. A single endpoint with openvpn/wireguard/x-ray(whatever it’s called now) not really. There is a nuance, if you are looking for things like access to geolocation blocked/limited content, etc. it becomes much harder to do it. Also major internet gatekeepers really don’t like well known hosters like linode/digitalocean/ovh and will block you as a bot, so you will be better served with smaller ones that are either little known or on ISPs that provide hosting services.

Replying to @⁨MisterFred@reddthat.com⁩

If you want something to get back to your services, easy-peasy hardly an inconveince. I have wireguard running on my firewall. If you want it to change your geo-location you are either going to need to wip out that old credit card and go to the locations you want to have an end point in and make friends with people who are willing to host locations for you, if you do not have the time or resources to befriend people you could just get a VPS hosted out of those locations instead I guess. If you are wanting to use a VPN to hide your traffic from your ISP, or government you are SoL, however if you are intrested in hiding from ads, trackers, and malicious sites come step over here:

I personally like and use pihole, but there is also adguard home which I tried out for a bit because lots of youtube folk said it was better but I went back to pihole. You can host it on something as little as a pi zero 2 at least that is the lowest powered device I have ever run it on, for the best bang for your buck get 2 pi’s and install pihole on it one for your primary DNS and one for your secondary DNS, than set up unbound on both of them, with DoT to your favourite provider; I hear cloudflare offers it, I am utterly disgusted with cloudflare don’t ask me why cause I do not know why. I understand Quad9 offers it, if I did not want to keep as much as I can in Canada I would probably go with Quad9. I have gone with CIRA, I would be rather mad if my ISP decided to block port 853 but they opened up port 25 for me so I am not to terribly conncerned that they will close 853. I also have two static IP addresses, one I was going to use for email but decided to get it hosted instead.

Replying to @⁨MisterFred@reddthat.com⁩

First off, VPN is not a “make private” protocol but a virtual wire through the nets. IT-Professionals usually use VPN for increased security, by isolating their net from the outside world.

Commercial VPN services advertised for privacy, however, work by changing geo-IP ranges (IP range is split up by country) by having properties in the respective countries and running a server there. Since you likely don’t have that as a consumer, your best bet would be to use region-local hosters.

About hosting your own VPN server: it’s quite simple, Wireguard is built-in in the kernel; just have a Linux system running (i recommend Alpine), initially set up with a few commands, just google how to.

Replying to an earlier post

Some use cases don’t need an entire VPN, ssh may be enough. If you have a server in another region and quickly need a website to see its IP address instead of yours, look up “ssh socks proxy”. If you want to have shell access to multiple servers over the Internet, without them getting stomped by bots trying to brute force their way in, you can open the ssh port on those servers to your one other server only, and use that server as an “ssh jump host” to connect to them. A good read on both topics: https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts

Replying to @⁨MisterFred@reddthat.com⁩

I use this Wireguard image. it’s easy to set up and you can set unlimited peers (devices).

I have most of my services on my reverse proxy so I can access them without a VPN, but there are some others that I leave local only. by having that VPN, I can use those local services without exposing them to the internet which is useful. there’s also the additional plus of being able to route my traffic through an encrypted route when using public WiFi, which is nice

I also use WGTunnel, which lets me switch on and off the VPN profiles depending on if I’m on my local network or not. furthermore, I can set up my Wireguard profiles to act in two ways:

  1. the first profile - standard VPN, routes all traffic and requests through the VPN, useful for public WiFi networks
  2. the second profile - set the AllowedIPs line in the profile to something like
# not the ACTUAL full local subnet ranges, but this works for me

AllowedIPs = 10.13.13.0/24, 172.30.0.0/24, 192.168.0.0/16

to only route requests that resolve to a local network address, which makes it act much more like Tailscale in a way. this is useful when I want to use the full speed of something like my mobile data or a safe WiFi network for requests that aren’t local and at the same time being able to ping remote and devices connected to the VPN if I need to

WGTunnel will switch to the former when on unfamiliar WiFi networks, and the latter when I’m on mobile data and trusted WiFi networks that I set explicitly. for my actual home internet, it will simply disconnect all VPNs.

I’m quite happy with the setup, and I’m mostly thankful I don’t have to pay a VPN service just to secure stuff on public WiFi, but it’s also nice to hide some services when they don’t need to be public!

Replying to @⁨MisterFred@reddthat.com⁩

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters DNS Domain Name Service/System ISP Internet Service Provider VPN Virtual Private Network VPS Virtual Private Server (opposed to shared hosting)

[Thread #184 for this comm, first seen 28th Nov 2026, 02:10] [FAQ] [Full list] [Contact] [Source code]

Replying to @⁨MisterFred@reddthat.com⁩

If you mean a VPN to securely access internal services (what VPNs were created for), then yes, it’s the recommended way.

If it’s to change your apparent IP, then you could, for example I have one at home so I can access services that are GeoIP blocked or limited to my IP (e.g. Netflix) while traveling. Also, you could rent a VPS and host one there. The VPS would limit you to a single external IP/region, but you could use the VPS for other things too.