-
PIA changes the forwarded port every 60 days, which gluetun publishes to forwarded_port in the config directory. Has anyone created a script to auto-update the qbittorrent config with the new port? Ideally I am looking for a docker-compose option so that I can add it to my gluetun-qbit-etc yaml file. Thanks y'all |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 19 replies
-
I have in synology running every X timer the next script:
I ran it with: docker exec qbittorrent sh -c "/gluetun/port-tool-gluetun.sh" My qbittorrent container (linuxserver) has to have access to the gluetun folder when creating it, in compose:
IMPORTANT: In Qbittorrent settings, in the WEBUI section, the following option has to be turned ON. "Bypass authentication for clients on localhost" If not, the curl instructions of the script will return Access Forbidden. |
Beta Was this translation helpful? Give feedback.
-
If you do not want to have the option "Bypass authentication for clients on localhost" checked, you can do:
Again, I ran it with: docker exec qbittorrent sh -c "/gluetun/port-tool-gluetun.sh" the qbittorrent container (linuxserver) has to have access to the gluetun container folder to read the vpn port and the script if this is located also there. |
Beta Was this translation helpful? Give feedback.
-
The docker compose solution I've been using is charlocharlie/qbittorrent-port-forward-file. Something like this (bare minimal): qbittorrent-port:
image: charlocharlie/qbittorrent-port-forward-file:latest
container_name: qbittorrent-port
environment:
- QBT_USERNAME=${QBITTORRENT_USER}
- QBT_PASSWORD=${QBITTORRENT_PASS}
- QBT_ADDR=${QBITTORRENT_URL}
- PORT_FILE=/config/forwarded_port
volumes:
- /something/gluetun/main/:/config:ro
restart: unless-stopped |
Beta Was this translation helpful? Give feedback.
-
Hi
I see the port being written
I keep getting this error: |
Beta Was this translation helpful? Give feedback.
-
If any of you wants to PR your solution to https://github.com/qdm12/gluetun-wiki feel free to have a go 😉 |
Beta Was this translation helpful? Give feedback.
-
I have an issue using the docker: I keep getting error: curl: (22) The requested URL returned error: 404 Looks like somehow the script cannot access qbittorrent? qbittorrent-port: If I change the qbt_address: it errors that it cannot find website so its making a connection. Username and password are correct when I login in the webbrowser of qbittorrent. |
Beta Was this translation helpful? Give feedback.
-
I have created a custom solution: https://github.com/AnonymousX86/qbt-updater-for-gluetun, as |
Beta Was this translation helpful? Give feedback.
-
I made https://github.com/TechClusterHQ/qbt-portchecker, which is a docker mod that you can add to the linuxserver.io container using a few env variables |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, The new options @TechClusterHQ @AnonymousX86 @carmatana as it says on the wiki page:
I'm happy to add a few (simple, not-too-long) shell script files in the Gluetun image and document them in the Wiki for people to use in their up/down commands. |
Beta Was this translation helpful? Give feedback.
-
I am afraid that the free version of protonvpn does not allow port forward |
Beta Was this translation helpful? Give feedback.
The docker compose solution I've been using is charlocharlie/qbittorrent-port-forward-file. Something like this (bare minimal):