Qbittorent thought a VPN

Hi,

I’m using truenas scale bluefin with some apps installed, I’d like to have Qbittorent running thought a VPN and I have few questions as VPN is little obscur to me.

The Qbittorent app is the ixsoftware app and I’m leaning to AirVPN as a VPN provider.

As openVPN is deprecated in cobia, except Wireguard (I can use it, I just know that’s an alternative), is there any other alternative at the truenas system level ? Does this mean that the whole flows will be directed to the VPN and nothing will be accessible from the LAN ? as how I see the thing, it will be the case.

If i’m using an app to manage the VPN, what is the configuration to do in the Qbittorent app to direct data thought the VPN ? I also want to keep the WEBUI accessible from LAN in this case.

While I’m open to use trueharts apps (notably the gluetun option), having some advice/insights would help me to clear my ideas on this topic.

Thanks :slight_smile:

If you want to run qbit through AirVPN, you must use the truecharts app. The one from IX systems does not support VPN. See this wiki for more info.

wiki.hydrology.cc/en/home

Check this out : How to set up Gluetun with truechart apps

Use Socks5, much easier and all contained in the qb application.

Long time AirVPN user. I trust them. Good choice. My torrent method? I just installed a Windows VM in Truenas Scale. Couldn’t be bothered messing around with potentially janky app+vpn configurations. Just use a vm, install the os (Windows vs Linux, whatever you’re comfortable with), install the vpn software onto said OS, and run your torrent app of choice (I prefer Tixati). Control it via RDP. Dump the downloaded files onto a Truenas smb share.

When you have your solution, this is great tool to easily test if VPN is working just fine!
www.whatismyip.net/tools/torrent-ip-checker, of course you can find similar tools, i dont have preference, just giving here one I used before.

As mentioned the iX Version of qbit doesn’t Support vpns, the truecharts one has a gluetun addon to der up vpns

Thanks to all people who responded :slight_smile:

I did the configuration this evening and it worked on the first try and like a charm ! the Glueten Wiki was also a valuable ressource.

I use openvpn as kind of vpn.

If somebody come here for this reason, here’s what I did.

In the “Client Area” of airvpn :

  1. open a forwarded port
  2. generate a configuration for openvpn

Open your configuration file that you just downloaded and copy the base64 cert part (without the
-----BEGIN CERTIFICATE-----), put it on a single line

Do the same with the private key

In Qbittorent configuration panel on truenas, once glueten chosen as vpn, I excluded my home network from the killswitch (that’s up to you to do it or not) and I added 6 “VPN environnement variable” as follow :

VARIABLE_NAME = VALUE

  1. VPN_SERVICE_PROVIDER = airvpn
  2. VPN_TYPE =openvpn
  3. SERVER_COUNTRIES = Server country that you chose at the configuration generation (looks optionnal)
  4. FIREWALL_VPN_INPUT_PORTS = the forwarded port you opened in your airvpn’s “client area”
  5. OPENVPN_CERT = cert from the ovpn file
  6. OPENVPN_KEY = key from the ovpn file

Or just use the command “curl https://wtfismyip.com/text” in the shell

Good tip! I’ve been using “curl ip.me

I use this inside my qbittorent truechart to ensure my OpenVPN is set. Using HeavyScript, you can easily open a shell to your apps or send the individual command

Oh, I f-ing like that!
But you need to open console of that container and sometimes containers dont have even basic commands. I just like magnet way to just do “E2E test”.

The truenas ix “stock” app does not support VPN.

I’m using the Trucharts qbittorent app.