dustojnikhummer,

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.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">services:
</span><span style="color:#323232;">  gluetun:
</span><span style="color:#323232;">    image: qmcgaw/gluetun
</span><span style="color:#323232;">    container_name: qbittorrent_vpn
</span><span style="color:#323232;">    cap_add:
</span><span style="color:#323232;">      - NET_ADMIN
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - VPN_SERVICE_PROVIDER=
</span><span style="color:#323232;">      - VPN_TYPE=wireguard
</span><span style="color:#323232;">      - WIREGUARD_PRIVATE_KEY==
</span><span style="color:#323232;">      - WIREGUARD_ADDRESSES=
</span><span style="color:#323232;">      - SERVER_COUNTRIES=
</span><span style="color:#323232;">      - TZ=Europe/Prague
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 8080:8080
</span><span style="color:#323232;">      - 6881:6881
</span><span style="color:#323232;">      - 6881:6881/udp
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    networks:
</span><span style="color:#323232;">      - traefik
</span><span style="color:#323232;">
</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;">      - TZ=Europe/Prague
</span><span style="color:#323232;">      - WEBUI_PORT=8080
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - /docker/containers/qbittorrent/config:/config
</span><span style="color:#323232;">      - /docker/containers/qbittorrent/downloads:/downloads
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    network_mode: "service:gluetun"
</span><span style="color:#323232;">
</span><span style="color:#323232;">networks:
</span><span style="color:#323232;">  traefik:
</span><span style="color:#323232;">    external: true
</span>
Kururin,
zouhair,

Asks to be installed as root, nah

Cqrd,

Well that looks really neat

dustojnikhummer,

Just fyi, not a docker application

macgyver,

Good lxc container for those just starting out tho

zedricxks,
@zedricxks@lemmy.dbzer0.com avatar

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)?

Cqrd,

Yes, it can only affect the network of the container

zedricxks,
@zedricxks@lemmy.dbzer0.com avatar

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

Toribor,

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,

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

<pre style="background-color:#ffffff;">
<span style="color:#323232;">version: "3"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  gluetun:
</span><span style="color:#323232;">    image: qmcgaw/gluetun
</span><span style="color:#323232;">    container_name: qbittorrent_vpn
</span><span style="color:#323232;">    cap_add:
</span><span style="color:#323232;">      - NET_ADMIN
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - VPN_SERVICE_PROVIDER=
</span><span style="color:#323232;">      - VPN_TYPE=wireguard
</span><span style="color:#323232;">      - WIREGUARD_PRIVATE_KEY==
</span><span style="color:#323232;">      - WIREGUARD_ADDRESSES=
</span><span style="color:#323232;">      - SERVER_COUNTRIES=
</span><span style="color:#323232;">      - TZ=Europe/Prague
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 8080:8080
</span><span style="color:#323232;">      - 6881:6881
</span><span style="color:#323232;">      - 6881:6881/udp
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    networks:
</span><span style="color:#323232;">      - traefik
</span><span style="color:#323232;">
</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;">      - TZ=Europe/Prague
</span><span style="color:#323232;">      - WEBUI_PORT=8080
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - /docker/containers/qbittorrent/config:/config
</span><span style="color:#323232;">      - /docker/containers/qbittorrent/downloads:/downloads
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    network_mode: "service:gluetun"
</span><span style="color:#323232;">
</span><span style="color:#323232;">networks:
</span><span style="color:#323232;">  traefik:
</span><span style="color:#323232;">    external: true
</span>
Toribor,

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

dustojnikhummer,

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

zedricxks,
@zedricxks@lemmy.dbzer0.com avatar

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

Cqrd,

That Saltbox one can be used for both Usenet or torrents

clamzz,
Cqrd,

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,
fiofiofio avatar

The binhex container has worked well for me on Unraid.

MadCybertist,
MadCybertist avatar

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

Cqrd,

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.

please_lemmy_out,

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

microwavedgerbil,

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

MrReBot,

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • piracy@lemmy.dbzer0.com
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • osvaldo12
  • rosin
  • mdbf
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • Youngstown
  • Durango
  • Leos
  • normalnudes
  • ngwrru68w68
  • modclub
  • anitta
  • tacticalgear
  • ethstaker
  • GTA5RPClips
  • cubers
  • megavids
  • provamag3
  • cisconetworking
  • tester
  • JUstTest
  • lostlight
  • All magazines