Skip to content

Automatically updates the listening port for qbittorrent to the port forwarded by gluetun.

License

Notifications You must be signed in to change notification settings

plaexmaster/gluetun-qbittorrent-port-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gluetun-qbittorrent Port Manager

Automatically updates the listening port for qbittorrent to the port forwarded by Gluetun.

Description

Gluetun has the ability to forward ports for supported VPN providers, but qbittorrent does not have the ability to update its listening port dynamically. Because of this, I wrote this short script available as a docker container which automatically detects changes to the forwarded_port file created by Gluetun and updates the qbittorrent's listening port.

Setup

First, ensure you are able to successfully connect qbittorrent to the forwarded port manually (can be seen by a green globe at the bottom of the WebUI).

Then add a mounted volume to Gluetun (e.g. /yourfolder:/gluetun).

Finally, add the following snippet to your docker-compose.yml, substituting the default values for your own.

...

  gluetun-qbittorrent-port-manager:
    image: gluetun-qbittorrent-port-manager
    container_name: gluetun-qbittorrent-port-manager
    volumes:
      - /yourfolder:/gluetun #Set "yourfolder" to the same directory you used for Gluetun
    network_mode: "service: gluetun"
    environment:
      QBITTORRENT_SERVER: localhost #change this to your own
      QBITTORRENT_PORT: 8080
      QBITTORRENT_USER: admin #change this to your own
      QBITTORRENT_PASS: adminadmin #change this to your own
      PORT_FORWARDED: /gluetun/forwarded_port
    restart: unless-stopped

...

About

Automatically updates the listening port for qbittorrent to the port forwarded by gluetun.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 69.3%
  • Dockerfile 30.7%