/sc_assets/441/logo.png

Docker Transmission OpenVPN

Last updated by Shayne M on July 23, 2021 12:11

Github:  https://github.com/haugene/docker-transmission-openvpn

Documentation: https://haugene.github.io/docker-transmission-openvpn/

The Docker Transmission OpenVPN tutorial is useful if you wish to use Transmission web client using VPNSecure VPN Service.

  • In Docker > Container > Stacks, you should run the Docker Compose File below (After changing required settings)
    • Pay attention to the paths
    • For example - YOUR-PATH-HERE/Config/OVPN/:/etc/openvpn/custom/
  • Then copy your unique configuration files downloaded from your area client in vpnsecure.me to the path of Ovpn you defined in the script above.
    • ca.crt
    • your_username.key
    • your_username.crt
    • dh2048.pem
    • auth.txt – just a file with your vpnsecure.me password
    • default.ovpn file as attached, it´s here where you choose the server/city you want to connect/use in Transmission

You can access Transmission from the following URL 

http://localhost:8880/transmission/web

You can test Transmission for leaks using https://doileak.com make sure you selected the "torrent" test checkbox.

Docker Compose File (Check and change settings) 

transmission:
    container_name: transmission
    image: haugene/transmission-openvpn:latest
    restart: always
    cap_add:
      - NET_ADMIN # This runs the container with raised privileges
    devices:
      - /dev/net/tun
    ports:
    - 9191:9191 #GUI Port
    - 8888:8888 #Transmission Port
    - 8080:8080
    dns:
      - 1.1.1.1
      - 1.0.0.1
    volumes:
      - /docker/transmission-vpn:/data
      - /docker/shared:/shared
      - /YOUR-PATH-HERE/Config/OVPN/:/etc/openvpn/custom/
    environment:
      - OPENVPN_PROVIDER=CUSTOM
      - OPENVPN_USERNAME=YOUR_USERNAME_HERE
      - OPENVPN_PASSWORD=YOUR_PASSWORD_HERE
      - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
      - LOCAL_NETWORK=192.168.*.0/24 #CHECK IF THIS IS CORRECT
      - PUID=998
      - PGID=100
      - TZ=Europe/Lisbon #${TZ}
      - TRANSMISSION_RPC_HOST_WHITELIST="127.0.0.1,192.168.*.*" #CHECK IF THIS IS CORRECT
proxy:
    image: haugene/transmission-openvpn-proxy:latest
    restart: always
    ports:
      - 8880:8080
      - 9091:9091
    links:
      - transmission
    volumes:
      - /etc/localtime:/etc/localtime:ro

Example default.ovpn file

client
proto udp
dev tun
dh dh2048.pem
ca /etc/openvpn/custom/ca.crt
cert /etc/openvpn/custom/your_username.crt
key /etc/openvpn/custom/your_username.key
askpass /etc/openvpn/custom/auth.txt #TXT FILE WITH JUST THE PASSWORD ON IT
remote us3.bukbukimachicken.me 1191 #VPNSECURE SERVER OF YOUR CHOICE
cipher AES-256-CBC
verb 2
mute 20
comp-lzo
persist-key
persist-tun
float
resolv-retry infinite
nobind
auth-nocache
remote-cert-tls server

VPNSecure Provides Secure VPN servers in over 45+ Countries

If you are a looking for a versatile easy to use VPN service, checkout Today