23

For a while I've used a docker image that read a file that gluetun updates with the current open port and then updates qbittorrent to use that port.

It seems that utility is no longer maintained.

Does anybody know of a solid replacement?

top 5 comments
sorted by: hot top new old
[-] BakedCatboy@lemmy.ml 7 points 6 months ago

Gluetun should be able to do this without any extra tools, check out the qbittorrent example on the gluetun wiki: https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/vpn-port-forwarding.md#qbittorrent-example

I do something similar for transmission, though I put it all in a script that I mount into the container so my command is just VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c "set-transmission-port {{PORTS}}"

[-] scoot@programming.dev 7 points 6 months ago

I have the qbittorrent web UI running in a separate container that's attached to my gluetun container. I use the VPN_PORT_FORWARDING_UP_COMMAND option in my gluetun container:

    environment:
      - VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORTS}}}" http://127.0.0.1:8072/api/v2/app/setPreferences 2>&1'

You may have to adjust the http://127.0.0.1:8072/ part based on your setup.

[-] brownmustardminion@lemmy.ml 4 points 6 months ago

The gluetun wiki's command didn't work for me, so I used yours and it worked flawlessly. Thank you.

The wiki uses {{PORT}} and it seems {{PORTS}} is the correct variable.

[-] dan@upvote.au 3 points 6 months ago

Why not use a provider like AirVPN that lets you use the same port number all the time?

[-] linuxguy@lemmy.gregw.us 2 points 6 months ago

Like the other two comments are saying: use a recent version of gluetun and its built in functionality.

this post was submitted on 22 Feb 2026
23 points (96.0% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

70318 readers
296 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

We heartily recommend visiting the free port of freemediaheckyeah (aka FMHY) while you sail the high seas, for all the freshest links the ocean has to offer.

📜 c/Piracy Wiki (Community Edition):

🏴‍☠️ Other communities

FUCK ADOBE!

Torrenting/P2P:

Gaming:


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 3 years ago
MODERATORS