Dasnap,
@Dasnap@lemmy.world avatar

This is the compose file I use, with Gluetun setup with ProtonVPN. I edited it to remove some personal machine stuff so adapt volumes to your liking.


<span style="color:#323232;">version: "2.1"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  jackett:
</span><span style="color:#323232;">    image: lscr.io/linuxserver/jackett:latest
</span><span style="color:#323232;">    container_name: jackett
</span><span style="color:#323232;">    network_mode: service:gluetun
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PUID=1000
</span><span style="color:#323232;">      - PGID=1000
</span><span style="color:#323232;">      - TZ=Europe/London
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - ./data:/config
</span><span style="color:#323232;">      - ./downloads:/downloads
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    depends_on:
</span><span style="color:#323232;">      - gluetun
</span><span style="color:#323232;">
</span><span style="color:#323232;">  qbittorrent:
</span><span style="color:#323232;">    image: lscr.io/linuxserver/qbittorrent:4.5.5-r0-ls291
</span><span style="color:#323232;">    container_name: qbittorrent
</span><span style="color:#323232;">    network_mode: service:gluetun
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PUID=1000
</span><span style="color:#323232;">      - PGID=1000
</span><span style="color:#323232;">      - TZ=Etc/UTC
</span><span style="color:#323232;">      - WEBUI_PORT=8084
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - a-place/qbittorrent/config:/config
</span><span style="color:#323232;">      - a-place/qbittorrent:/downloads
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    depends_on:
</span><span style="color:#323232;">      - gluetun
</span><span style="color:#323232;">
</span><span style="color:#323232;">  flaresolverr:
</span><span style="color:#323232;">    container_name: flaresolverr
</span><span style="color:#323232;">    network_mode: service:gluetun
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - LOG_LEVEL=info
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    image: ghcr.io/flaresolverr/flaresolverr:latest
</span><span style="color:#323232;">    depends_on:
</span><span style="color:#323232;">      - gluetun
</span><span style="color:#323232;">
</span><span style="color:#323232;">  gluetun:
</span><span style="color:#323232;">    image: qmcgaw/gluetun
</span><span style="color:#323232;">    container_name: gluetun
</span><span style="color:#323232;">    networks:
</span><span style="color:#323232;">      pirate_net:
</span><span style="color:#323232;">    cap_add:
</span><span style="color:#323232;">      - NET_ADMIN
</span><span style="color:#323232;">      - SYS_MODULE
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - VPN_SERVICE_PROVIDER=custom
</span><span style="color:#323232;">      - VPN_TYPE=wireguard
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 9117:9117 # Jackett
</span><span style="color:#323232;">      - 8084:8084
</span><span style="color:#323232;">      - 6881:6881
</span><span style="color:#323232;">      - 6881:6881/udp
</span><span style="color:#323232;">      - 8191:8191 # Flaresolverr
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - ./config/:/gluetun/wireguard/
</span><span style="color:#323232;">
</span><span style="color:#323232;">networks:
</span><span style="color:#323232;">  pirate_net:
</span><span style="color:#323232;">    driver: bridge
</span>
trolololol,

At this point I don’t know why you’d need docker or VPN to run a torrent and I’m too afraid to ask.

pruneaue,

People run their stuff in docker cause it tends to make the process more straight forward.
The question is specifically about isolating your torrent client to a VPN only network, that way leaks are impossible since if the VPN goes down, there are no other networks accessible to the container.

CrabAndBroom,

Doesn’t QBittorrent already have its own setting for that? Like you can set the network interface to wg-mullvad or whatever and then it won’t work outside of that? Or is the docker thing just for an extra layer of protection on top of that?

pruneaue,

Yeah qbitt has that but not all clients do

virtueisdead,

oh that’s really interesting. i should look into it; thanks

Appoxo,
@Appoxo@lemmy.dbzer0.com avatar

I use gluetun with sabnzbd
Not torrent tech but yeah.

I often read about not using two containers but instead to use a combi docker.

CornHead764,
java, (edited )

<span style="color:#323232;">$ cat Projects/qbittorrent/docker-compose.yml 
</span><span style="color:#323232;">version: "2.1"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  qbittorrent:
</span><span style="color:#323232;">    image: lscr.io/linuxserver/qbittorrent:latest
</span><span style="color:#323232;">    container_name: qbittorrent
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PUID=1000
</span><span style="color:#323232;">      - PGID=1000
</span><span style="color:#323232;">      - TZ=Europe/Berlin
</span><span style="color:#323232;">      - WEBUI_PORT=8081
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - /path/to/appdata/config:/config
</span><span style="color:#323232;">      - /home/username/Downloads/Torrents:/downloads
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 8081:8081
</span><span style="color:#323232;">      - 6881:6881
</span><span style="color:#323232;">      - 6881:6881/udp
</span><span style="color:#323232;">    restart: unless-stopped
</span>

The whole server is running under the VPN.

quaff, (edited )
@quaff@lemmy.ca avatar

I’ve pushed up my setup to Gitlab if you’d like to check it out! I use it with ProtonVPN, but can be adapted to be used with others.

gitlab.com/quaff/secure-torrenting

UntouchedWagons, (edited )
@UntouchedWagons@lemmy.ca avatar

qmcgaw/gluetun + ghcr.io/onedr0p/qbittorrent

jws_shadotak, (edited )

pastebin.com/7S6QBsSY

I tried formatting it on here but it doesn’t work.

gluetun + qBit

The compose file creates both and binds qBit to gluetun. I also have port forwarding set up through AirVPN.

Link, (edited )

Does this only tunnel qbittorrent through the VPN or all traffic on the device?

jws_shadotak,

Only qbit I have other stuff in that stack as well, like sonarr and radarr, that I cut out.

The network mode setting in docker acts as a bind. The port is exposed to the host in gluetun. If gluetun throws an error and shuts down, qBit WebUI is no longer accessible.

Scipitie, (edited )

Have exactly the same setup:

It tunnels everything that is bound to the same network (see the line with gluetun within the qbittorrent container.

And for anyone using a reverse proxy: that can run against the gluetun container with the bound containers port. (edit: in OPs example gluetun:8090 for qbittorrent web)

youngGoku,

Stopped reading at C:

jws_shadotak,

eh get fucked ya Linux fanboy. Go cry about which distro is best instead of putting me down for trying to help someone.

Chewy7324,

I’m not familiar with docker on Windows, but I believe it runs through a (well integrated) VM. Do you run it 24/7 on your desktop pc? If yes, do you notice a performance impact while e.g. gaming?

It’s surprising to me how docker managed to be the ultimate way to run services across all major OSs while only running on Linux specifically.

whereBeWaldo,

Linux users when freedom of choice exists

Lem453,

I also use glutun, works really well. Lots of VPNs are supported. Easy to add any docker container you want to it.

rambos,

This is the way, look no further

originalucifer,
@originalucifer@moist.catsweat.com avatar

gluetun for vpn, deluge for torrent

  • All
  • Subscribed
  • Moderated
  • Favorites
  • piracy@lemmy.dbzer0.com
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #