How to configure my transmission to automatically bring up the VPN?

bremen15@feddit.de to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com – 19 points –

I read that was highly recommend, and looked closer into the config options for transmission torrent client on Debian. I don't see any options in that regard. Where can I find instructions?

11

Use docker with something like gluetun and run transmission docker sharing gluetun network.

I know you're asking about transmission, but.. Qbittorrent has an option in the GUI that allows you to specify what network interface it uses to communicate through. Therefore if your VPN isn't up, it won't use your normal network. And if your VPN drops out, it also won't use your normal network. Just another option in case you're interested.

I use qbittorrent in a docker container which sits on the network stack of another wireguard container connected to mullvad.

Kinda like this, but with VMs, Qubes is a option to ensure you never leak. And there are many guides on setting up VPN vms (mullvad even has a article).

Qubes has a bit of a learning curve, but it's rewarding.

is there any guide on how to do this?

not really.

It's pretty easy as far as docker configs go.

Get a wireguard container, I think I use one from linuxserver IIRC.

Then get a qbittorrent (or other torrent client) container, and set it's network to use the wireguard container. It's as easy as network: wireguard_container_name in your compose file or something like that anyway.

Also, VPN usually have a killswitch feature where it turn off the connection if the VPN stops working.