Jump to content

How to run Tranmission using Gluetun VPN Client


FunkyBuddha

Recommended Posts

Posted

Here's a sample docker-compose for running Transmission using the Gluetun VPN Client. I've bolded the things that need changing. You will notice that the ports are not defined in Transmission. You need to expose them in the Gluetun service. All the VPN information should be in your VPN's config file. I hope this helps.

 

Docker Compose:

Quote

services:
  gluetun1:
    image: qmcgaw/gluetun
    # container_name: gluetun
    # line above must be uncommented to allow external containers to connect.
    # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8888:8888/tcp # HTTP proxy
      - 9091:9091/tcp #transmission
      - 9091:9091/udp #transmission
      - 33291:33291 #transmission
      - 33291:33291/udp #transmission

    volumes:
      - /path/to/AppData/Config/gluetun:/gluetun
    environment:
      # See https://github.com/qdm12/gluetun-wiki/tree/main/setup#setup
      - VPN_SERVICE_PROVIDER=protonvpn
      - VPN_TYPE=wireguard
      - DNS_ADDRESS=CHANGE_THIS
      - VPN_PORT_FORWARDING=on
      - VPN_PORT_FORWARDING_PROVIDER=protonvpn
      - HTTPPROXY=on
      # Wireguard:
      - WIREGUARD_ADDRESSES=CHANGE_THIS
      - WIREGUARD_ENDPOINT_IP=CHANGE_THIS
      - WIREGUARD_PRIVATE_KEY=CHANGE_THIS
      - WIREGUARD_PUBLIC_KEY=CHANGE_THIS
      - WIREGUARD_ALLOWED_IPS=CHANGE_THIS
      - WIREGUARD_PERSISTENT_KEEPALIVE_INTERVAL=25s
      - SERVER_COUNTRIES="United Kingdom"
      # Timezone for accurate log times
      - TZ=CHANGE_THIS
      # Server list updater
      # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
#      - UPDATER_PERIOD=

  transmission1:
    image: lscr.io/linuxserver/transmission:latest
    container_name: transmission1
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=CHANGE_THIS
    volumes:
      - /path/to/AppData/Config/transmission1:/config
      - /path/to/Downloads:/downloads
    restart: always
    network_mode: "service:gluetun1"

 

  • Thanks 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...