The original post: /r/mullvadvpn by /u/some_throwaway2723 on 2024-11-05 16:24:18.

Two years ago I set up a wireguard container to connect to mullvad. A few other containers (firefox and qbittorrent) use the wireguard container for their traffic.

This setup has been humming along until yesterday, when both qbittorrent and firefox stopped being able to connect to the internet anymore.

What should I check for? When I set this up I downloaded a wg0.conf from mullvad. It has some hardcoded keys and addresses. Do they change their keys or addresses periodically meaning that I need to update my wg0.conf?

Again, nothing changed in my configuration recently, mullvad just stopped accepting my traffic. I still have time on my mullvad account. Relevant part of my docker-compose.yml

  firefox:
    image: lscr.io/linuxserver/firefox:latest
    container_name: firefox
    network_mode: service:wireguard
    depends_on:
      - wireguard
        #    security_opt:
        #      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
    volumes:
      - ./firefox-conf:/config
    shm_size: "2gb"
    restart: unless-stopped

  wireguard:
    image: lscr.io/linuxserver/wireguard:latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - LOG_CONFS=true #optional
    ports:
      - 3001:3000
      - 8080:8080
    volumes:
      - ./mullvad:/config
      - /lib/modules:/lib/modules
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
        #  - net.ipv6.conf.all.disable_ipv6=0
    restart: unless-stopped

  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent
    container_name: qbittorrent
    network_mode: service:wireguard
    depends_on:
      - wireguard
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - WEBUI_PORT=8080
    volumes:
      - ./qbit:/config
      - /all:/all
    restart: unless-stopped