guillaumedsde / alpine-qbittorrent-openvpn

qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
https://guillaumedsde.gitlab.io/alpine-qbittorrent-openvpn/
GNU General Public License v3.0
216 stars 40 forks source link

Mullvad doesn't work without IPv6 support #111

Closed BasixKOR closed 2 years ago

BasixKOR commented 2 years ago

Information

Mullvad doesn't work without IPv6 support. The exact error phrase might be a little different depending on the environment, but mine was:

2022-01-06 21:38:01 /usr/sbin/ip-su -6 addr add fdda:d0d0:cafe:1300::1002/64 dev tun1
RTNETLINK answers: Permission denied
2022-01-06 21:38:01 Linux ip -6 addr add failed: external program exited with error status: 22022-01-06 21:38:01 Exiting due to fatal error

Current setup

information about your current setup

docker image tag (ex: python, latest, 32242d1 ...) latest
docker image hash (ex: 603b78e07727)

docker-compose.yml file or docker run command

how did you start the container? (don't forget to use backticks for creating a proper code block)

# I deployed it using Synology wizard. This is written to be as close to my setup as possible.
version: "3.3"
services:
  alpine-qbittorrent-openvpn:
    volumes:
      - "/volume1/video/torrents:/downloads"
      - "/volume1/docker/qbittorrent-config:/config"
    environment:
      - OPENVPN_PROVIDER=MULLVAD
      - OPENVPN_CONFIG=jp_all
      - OPENVPN_USERNAME=secret
      - OPENVPN_PASSWORD=m
      - LAN=192.168.50.0/24
    ports:
      - "9092:8080"
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest

Attempted Fix(es)

What you have tried in order to fix the issue (if anything)

Appending --pull-filter ignore ifconfig-ipv6 to OpenVPN option worked on docker-transmission-openvpn but after looking at source code I noticed there's no equivalent for OPENVPN_OPTS environment variable. This should be better discussed in a separate issue: #112.

Related issues

guillaumedsde commented 2 years ago

Hi, have you tried this suggested fix: --sysctl net.ipv6.conf.all.disable_ipv6=0 I tested locally and it seems to fix the issue

guillaumedsde commented 2 years ago

see #116

I'll close this issue in favour of #116