MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
168 stars 92 forks source link

Docker - Error - OpenVPN - Mullvad #87

Closed redtripleAAA closed 3 years ago

redtripleAAA commented 3 years ago

Greetings,

I have an issue running Mullvad

Getting error

2021-02-04 01:38:03.654722 [info] VPN_ENABLED defined as 'yes'

2021-02-04 01:38:03.673947 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/mullvad_ca_tor.ovpn

dos2unix: converting file /config/openvpn/mullvad_ca_tor.ovpn to Unix format...

2021-02-04 01:38:03.696568 [info] VPN remote line defined as 'ca-tor-103.mullvad.net 1195'
2021-02-04 01:38:03.713498 [info] VPN_REMOTE defined as 'ca-tor-103.mullvad.net'
2021-02-04 01:38:03.730451 [info] VPN_PORT defined as '1195'
2021-02-04 01:38:03.747328 [info] VPN_PROTOCOL defined as 'udp'
2021-02-04 01:38:03.765048 [info] VPN_DEVICE_TYPE defined as 'tun0'
2021-02-04 01:38:03.782459 [info] LAN_NETWORK defined as '10.0.12.0/24'
2021-02-04 01:38:03.799306 [info] NAME_SERVERS defined as '1.1.1.1,1.0.0.1'
2021-02-04 01:38:03.816421 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2021-02-04 01:38:03.834377 [info] Adding 1.1.1.1 to resolv.conf
2021-02-04 01:38:03.851307 [info] Adding 1.0.0.1 to resolv.conf
2021-02-04 01:38:03.866950 [info] Starting OpenVPN...
Thu Feb  4 01:38:06 2021 Data Channel: using negotiated cipher 'AES-256-GCM'

Thu Feb  4 01:38:06 2021 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

Thu Feb  4 01:38:06 2021 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

Thu Feb  4 01:38:06 2021 ROUTE_GATEWAY 172.18.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:12:00:05

Thu Feb  4 01:38:06 2021 GDG6: remote_host_ipv6=n/a

Thu Feb  4 01:38:06 2021 ROUTE6: default_gateway=UNDEF

Thu Feb  4 01:38:06 2021 TUN/TAP device tun0 opened

Thu Feb  4 01:38:06 2021 TUN/TAP TX queue length set to 100

Thu Feb  4 01:38:06 2021 do_ifconfig, tt->did_ifconfig_ipv6_setup=1

Thu Feb  4 01:38:06 2021 /sbin/ip link set dev tun0 up mtu 1500

Thu Feb  4 01:38:06 2021 /sbin/ip addr add dev tun0 10.9.0.9/16 broadcast 10.9.255.255

Thu Feb  4 01:38:06 2021 /sbin/ip -6 addr add fdda:d0d0:cafe:1195::1007/64 dev tun0

RTNETLINK answers: Permission denied

Thu Feb  4 01:38:06 2021 Linux ip -6 addr add failed: external program exited with error status: 2

Thu Feb  4 01:38:06 2021 Exiting due to fatal error

Setup is Portainer >>> OpenMediaVault >>> VMWare Workstation >>> Windows 10 Pro

Your help would be appreciated.

J3G3 commented 3 years ago

Same issue. Seems to be IP6 related. I added the following to ovpn file and the tunnel is now working.

pull-filter ignore "dhcp-option DNS6" pull-filter ignore "tun-ipv6" pull-filter ignore "ifconfig-ipv6"

Be warned - I'm not strong w/ linux. Found this by digging around openvpn forums.

redtripleAAA commented 3 years ago

Thanks @J3G3 Mullvad support provided the same almost

From our LINUX guide:

Edit the OpenVPN configuration and make the following changes:

replace proto udp with proto udp4.
replace proto tcp with proto tcp4.
add pull-filter ignore "route-ipv6"
add pull-filter ignore "ifconfig-ipv6"

Be sure to verify that you have disabled IPv6 before adding these options, otherwise you will leak IPv6.

However, I switched to PIA VPN Provider as it's faster for me.

Thanks though