Hej everyone.

Until now I’ve used a linux install and vpn software (airvpn and eddie) when sailing the high seas. While this works well enough, there is always room for improvement.

I am in the process of setting up a docker stack which so far contains gluetun/airvpn and qbittorrent. Here is my compose file:

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
     - NET_ADMIN
    volumes:
      - /appdata/gluetun:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=
      - WIREGUARD_PRESHARED_KEY=
      - WIREGUARD_ADDRESSES=10.188.90.221/32,fd7d:76ee:e68f:a993:63b2:6cc0:fe82:614b/128
      - SERVER_COUNTRIES=
      - FIREWALL_VPN_INPUT_PORTS=
    ports:
      - 8070:8070/tcp
      - 60858:60858/tcp
      - 60858:60858/udp
    restart: unless-stopped

  qbittorrent: 
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent 
    network_mode: "service:gluetun" 
    environment: 
     - PUID=1000
     - PGID=100
     - TZ=Europe/Berlin
     - WEBUI_PORT=8070 
    volumes: 
     - /appdata/qbittorrent/config/:/config 
     - /data/videos/downloads:/downloads
    depends_on:
      - gluetun
    restart: always

My first problem was related to the ip adress. For some reason, when I use an IPV6 adress, I got this error in gluetun:

2023-10-06T17:30:42Z ERROR VPN settings: Wireguard settings: interface address is IPv6 but IPv6 is not supported: address fd7d:76ee:e68f:a993:63b2:6cc0:fe82:614b/128

Well, I removed that IPV6 and now everything works. Does anyone have a fix? :)

Now for the important part. I tested the setup with a linux iso and to my surprise - everything works. When I used ipleak.net or other websites, these websites only detect the ip from my vpn. Great.

Do I need to take any other precautions? I also bound the network interface tun0 in the qbit webui, just to be sure. When I stop the gluetun container, the webui stops working (as it should, but it is hard to check, if the download also stops). I’m just a bit paranoid because I don’t want to pay coin when downloading all the isos my heart desires.

Thank you so much for any input!

You need to enable IPv6 support in docker. This website helped me setting it up: https://collabnix.com/enabling-ipv6-functionality-for-docker-and-docker-compose/

@dampfnudel@lemmy.zip
link
fedilink
English
51Y

What is the upside to specifying the qbit container network_mode as service:gluetun in stead of container:gluetun. I read that it should be tied to the container, not the service but maybe that’s not correct?

It’s for specifying containers in the same or a different docker-compose:

https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md

@Pete90@feddit.de
creator
link
fedilink
English
11Y

I’ve simply copied what others did. There were a few guides which I’ve tried to aggregate as not to miss anything. I’ll look into it, thanks!

lemmyvore
link
fedilink
English
31Y

AFAIK service: and container: do the same thing.

service: and continer: do the same thing when run inside the same docker-compose.yml. When gluetun is run separately, you’ll need to reference service: in order to reference it because it’s outside the same compose file. The difference is slight, but noticeable if you’re running multiple compose files. HTH :)

@Sailing7@lemmy.ml
link
fedilink
English
31Y

What websites do you guys curl from cli to recieve only your own public ip and dns leaks?

deleted by creator

ipecho.net/plain

@privadesco@feddit.nl
link
fedilink
English
21Y

myip.wtf/json (gives nice info too)

@privadesco@feddit.nl
link
fedilink
English
2
edit-2
1Y

You can also use a socks5 server with container:gluetun and run qbt with 127.0.0.1 socks5. (not allowing it to connect to anything but that address in your firewall settings).

By the way you can do this with absolutely any socks5 supporting software (even browsers, ftp clients, etc).

Just set the firewall to allow the software executable to connect only to localhost/127.0.0.1 and you are done.

It’s split tunnel under your control.

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
!piracy@lemmy.dbzer0.com
Create a post
⚓ 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


💰 Please help cover server costs.

Ko-FiLiberapay


  • 1 user online
  • 219 users / day
  • 509 users / week
  • 927 users / month
  • 4.94K users / 6 months
  • 1 subscriber
  • 3.23K Posts
  • 79K Comments
  • Modlog