Skip to content

[BUG] Port forwarding with ProtonVPN and gluetun -- Connection status: Firewalled/Disconnected #452

Description

@LeoMerlino

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am running qBittorrent with gluetun. Gluetun is using ProtonVPN and port forwarding and assigns the open port to qBittorrent.
I have tested if qBittorrent can be accessed through the open port with iptables and netcat and packets get received and sent successfully.
For around a week it had been saying "Firewalled" but now it just says "Disconnected".
I have tried with a fresh qBittorrent configuration.

Expected Behavior

qBittorrent connects

Steps To Reproduce

  1. Use ProtonVPN port forwarding
  2. Check WebUI connection status

Environment

- OS: Debian Trixie
- How docker service was installed: apt-get

CPU architecture

aarch64

Docker creation

services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    depends_on:
      - gluetun
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - WEBUI_PORT=8113
      - TORRENTING_PORT=6881
    volumes:
      - ./appdata:/config
      - ./downloads:/downloads #optional
    stop_grace_period: "10s" #optional
    restart: unless-stopped
    network_mode: "service:gluetun"

  gluetun:
    image: qmcgaw/gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8113:8113
      - 8114:8114
      - 6881:6881
      - 6881:6881/udp
    environment:
      - VPN_SERVICE_PROVIDER=protonvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=redacted
      - SERVER_COUNTRIES=Germany
      # - SERVER_COUNTRIES=United Kingdom
      # - SERVER_CITIES=London
      - PORT_FORWARD_ONLY=on
      - FIREWALL_VPN_INPUT_ALLOW=192.168.0.0/24
      - FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/24
      - VPN_PORT_FORWARDING=on
      - VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- -nv --retry-connrefused --post-data "json={\"listen_port\":{{PORT}},\"current_network_interface\":\"{{VPN_INTERFACE}}\",\"random_port\":false,\"upnp\":false}" http://localhost:8113/api/v2/app/setPreferences 2>&1'
      - VPN_PORT_FORWARDING_DOWN_COMMAND=/bin/sh -c 'wget -O- -nv --retry-connrefused --post-data "json={\"listen_port\":0,\"current_network_interface\":\"lo\"}" http://localhost:8113/api/v2/app/setPreferences 2>&1'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions