Skip to content

Commit e853508

Browse files
authored
feat(vpn-port-forwarding): add qbittorrent port update example (#121)
1 parent 87ac183 commit e853508

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: setup/advanced/vpn-port-forwarding.md

+8
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ Notes:
3434
- one can bind mount a shell script in Gluetun and execute it with for example `VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c /gluetun/myscript.sh` - 💁 feel free to propose a pull request to add commonly used shell scripts for port forwarding!
3535
- the output of the command is written to the port forwarding logger within Gluetun
3636

37+
### qBittorrent example
38+
39+
`VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORTS}}}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1'`
40+
41+
For this to work, the qBittorrent web UI server must be enabled and listening on port `8080` and the Web UI "Bypass authentication for clients on localhost" must be ticked (json key `bypass_local_auth`) so Gluetun can reach qBittorrent without authentication.
42+
43+
Thanks to [@Marsu31](https://github.com/Marsu31)
44+
3745
## Allow a forwarded port through the firewall
3846

3947
For non-native integrations where you have a designated forwarded port from your VPN provider, you can allow it by adding it to the environment variable `FIREWALL_VPN_INPUT_PORTS`.

0 commit comments

Comments
 (0)