I am trying to get gluetun setup with sab and deluge and it comes up with this error when trying to connect gluetun to mullvad.

I’ve confirmed that the private key and addresses are as per the .conf that gets downloaded from the mullvad set up page.

This is my compose.yml for the gluetun part

services:
  gluetun:
    image: qmcgaw/gluetun:latest
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_SERVICE_PROVIDER=mullvad
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=[redacted]
      - WIREGUARD_ADDRESSES=[redacted]
      - SERVER_COUNTRIES=Canada
    volumes:
      - ./gluetun/config:/gluetun
    ports:
      - "8112:8112"   # Deluge Web UI (exposed via gluetun)
      - "58846:58846" # Deluge daemon (optional)
      - "8019:8080"   # SABnzbd Web UI (exposed via gluetun)
      - "9090:9090"   # example SABnzbd additional port if needed
    restart: unless-stopped
    networks:
      - vpn-net

Anyone got any ideas? TIA :)

    • skoell13@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      This is my setup

      sabnzbd:
          ...
          restart: unless-stopped
          network_mode: "service:gluetun"
      
        gluetun:
          image: qmcgaw/gluetun
          container_name: gluetun
          cap_add:
            - NET_ADMIN
          environment:
            - VPN_SERVICE_PROVIDER=custom
            - VPN_TYPE=wireguard
          devices:
            - /dev/net/tun:/dev/net/tun
          ports:
            - 9090:8080 # SABnzbd webui port forwarding
          volumes:
            - ./Wireguard/wg0.conf:/gluetun/wireguard/wg0.conf:ro
          restart: unless-stopped
      

      Note how i explicitly tell sabnzbd container to use gluetun as a network.

      Afaik, with your setup you simply run both containers in the same network so that both can reach each other.