How to route traffic from qBittorrent LXC to NordVPN whilst being able to access the web interface

I’ve recently gotten Plex, radarr, sonarr up and running in my TrueNAS VM but decided id like to have qBittorrent running in its own LXC. Once i set it up and got the SMB share mounts connected i installed NordVPN as its the client i pay for. I eventually got the VPN running on the LXC for qBittorrent but some slight oversight by me. It seems when the VPN is connected i cannot connect to the qBittorrent Web UI.
This is obviously because ALL traffic is going through the VPN and is no longer being routed to my local network.

Is there any way i can fix this? As in keep qBittorrent connected to NordVPN at all times but access the webui from my local network?

Ive seen some solutions as running everything in docker containers and routing traffic that way, but at the moment i would like to stay away from that unless absolutely necessary.

Thanks in advance.

The way I do it:

  • Separate [minimal] vm/container for vpn client
  • Establish above mentioned host as gateway for p2p traffic
  • Route all traffic from the p2p host(s) to destinations outside of local net through that gateway
  • Separate nic (on different vlan) for local [web admin/ssh] access

Edit: just saw your “I want it simple” part. No can-do.

try:
nordvpn set lan-discovery enable

I ended up going PfSense for my router. It lets me define specific gateways for specific devices, and as a result my Linux ISO download system can only reach the internet over my VPN.

wow this worked, i typed that into the console before connecting nordvpn to a server and it worked, i can now see the webui for my qBittorrent while the lxc is connected to a vpn! Cheers!!!

Just for further documentation, once logging into the webui for qbittorrent i had to set the network interface as nordlynx instead of eth0.

I didn’t have to make any changes, but I’m running it in a VM. I started it off in a LXC, but I learned when I was trying to setup all the 'ARR programs it was just easier to put everybody involved behind one vpn.

Hey, I’m a total beginner at Proxmox and Linux. I am trying to set up what you are doing with qbittorrent, and boy am I struggling.

I got qBit running in an LXC. Have been unable (and super confused by trying) to get NordVPN running in the same LXC.

I would love to see a step-by-step on how you did that, or even any pointers for newbies. Thanks.

I used this guide seeing as you only have access to the terminal.

How to log in to NordVPN on Linux devices without a GUI – Live Chat, VPN Setup, Troubleshooting | NordVPN Customer Support