gluetun-qbittorrent-port-manager
Automatically updates the listening port for qbittorrent to the port forwarded by gluetun.
100K+
Automatically updates the listening port for qbittorrent to the port forwarded by Gluetun.
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.
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:/tmp/gluetun).
Finally, add the following snippet to your docker-compose.yml, substituting the default values for your own.
...
gluetun-qbittorrent-port-manager:
image: snoringdragon/gluetun-qbittorrent-port-manager:latest
restart: unless-stopped
volumes:
- /yourfolder:/tmp/gluetun #Set "yourfolder" to the same directory you used for Gluetun
network_mode: "service: gluetun"
environment:
QBITTORRENT_SERVER: localhost
QBITTORRENT_PORT: 8080
QBITTORRENT_USER: admin
QBITTORRENT_PASS: adminadmin
PORT_FORWARDED: /tmp/gluetun/forwarded_port
...
Content type
Image
Digest
sha256:679b7a92c…
Size
7.4 MB
Last updated
over 2 years ago
docker pull snoringdragon/gluetun-qbittorrent-port-manager