47

Are there any good docker containers that have an openvpn + qbittorrent configuration setup in such a way that the torrents won't run if the vpn isn't running?

you are viewing a single comment's thread
view the rest of the comments
[-] Toribor@corndog.uk 2 points 1 year ago* (last edited 1 year ago)

I run wireguard in one container (as a client connected to Mullvad), and then qBittorent in another container but using the network of the wireguard container.

Then I just set up routing rules in wireguard to allow my local network to be exempted from the tunnel so I can reach the web interface of qBittorent.

All my torrent traffic goes over the VPN, I can still reach the webui and none of my other containers are affected. Super simple and very reliable.

[-] dustojnikhummer@lemmy.world 2 points 1 year ago

I have my qbittorrent behind Gluetun and port forward the web interface port through Gluetun

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: qbittorrent_vpn
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_SERVICE_PROVIDER=
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY==
      - WIREGUARD_ADDRESSES=
      - SERVER_COUNTRIES=
      - TZ=Europe/Prague
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped
    networks:
      - traefik

  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - TZ=Europe/Prague
      - WEBUI_PORT=8080
    volumes:
      - /docker/containers/qbittorrent/config:/config
      - /docker/containers/qbittorrent/downloads:/downloads
    restart: unless-stopped
    network_mode: "service:gluetun"

networks:
  traefik:
    external: true
[-] Toribor@corndog.uk 1 points 1 year ago

Very nice! This is basically exactly what I'm doing except I'm doing it in ansible and using the linuxserver/wireguard container.

[-] dustojnikhummer@lemmy.world 1 points 1 year ago

I went with Gluetun because they work with either OVPN or Wireguard (depends on what you configure in compose) and I have already used it through Truecharts

this post was submitted on 08 Jul 2023
47 points (98.0% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54420 readers
344 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS