qBittorrent-Auto-Port-Forward

qBittorrent-Auto-Port-Forward

Docker app from Exes' Repository

Overview

Set qBittorrent's forwarded port by reading the port number from a file. Useful if you your qBittorrent container is bound to a VPN client and your VPN client outputs the forwarded port to a file. ### Made for use with docker-wireguard-pia: - **Environment variable:** `PORT_FORWARDING=1` - **Environment variable:** `PORT_PERSIST=1` - **Environment variable:** `PORT_FILE=/pia/forwarded_port.txt` - **Volume:** `/my/host/dir:/pia:rw` ### Or for use with gluetun: - **Environment variable:** `PRIVATE_INTERNET_ACCESS_VPN_PORT_FORWARDING=on` - **Environment variable:** `PRIVATE_INTERNET_ACCESS_VPN_PORT_FORWARDING_STATUS_FILE=/gluetun/forwarded_port.txt` - **Volume:** `/my/host/dir:/gluetun:rw`

Runtime arguments

Network
bridge
Shell
sh
Privileged
false
Extra Params
--restart unless-stopped

Template configuration

Port Forwarding FilePathro

Container path to the file containing the forwarded port number. The container path must be /config/forwarded_port.txt, but you can use other file types.

Target
/config/forwarded_port.txt
Default
/config/forwarded_port.txt
QBT_USERNAMEVariable

qBittorrent username.

Default
admin
QBT_PASSWORDVariable

qBittorrent password.

Default
adminadmin
QBT_ADDRVariable

HTTP URL for the qBittorrent web UI, with port.

Default
http://localhost:8080
PORT_FILEVariable

Container path to the file containing the forwarded port number. The container path must be /config/forwarded_port.txt, but you can use other file types.

Default
/config/forwarded_port.txt
Value
/config/forwarded_port.txt

Download Statistics

125,669
Total Downloads
9,383
This Month
8,463
Avg / Month

Total Downloads Over Time

Loading chart...

Details

Repository
charlocharlie/qbittorrent-port-forward-file
Last Updated2025-12-06
First Seen2025-03-14

Run qBittorrent-Auto-Port-Forward on Unraid.

qBittorrent-Auto-Port-Forward is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.