Skip to content

Conversation

@rudy2305
Copy link

@rudy2305 rudy2305 commented Aug 3, 2025

No description provided.

Comment on lines +44 to +50
This doesnt seem to work anymore with the latest versions of qBittorrent but there is a solution:

1. First you need to authenticate even if it is localhost
2. Grab the cookie from the session
3. Use cookie to post data to the API

`VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused -t 3 --save-cookies=cookies.txt --post-data "username=~admin_user~&password=~password_for_user~" http://127.0.0.1:8080/api/v2/auth/login; wget -O- --retry-connrefused -t 3 --load-cookies=cookies.txt --post-data "json={\"listen_port\":{{PORTS}}}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then please update and modify the above instructions instead of adding a block after stating this doesn't seem to work.
Thanks!

Comment on lines +46 to +48
1. First you need to authenticate even if it is localhost
2. Grab the cookie from the session
3. Use cookie to post data to the API
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify how to do this in more details?

@qdm12 qdm12 changed the title Update vpn-port-forwarding.md fix(setup/advanced/vpn-port-forwarding): update up command qbittorrent example Nov 13, 2025
@qdm12
Copy link
Owner

qdm12 commented Nov 13, 2025

I also think you missed

Web UI "Bypass authentication for clients on localhost" must be ticked (json key bypass_local_auth) so Gluetun can reach qBittorrent without authentication.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants