Qbit + VPN in truenas?
from Hiro8811@lemmy.world to selfhosted@lemmy.world on 06 Apr 2024 20:01
https://lemmy.world/post/13983619

I’m trying to figure out how can I install a VPN on truenas that hides my IP. I have tailscale running so I can remotely access Nextcloud and manage it doesn’t hide my IP. Wouldn’t really throught on using it but my country recently published a law to lick Big Corpo in the ass better, the fines are pretty big so that’s why I’m interested.

Can I install a commercial VPNs? Such as Proton VPN or Mulvad?
Thought on installing a VM with a qbitorent and VPN but I don’t have enough RAM and I can’t upgrade it right now.

Platform: Truenas-scale

#selfhosted

threaded - newest

Moonrise2473@feddit.it on 06 Apr 2024 20:39 next collapse

Wait for the next month release of scale, it very surprisingly comes with jails. You install a Linux distro in a jail then run gluetun+qbit via docker

catloaf@lemm.ee on 06 Apr 2024 21:23 next collapse

Truenas scale is just Debian isn’t it? You shouldn’t have any trouble with it, then. Though if you’re using other network stuff like tailscale I would determine how the two are going to work together.

Personally I run everything under docker (not on truenas scale though) and I recently switched to gluetun and it worked perfectly the first time.

Hiro8811@lemmy.world on 07 Apr 2024 06:19 collapse

Truenas scale uses kubernets. Tailscale is more like a tunnel to my home servers so I can access the ports therefore the apps

Drathro@dormi.zone on 06 Apr 2024 21:32 next collapse

The Truecharts version of Qbittorrent has gluetun baked in as an option already. Initial configuration can be a bit of a pain depending on your VPN provider, but it seems to work beautifully once set up.

barbara@lemmy.ml on 07 Apr 2024 04:04 next collapse

Gluetun

sunstoned@lemmus.org on 07 Apr 2024 06:34 next collapse

Using gluetun to connect my containers to Mullvad I’m getting 60+% of my bare network speeds.

Another option that doesn’t achieve that performance is torproxy which can achieve a similar result.

sunstoned@lemmus.org on 07 Apr 2024 06:34 collapse

Using gluetun to connect my containers to Mullvad I’m getting 60+% of my bare network speeds.

Another option that doesn’t achieve that performance is torproxy which can achieve a similar result.

barbara@lemmy.ml on 07 Apr 2024 06:52 next collapse

I can max out with qbit and ptotonvpn

rambos@lemm.ee on 07 Apr 2024 08:32 next collapse

I’m getting 60+% of my bare network speeds.

Check if your CPU usage is at 100%, its probably too much for your CPU just like mine. Getting 180-200 Mbps using gluetun and 320 without a VPN

rambos@lemm.ee on 07 Apr 2024 08:33 collapse

But gluetun is the way 😉

sunstoned@lemmus.org on 07 Apr 2024 14:19 collapse

I agree gluetun is de way 😂 unfortunately my CPU is nowhere near 100%

sunbeam60@lemmy.one on 07 Apr 2024 09:11 next collapse

Could be the VPN provider or the NAS (cpu)

Hiro8811@lemmy.world on 13 Apr 2024 10:57 collapse

I don’t think that’ll be a problem. I got a good CPU. The connection will is slowing me down

electric_nan@lemmy.ml on 07 Apr 2024 06:05 next collapse

I had someone help me set something similar up but I don’t remember the exact details. Something like making the qBit user unable to use any interface but the TUN.

foggy@lemmy.world on 07 Apr 2024 10:03 collapse

Yeah qbitorrent has this in their settings iirc.

Do ifconfig before VPN, then after. Identify what your VPN connection is (likely TUN0). Then you tell qbitorrent to ONLY use the VPN one.

That way if you suddenly lose VPN service it won’t fall back to your actual IP. (This is how the guy that hacked ubiquity got caught).

electric_nan@lemmy.ml on 07 Apr 2024 15:38 collapse

I know about that setting, but this was different. It relies on Linux permissions. Like you have a dedicated ‘user’ for running qBit, and that user has no privileges for any network interface other than the VPN.

2xsaiko@discuss.tchncs.de on 09 Apr 2024 13:03 collapse

Sounds like network namespaces.

electric_nan@lemmy.ml on 09 Apr 2024 15:06 collapse

Yeah that rings a bell. Weirdly I woke up this morning to an abuse complaint from my hosting provider after years of no issues.

Decronym@lemmy.decronym.xyz on 07 Apr 2024 10:05 collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
NAS Network-Attached Storage
VPN Virtual Private Network

3 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.

[Thread #662 for this sub, first seen 7th Apr 2024, 10:05] [FAQ] [Full list] [Contact] [Source code]