Jump to content

[RESOLVED] Help with Docker Compose: qBittorrent + NordVPN Configuration Issue

Hi All,

I'm relatively new to using Docker and Docker Compose, and I've run into an issue that I can't figure out how to resolve. Any help would be greatly appreciated!

Here’s my setup:

Container 1: Hosts NordVPN

Container 2: Runs qBittorrent


I've configured the docker-compose file so that Container 2 depends on Container 1. When I start the containers, everything seems to run fine initially. However, when I try to download a torrent, the status is instantly marked as "stalled."

Here's what I've confirmed so far:

1. Both containers are getting the same public IP address.


2. Both containers can communicate with Google (tested with ping/curl).


3. qBittorrent works fine without going through the VPN.

 

As soon as I route Qbittorrent through the VPN container, it stops working again.

Has anyone encountered this issue before, or does anyone have suggestions on what I might be doing wrong?

Thanks in advance for your help!

 

 

Copy of my compose file:

services:
  # NordVPN service
  nordvpn:
    image: ghcr.io/bubuntux/nordlynx
    container_name: nordvpn
    cap_add:
      - NET_ADMIN
    environment:
      - PRIVATE_KEY= "insert key"
      - CONNECT=au
      - TECHNOLOGY=NordLynx
      - NET_LOCAL=192.168.0.0/24
    ports:
      - 6881:6881/tcp
      - 6881:6881/udp
      - 8080:8080/tcp
    sysctls:
      net.ipv6.conf.all.disable_ipv6: 1
    restart: unless-stopped
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
      - TZ='Australia/Brisbane'
      - WEBUI_PORT=8080
      - TORRENTING_PORT=6881
    volumes:
      - ./config:/config
      - /home/andrew/downloads:/downloads
    depends_on:
      - nordvpn
    network_mode: container:nordvpn  # Use the VPN container's network

 

Link to post
Share on other sites

Looks like I was able to resolve this by changing the network interface within qBittorrent WebUI advance setting. I had to select my interface wg0 (wireguards interface)

 

Reference credit: https://github.com/bubuntux/nordvpn/issues/402

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×