Skip to main content

QBittorrentVPN (binhex)

Docs

AirVPN provider

AirVPN users will need to generate a unique OpenVPN configuration file by using the following link https://airvpn.org/generator/

  1. Please select Linux and then choose the country you want to connect to
  2. Save the ovpn file to somewhere safe
  3. Start the qbittorrentvpn docker to create the folder structure
  4. Stop qbittorrentvpn docker and copy the saved ovpn file to the /config/openvpn/ folder on the host
  5. Start qbittorrentvpn docker
  6. Check supervisor.log to make sure you are connected to the tunnel

AirVPN users will also need to create a port forward by using the following link https://airvpn.org/ports/ and clicking Add. This port will need to be specified in the qBittorrent configuration file located at /config/qbittorrent/config/qbittorrent.conf.

AirVPN example

version: "3.3"
services:
  arch-qbittorrentvpn:
    cap_add:
      - NET_ADMIN
    ports:
      - 6881:6881
      - 6881:6881/udp
      - 8992:8992
      - 8118:8118
    container_name: qbittorrentvpn
    volumes:
      - /srv/.../Files/QBittorrentVPN/data:/data
      - /srv/.../Files/QBittorrentVPN/config:/config
      - /srv/.../Files/QBittorrentVPN/downloads:/downloads
      - /etc/localtime:/etc/localtime:ro
    environment:
      - VPN_ENABLED=yes
      - VPN_PROV=airvpn
      - VPN_CLIENT=openvpn
      - ENABLE_PRIVOXY=yes
      - ENABLE_STARTUP_SCRIPTS=no
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1 # Don't change
      - VPN_INPUT_PORTS=1234
      - VPN_OUTPUT_PORTS=5678
      - DEBUG=true
      - WEBUI_PORT=8992
      - UMASK=000
      - PUID=998
      - PGID=100
    image: binhex/arch-qbittorrentvpn

 

IMPORTANT
Please note 'VPN_INPUT_PORTS' is NOT to define the incoming port for the VPN, this environment variable is used to define port(s) you want to allow in to the VPN network when network binding multiple containers together, configuring this incorrectly with the VPN provider assigned incoming port COULD result in IP leakage, you have been warned!.