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?

@[email protected]
link
fedilink
English
22Y

So question does a vpn in a docker container directly tunnel that docker to the vpn basically not touching anything outside of it(i.e home ip/net)?

body_by_make
creator
link
fedilink
English
32Y

Yes, it can only affect the network of the container

@[email protected]
link
fedilink
English
22Y

Ah interesting. Might be worth looking into the saltbox someone posted above. I currently use a seedbox service

@[email protected]
link
fedilink
English
2
edit-2
2Y

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.

@[email protected]
link
fedilink
English
22Y

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
@[email protected]
link
fedilink
English
12Y

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

@[email protected]
link
fedilink
English
12Y

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

@[email protected]
link
fedilink
English
12Y

Now you got me thinking Might actually make a post asking for an equivalent usenet (box) to have a usenet and seedbox on prem:D

body_by_make
creator
link
fedilink
English
12Y

That Saltbox one can be used for both Usenet or torrents

@[email protected]
link
fedilink
English
22Y

haugene/docker-transmission-openvpn might be what you’re looking for. I’ve had success with that container in the past.

@[email protected]
link
fedilink
English
12Y

Can confirm have been running this for years now without much issue

body_by_make
creator
link
fedilink
English
12Y

This looks cool, but I think I’m missing how this installs in a docker container. I feel stupid for being confused by this 🤔

fiofiofio
link
fedilink
62Y

The binhex container has worked well for me on Unraid.

body_by_make
creator
link
fedilink
12Y

This actually looks basically exactly like what I want, but only runs on arch. I do have an arch server but it’s not my normal tor server. Is there a debian version of this? If not it’s cool, I might put it on my arch server, it’d just be easier to keep it on my existing tor server.

Arch is just the base that is used for the containers. It doesn’t matter what your host OS is.

MadCybertist
link
fedilink
32Y

I second this. I prefer their deluge container but really like how binhex has things set up.

body_by_make
creator
link
fedilink
English
12Y

Well that looks really neat

@[email protected]
link
fedilink
English
12Y

Just fyi, not a docker application

Mac
link
fedilink
English
12Y

Good lxc container for those just starting out tho

@[email protected]
link
fedilink
English
12Y

Asks to be installed as root, nah

@[email protected]
link
fedilink
English
2
edit-2
2Y

I can give you my Gluetun+QBittorrent compose file, but I use it with Wireguard.

Once you are in the qbittorrent webUI make sure to bind it to the VPN port, which should be tun0.

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
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
[email protected]
Create a post
⚓ A community devoted to in-depth debate on topics concerning digital piracy, 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

4. Don’t be repetitious, spam, harass others, or submit low-quality posts

5. Don’t post questions already answered. READ THE WIKI


Image


Loot, Pillage, & Plunder


💰 Please help cover server costs.


  • 1 user online
  • 193 users / day
  • 35 users / week
  • 201 users / month
  • 803 users / 6 months
  • 0 subscribers
  • 530 Posts
  • 9.76K Comments
  • Modlog