Jump to content
Not connected, Your IP: 216.73.216.33
Sign in to follow this  
Print8956

Gluetun port forwarding not seeming to work

Recommended Posts

Hi,

I've read I think all posts in this forum related to this problem and whatever I try, I do not get it to work. ChatGPT and Gemeni were also useless in this scenario unfortunately, so I hope for someone to spot the error.
The situation:
- I have a port forwarded in the client area
- Connection is made successfully (confirmed in AirVPN portal)
- Gluetun is configured to accept this port in the firewall (confirmed in the logs)
- Port check on the AirVPN website comes back negative (Connection refused, hinting at issues with the gluetun config)
- QBittorrent download port correctly configured but shows red connection on 'tun0' interface, any interface shows yellow (firewalled). Set to listen to IP4 addresses
- IP is verified to come through VPN in all containers I expect them to, prowlarr has no issues with traffic for example

I don't understand what I am missing. Would someone be able to spot the issue? Please let me know if you require more details!

docker-compose.yaml

networks:
  arr-network:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: "172.30.172.0/24"
    enable_ipv6: false
services:
  gluetun:
    image: qmcgaw/gluetun:latest
    container_name: gluetun
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    devices:
      - /dev/net/tun:/dev/net/tun
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PUBLIC_KEY=$airvpn_wg_pub_key
      - WIREGUARD_PRIVATE_KEY=$airvpn_wg_priv_key
      - WIREGUARD_PRESHARED_KEY=$airvpn_wg_preshared_key
      - WIREGUARD_ADDRESSES=$airvpn_wg_addresses
      - SERVER_COUNTRIES=Sweden
      - FIREWALL_VPN_INPUT_PORTS=49192
      - FIREWALL_OUTBOUND_SUBNETS=192.168.2.0/24,172.30.172.0/24
      - DNS_ADDRESS=$airvpn_dns
      - TZ=$timezone
    ports:
      - 9080:9080 # qbittorrent web GUI, port number can be changed BUT it must match WEBUI_PORT in qbittorrent service environment
      - 9696:9696
      - 49192:49192 # Also add to TORRENTING_PORT in qbittorrent
      - 49192:49192/udp
    networks:
      - arr-network
    volumes:
      - gluetun_config:/gluetun
    restart: unless-stopped
  qbittorrent:
    image: ghcr.io/linuxserver/qbittorrent:5.1.0
    container_name: qbittorrent
    cap_add:
      - NET_ADMIN
    network_mode: service:gluetun
    depends_on:
      gluetun:
        condition: service_started
    environment:
      - PUID=1000
      - PGID=997
      - TZ=$timezone
      - WEBUI_PORT=9080
      - DOCKER_MODS=arafatamim/linuxserver-io-mod-vuetorrent
      - TORRENTING_PORT=49192
    volumes:
      - qbit_config:/config
      - media:/media
    restart: unless-stopped
  prowlarr:
    image: lscr.io/linuxserver/prowlarr:latest
    container_name: prowlarr
    cap_add:
      - NET_ADMIN
    network_mode: service:gluetun
    depends_on:
      gluetun:
        condition: service_started
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=$timezone
    volumes:
      - prowlarr_config:/config
    restart: unless-stopped
  sonarr:
    image: ghcr.io/linuxserver/sonarr
    container_name: sonarr
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=997
      - TZ=$timezone
    volumes:
      - sonarr_config:/config
      - media:/media
    ports:
      - 8989:8989
    networks:
      - arr-network
    restart: unless-stopped
  radarr:
    image: ghcr.io/linuxserver/radarr
    container_name: radarr
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=997
      - TZ=$timezone
    volumes:
      - radarr_config:/config
      - media:/media
    ports:
      - 7878:7878
    networks:
      - arr-network
    restart: unless-stopped
  bazarr:
    image: lscr.io/linuxserver/bazarr
    container_name: bazarr
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=$timezone
    volumes:
      - bazarr_config:/config
      - media:/media
    ports:
      - 6767:6767
    networks:
      - arr-network
    restart: unless-stopped
volumes:
  gluetun_config:
  qbit_config:
  prowlarr_config:
  sonarr_config:
  radarr_config:
  bazarr_config:
  media:
    driver_opts:
      type: cifs
      o: username=$nasUser,password=$nasPass,file_mode=0777,dir_mode=0777,noperm
      device: $nasMediaPath

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...