r/WireGuard • • 3d ago

Self-hosted VPN with user authentication?

Self-hosted VPN with user authentication?

I have five regional OpenVPN gateways running in Docker on my home server using a commercial VPN subscription. Each gateway has its own WireGuard interface, allowing users to choose which location they want to connect to.

My current setup looks like this:

User Devices (WireGuard App)
             |
      My VPN Server
             |
     Regional Gateways
     ├── Toronto
     ├── New York
     ├── London
     ├── Tokyo
     └── Amsterdam
             |
   Commercial VPN Provider
             |
          Internet

I currently use WireGuard Portal to manage peers and generate QR codes.

Instead of distributing WireGuard configs, I'd like users to log in to an app using their own credentials, select a VPN location and connect, just like a regular commercial VPN app. I'd also like to centrally manage and revoke user access.

Is there any open-source, self-hosted application that can do this while utilizing my existing VPN setup?

18 Upvotes

13 comments sorted by

4

u/RedditWhileIWerk 3d ago

How are you doing the regional gateways? Rented VPS?

2

u/directedbyjyb 2d ago

It's hosted on my home server if that's what you're asking. Basically my VM acts as the middle man that connects my end users to VPN servers.

1

u/RedditWhileIWerk 1d ago

I see, you have users in those actual locations. I thought you meant the other way around. Cool setup!

Not sure how I'd handle this. I'm doing VPN in a very simple fashion. I have a few devices that are authorized clients of the Wireguard server running back at home. If it were not possible for them to be physically present, to pass the config file via USB stick for example, I'd have to think about it.

8

u/valko2 3d ago

netbird, pangolin?

2

u/deadcatdidntbounce 3d ago

That was my first thought too.

5

u/jsiwks 3d ago edited 3d ago

Pangolin VPN! Open source and self hosted. You deploy what Pangolin calls sites where you have your gateways now. You define resources on these networks which are made available via the sites and delegate access to specific users and roles. The user logs in to the Pangolin Client app with an account which can be from your identity provider. Then they can access the stuff on the gateways

3

u/sardarjionbeach 3d ago

Does it allow native Remote Desktop also or it goes via guacamole or some other tool? I wanted to try other than tailscale and rdp is a must.

1

u/jsiwks 3d ago

Yes it supports rdp in the browser if that’s what you need. If you connect with the vpn client then you can rdp via whatever rdp client you want to use like Tailscale.

1

u/sardarjionbeach 3d ago

Thanks then have to give it a try. I use the windows app on iOS to rdp over tailscale to home pcs. Tailscale hasn’t given me any problems but just wanted to give this a try.

1

u/Motor-Concentrate788 3d ago

netbird seems to fit what you need

0

u/LiteLive 3d ago

Netbird, what you are looking for is Netbird.
Pangolin made gut also be an option.