t-anc / GSP-Qbittorent-Gluetun-sync-port-mod

Docker mod for Linuxserver's Qbittorrent image to sync gluetun's forwarded port. Can also work with any qBittorrent image as a standalone container.
GNU General Public License v3.0
76 stars 4 forks source link

Error retrieving port from Gluetun API #1

Closed Powablocks closed 6 months ago

Powablocks commented 6 months ago

Hello, I'm trying to use this mod but it doesn't find the port from the API :

I'm using mullvad as vpn provider. It is configured with WireGuard. My docker compose config for the stack : `services: gluetun: image: qmcgaw/gluetun:latest container_name: gluetun

line above must be uncommented to allow external containers to connect. See https://github.com/qdm12/gluetun/wiki/Connect-a-container-to-gluetun#external-container-to-gluetun

restart: always
cap_add:
  - NET_ADMIN
devices:
  - /dev/net/tun:/dev/net/tun
ports:
  - 8888:8888/tcp # HTTP proxy
  - 8388:8388/tcp # Shadowsocks
  - 8388:8388/udp # Shadowsocks
  - 8081:8081
  - 6881:6881
  - 6881:6881/udp
volumes:
  - /docker_volumes/gluetun:/gluetun
environment:
  # See https://github.com/qdm12/gluetun/wiki
  - VPN_SERVICE_PROVIDER=mullvad
  - VPN_TYPE=wireguard
  # Wireguard:
  - WIREGUARD_PRIVATE_KEY=...
  - WIREGUARD_ADDRESSES=10.68.20.132/32
  - SERVER_HOSTNAMES=fr-par-wg-002,fr-par-wg-005
  # Timezone for accurate log times
  - TZ=Europe/Paris
  - VPN_PORT_FORWARDING=on
  - VPN_PORT_FORWARDING_PROVIDER=protonvpn

qbittorrent: image: linuxserver/qbittorrent:latest container_name: qbittorrent
network_mode: "service:gluetun" depends_on:

As anyone had this issue and was able to resolved it ?

t-anc commented 6 months ago

Hi ! I Will take a look in the afternoon.

At first glance, i can see that you are using mullvad but the "VPN_PORT_FORWARDING_PROVIDER=protonvpn". Is that a working setup ?

In gluetun's logs, are you able to see the currently forwarded port ?

Regards, Tanc

Powablocks commented 6 months ago

Thank, I am setting the forwarding provider because mullvad is not possible at default so it ask for pia or proton. Yes I can see it in gluetun : image

Powablocks commented 6 months ago

One thing I see in qbittorrent logs is that it contact gluetun on "http://localhost:8000/v1/openvpn/portforwarded" but as I'm using wireguard, is it possible the url is different ? I will try to add the real ip, maybe localhost is not retreiving it

Powablocks commented 6 months ago

I just tried with proton vpn and it works, the problem is from the vpn port forwarding not working with mullvad i think.

Thanks for the help :)

t-anc commented 6 months ago

No problem :)

To answer the question, the URL is the same for wireguard and openvpn. (see here : https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md )

I'll write a troubleshooting helper when I have some time.