Hello, I am relatively new to all of this, but this is my first “project” I suppose? It may be simple for some, but for me it feels like a big accomplishment and I am extremely happy with how my setup has turned out. If this guide even helps one person in the future I would be very happy. Please let me know if my guide is ever of any assistance to anyone!
My reason for setting this up was to have all of my qBittorrent traffic routed through NordVPN securely on my Ubuntu Server without it affecting my regular traffic such as minecraft or plex servers.
I just use the Gluetun container setup to my Nord VPN Account and then all my other containers I want behind the VPN simply use my “gluetun-nordvpn” container for the network instead of say bridge. That way I can easily add more things behind it, plus if you use Watchtower to keep it all updated, whenever Gluetun updates Watchtower will rebuild all the other containers so you don’t have to manually update them when GLuetun rebuilds.
Why not just use the Binhex-QbittorrentVPN container which has a VPN setup built into it + failsafes that stop the container if the internal VPN is not working properly?
Additionally, you can open ports for proxy clients in your Gluetun container and connect your other devices’ browsers or other software to it. To go even more targeted, Firefox’s official Multi-Account Containers addon supports applying proxies only to specific containers, and you can set websites to always open in a specific container. You can now granularly route traffic on any number of local devices as long as they support proxies, regardless of how many logins your VPN allows you to have, without having to put a blanket VPN at the router level or get into really convoluted routing tables. Gluetun really is just a swiss army knife for VPNs.
The Multi account container information about it supporting proxies is pure gold!
Not neccessarily just for use with gluetun but in general as a web dev.
Even with gluetun - even if you’re using port forwarding, you should not be on default bittorrent ports. They’re discouraged by most trackers and most VPNs will not allow them. So the settings in your router won’t do much unless you’re forwarding on a static port