I’m paying for a VPN service that has a limited number of concurrent devices but I want to use it on all of my devices. Is there a way to self-host a Wireguard VPN on my Linux server that will forward all WAN traffic to my third-party VPN provider? Ideally, I would generate a Wireguard config for this gateway, and all my devices would connect to my local VPN gateway server, thus allowing me to share that one config across all devices.
My router does not support VPN configuration and modifying its firmware is not an option.
Many routers have an option to login to a VPN. Then all traffic that goes over that router to the internet goes over the VPN. Theoretically something like that should also be possible with a Linux server if the server is local. With this setup you shouldn’t need to configure the VPN on your local devices.
gluetun should be able to do this
I have a VM with wireguard connected to a VPN. And I use proxy tunnels over ssh to route traffic through that VM.
If you want to self host check out Wireguard options like Netmaker, Headscale, Netbird, etc. these all allow you the ability to setup a machine as an exit node into a LAN, and allow LAN to LAN communication. If you are just looking for a VPN and don’t have to self host, then Tailscale might be a good starting point. Figure out the setup you like, then move to a self hosted headscale setup later using that as a model.