Transmission with OpenVPN

I have been using Transmission using a guide from on here. Has been working flawlessly until my VPN (trust.zone) updated all of their connection names. When I try an recreate the container for transmission it comes up with a list of “usable” names, but it’s all the old ones. I have no idea who to ask or how to get those updated. Anyone point me in a correct direction?

Seems the only thing you need to do is change the -e variables when creating the container. I assume something like:

-e OPENVPN_PROVIDER=TRUSTZONE
-e OPENVPN_CONFIG=Canada-Ontario

Edit: sorry, totally missed your point

Usually, VPN providers provide (duh) a repository where you can get the .ovpn files you want to use. Download it, and follow the instructions in documentation (Supported providers - docker-transmission-openvpn)

Add a new volume mount to your docker run command that mounts your config file: -v /path/to/your/config.ovpn:/etc/openvpn/custom/default.ovpn

Then you can set OPENVPN_PROVIDER=CUSTOMand the container will use the config you provided. NOTE: Your .ovpn config file probably contains a line that says auth-user-pass. This will prompt OpenVPN to ask for the username and password. As this is running in a scripted environment that is not possible. Change it for auth-user-pass /config/openvpn-credentials.txt which is the file where your OPENVPN_USERNAME and OPENVPN_PASSWORD variables will be written to.

I just realized my Transmission wasn’t working and couldn’t figure out why, until I saw that Trust.zone just updated everything. I managed to get it working a few minutes ago.

Go to Trust.zone and download your new ovpn file from whatever location you want to connect to (click that you do not want a userpass.txt file). Also, copy your VPN username and password from this page. It is different than your normal Trust.zone login info and will be needed.

Edit the ovpn file with a text editor and change ‘auth-user-pass’ to ‘auth-user-pass /config/openvpn-credentials.txt’ (that is where the container puts your OPENVPN_USERNAME and OPENVPN_PASSWORD variables)

Change the new ovpn filename to default.ovpn. You’ll need the path of where that ovpn file is to build the new container.

Here’s the command I ran to get myself connected back up with haugene/transmission-openvpn (you’ll need to change the path to your new ovpn file, put in the weird VPN username and password, and you may have to enter different subnets under LOCAL_NETWORK depending on your particular config):

docker run --cap-add=NET_ADMIN -d \

-v /mnt/datalocation/:/data \

-v /etc/localtime:/etc/localtime:ro \

-v /path/to/your/ovpn/file/default.ovpn:/etc/openvpn/custom/default.ovpn \

-e CREATE_TUN_DEVICE=true \

-e OPENVPN_PROVIDER=CUSTOM \

-e OPENVPN_USERNAME=trustzone username \

-e OPENVPN_PASSWORD=trustzone password \

-e WEBPROXY_ENABLED=false \

-e LOCAL_NETWORK=192.168.1.0/24,10.6.0.0/24 \

-e “TRANSMISSION_SCRAPE_PAUSED_TORRENTS_ENABLED=false” \

-e “OPENVPN_OPTS=–inactive 3600 --ping 10 --ping-exit 60” --restart=always \

--log-driver json-file \

--log-opt max-size=10m \

-p 9091:9091 \

haugene/transmission-openvpn

Hope that helps.

Thanks. With yours and u/bmxtiger help I got there.

I’ll give it a try. Thanks.

THANKS!!! Took a little trying over and over on my end, but I finally figured it out.

Yeah, it was a pain and I’m sure I’ll forget what I did the next time it happens. Hopefully people can find this that are having the same issue.