DyonR / docker-qbittorrentvpn

Docker container which runs a qBittorent-nox client with an optional WireGuard or OpenVPN connection
https://hub.docker.com/r/dyonr/qbittorrentvpn/
GNU General Public License v3.0
245 stars 67 forks source link

issue starting with wireguard vpn #75

Open temelj opened 2 years ago

temelj commented 2 years ago

Using docker-compose

qbittorrent:
  image: dyonr/qbittorrentvpn
  cap_add:
    - NET_ADMIN
  privileged: true
  ports:
    - "5959:8080" # qBittorrent WebUI
    - "5999:8999" # qBittorrent TCP Listening Port
    - "5999:8999/udp" # qBittorrent UDP Listening Port
  volumes:
    - "/home/temelj/Documents/docker-config/:/config" # sonarr config dir
    - "/mnt/main/downloads:/downloads" # not used but sonarr has a hissy fit if it doesn't exist
  environment:
    VPN_ENABLED: "yes"            #Enable VPN (yes/no)?
    VPN_TYPE: "wireguard"         #WireGuard or OpenVPN (wireguard/openvpn)?
    LAN_NETWORK: "192.168.1.1/23" #Comma delimited local Network's with CIDR notation
    #ENABLE_SSL: 'yes'            #Let the container handle SSL (yes/no)?
    #NAME_SERVERS: 1.1.1.1,1.0.0.1
    #PUID: 1000 # set this to the UID of your user
    #PGID: 1000 # set this to the GID of your user
  restart: unless-stopped

output

temelj@nektar:~/Documents/docker$ sudo docker-compose up
docker_qbittorrent_1 is up-to-date
Attaching to docker_qbittorrent_1
qbittorrent_1  | 2021-11-25 05:34:41.346634 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:41.379812 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:41.411680 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:41.442102 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:41.474928 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:41.510009 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:41.541324 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:41.571557 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:41.602053 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:41.631999 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:41.662301 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:41.693478 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:41.725226 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:41.755492 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:41.790545 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:41.820573 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:41.850146 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:41.881011 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:41.908649 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:41.940194 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:42.912396 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:42.944032 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:42.974853 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:43.005924 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:43.037861 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:43.072517 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:43.105181 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:43.135312 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:43.168314 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:43.199636 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:43.231047 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:43.264386 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:43.297726 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:43.329666 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:43.360125 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:43.392600 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:43.428000 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:43.455650 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:43.488683 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:43.519413 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:44.432346 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:44.461145 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:44.492792 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:44.524222 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:44.558588 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:44.590726 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:44.624186 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:44.654833 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:44.688842 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:44.721208 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:44.753284 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:44.783461 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:44.817650 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:44.848099 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:44.878528 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:44.909660 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:44.940659 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:44.972677 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:44.998972 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:45.030351 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:46.187629 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:46.221536 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:46.252192 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:46.284027 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:46.316418 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:46.351625 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:46.385569 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:46.415310 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:46.447633 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:46.480749 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:46.512317 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:46.543621 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:46.575185 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:46.609564 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:46.644752 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:46.678439 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:46.711141 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:46.743139 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:46.775604 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:46.807249 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:48.383366 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:48.417547 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:48.449682 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:48.480948 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:48.513585 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:48.548955 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:48.580451 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:48.608600 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:48.641402 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:48.673180 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:48.705276 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:48.735978 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:48.770753 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:48.805607 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:48.836264 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:48.871183 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:48.905612 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:48.937750 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:48.964271 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:48.996857 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:51.383054 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:51.417626 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:51.448451 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:51.474668 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:51.502201 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:51.537115 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:51.570031 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:51.601249 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:51.630376 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:51.662351 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:51.692961 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:51.723607 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:51.757373 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:51.788243 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:51.818861 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:51.853037 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:51.886730 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:51.918840 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:51.950894 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:51.983429 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:34:55.979571 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:34:56.012027 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:34:56.044215 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:34:56.076883 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:34:56.108661 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:34:56.144336 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:34:56.176904 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:34:56.205228 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:34:56.238720 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:34:56.270713 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:34:56.302639 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:34:56.335926 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:34:56.366133 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:34:56.401347 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:56.435779 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:56.470460 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:56.501770 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:34:56.533888 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:34:56.560192 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:34:56.591786 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:35:03.752346 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:35:03.786463 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:35:03.817520 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:35:03.848183 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:35:03.875463 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:35:03.909940 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:35:03.940938 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:35:03.973047 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:35:04.006041 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:35:04.037922 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:35:04.064354 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:35:04.098295 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:35:04.133378 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:35:04.164383 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:04.195497 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:04.230110 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:04.264793 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:04.297139 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:35:04.329306 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:35:04.360098 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:35:17.866618 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:35:17.899364 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:35:17.931455 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:35:17.962800 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:35:17.995369 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:35:18.030807 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:35:18.061256 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:35:18.091801 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:35:18.124660 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:35:18.151514 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:35:18.179239 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:35:18.210184 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:35:18.243260 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:35:18.277800 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:18.308379 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:18.338206 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:18.368443 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:18.400443 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:35:18.431586 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:35:18.464262 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:35:44.848623 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:35:44.882476 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:35:44.913484 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:35:44.945195 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:35:44.972614 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:35:45.006509 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:35:45.040013 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:35:45.069982 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:35:45.099558 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:35:45.126540 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:35:45.156704 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:35:45.187942 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:35:45.222594 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:35:45.255592 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:45.289743 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:45.320140 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:45.354517 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:35:45.386343 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:35:45.418754 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:35:45.451019 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:36:37.433746 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:36:37.462951 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:36:37.494930 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:36:37.527072 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:36:37.559831 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:36:37.595863 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:36:37.625655 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:36:37.654475 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:36:37.682846 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:36:37.709958 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:36:37.736732 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:36:37.766831 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:36:37.796869 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:36:37.827373 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:36:37.862250 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:36:37.895300 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:36:37.929855 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:36:37.962118 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:36:37.988216 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:36:38.020405 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:37:38.793499 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:37:38.826592 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:37:38.856854 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:37:38.883156 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:37:38.910427 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:37:38.947855 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:37:38.977772 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:37:39.006972 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:37:39.035109 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:37:39.061966 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:37:39.089031 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:37:39.117801 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:37:39.147400 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:37:39.178210 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:37:39.207962 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:37:39.242860 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:37:39.277329 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:37:39.309372 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:37:39.335679 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:37:39.368153 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:38:40.180264 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:38:40.214938 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:38:40.247070 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:38:40.279462 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:38:40.312427 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:38:40.348311 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:38:40.379713 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:38:40.408830 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:38:40.437296 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:38:40.464807 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:38:40.493534 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:38:40.525864 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:38:40.555382 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:38:40.585037 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:38:40.614563 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:38:40.646465 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:38:40.680074 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:38:40.711681 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:38:40.743960 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:38:40.775636 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:39:41.556372 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:39:41.590618 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:39:41.619274 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:39:41.651406 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:39:41.684228 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:39:41.720221 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:39:41.750507 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:39:41.780350 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:39:41.808196 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:39:41.834787 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:39:41.862672 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:39:41.893521 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:39:41.922217 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:39:41.952231 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:39:41.985232 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:39:42.018806 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:39:42.051779 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:39:42.084880 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:39:42.116117 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:39:42.148590 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:40:42.913426 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:40:42.947705 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:40:42.980897 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:40:43.012750 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:40:43.045491 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:40:43.081565 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:40:43.112004 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:40:43.141282 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:40:43.170083 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:40:43.197357 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:40:43.224470 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:40:43.253189 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:40:43.283044 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:40:43.313706 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:40:43.344255 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:40:43.378087 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:40:43.409650 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:40:43.441449 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:40:43.473220 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:40:43.505296 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:41:44.320612 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:41:44.352467 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:41:44.385488 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:41:44.416259 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:41:44.447937 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:41:44.483438 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:41:44.516919 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:41:44.546602 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:41:44.579525 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:41:44.607083 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:41:44.635767 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:41:44.665922 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:41:44.700450 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:41:44.734154 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:41:44.769606 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:41:44.800787 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:41:44.834113 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:41:44.865415 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:41:44.897634 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:41:44.925502 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:42:45.694638 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:42:45.726439 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:42:45.757465 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:42:45.789405 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:42:45.821368 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:42:45.857406 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:42:45.890564 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:42:45.924775 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:42:45.955284 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:42:45.981950 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:42:46.012103 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:42:46.044754 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:42:46.076959 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:42:46.112845 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:42:46.144920 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:42:46.179017 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:42:46.212531 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:42:46.245981 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:42:46.277825 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:42:46.309848 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:43:47.083848 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:43:47.117195 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:43:47.149242 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:43:47.181559 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:43:47.214995 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:43:47.250352 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:43:47.283138 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:43:47.312870 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:43:47.342599 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:43:47.369498 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:43:47.397372 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:43:47.426073 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:43:47.456247 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:43:47.493335 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:43:47.524121 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:43:47.558282 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:43:47.593502 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:43:47.624512 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:43:47.656373 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:43:47.689108 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
qbittorrent_1  | 2021-11-25 05:44:48.480912 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent_1  | 2021-11-25 05:44:48.513664 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent_1  | 2021-11-25 05:44:48.545473 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent_1  | 2021-11-25 05:44:48.576234 [INFO] Not making any changes to iptables version
qbittorrent_1  | 2021-11-25 05:44:48.609460 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent_1  | 2021-11-25 05:44:48.645440 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent_1  | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent_1  | 2021-11-25 05:44:48.675862 [INFO] VPN remote line defined as 'se-sto.pvdata.host:3389'
qbittorrent_1  | 2021-11-25 05:44:48.705300 [INFO] VPN_REMOTE defined as 'se-sto.pvdata.host'
qbittorrent_1  | 2021-11-25 05:44:48.733745 [INFO] VPN_PORT defined as '3389'
qbittorrent_1  | 2021-11-25 05:44:48.761161 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent_1  | 2021-11-25 05:44:48.789277 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent_1  | 2021-11-25 05:44:48.819242 [INFO] LAN_NETWORK defined as '192.168.1.1/23'
qbittorrent_1  | 2021-11-25 05:44:48.849551 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent_1  | 2021-11-25 05:44:48.883873 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:44:48.915310 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent_1  | 2021-11-25 05:44:48.949166 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent_1  | 2021-11-25 05:44:48.978271 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent_1  | 2021-11-25 05:44:49.010454 [INFO] PUID not defined. Defaulting to root user
qbittorrent_1  | 2021-11-25 05:44:49.043504 [INFO] PGID not defined. Defaulting to root group
qbittorrent_1  | 2021-11-25 05:44:49.074876 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0
docker_qbittorrent_1 exited with code 2
temelj@nektar:~/Documents/docker$ 
temelj commented 2 years ago

before you ask - I set VPN_ENABLED: false and it starts up and I can get to the web ui :)

DyonR commented 2 years ago

Sorry for the late reply.
I think this may be caused that your wg0.conf has some IPv6 config in it.
If I look at this section of the log;

qbittorrent_1  | 2021-11-25 05:44:49.074876 [INFO] Starting WireGuard...
qbittorrent_1  | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent_1  | [#] ip link add wg0 type wireguard
qbittorrent_1  | [#] wg setconf wg0 /dev/fd/63
qbittorrent_1  | [#] ip -4 address add 10.34.42.31/16 dev wg0
qbittorrent_1  | [#] ip link set mtu 1420 up dev wg0
qbittorrent_1  | [#] resolvconf -a wg0 -m 0 -x
qbittorrent_1  | [#] wg set wg0 fwmark 51820
qbittorrent_1  | [#] ip -6 route add ::/0 dev wg0 table 51820
qbittorrent_1  | Error: IPv6 is disabled on nexthop device.
qbittorrent_1  | [#] resolvconf -d wg0 -f
qbittorrent_1  | [#] ip link delete dev wg0

It throws the error qbittorrent_1 | Error: IPv6 is disabled on nexthop device..
I did share my wg0.conf here; https://github.com/DyonR/docker-qbittorrentvpn/issues/78#issuecomment-988023106

Could you maybe remove all IPv6 related stuff from your wg0.conf to see if that fixes your problem, if you still need to get this working.

Gartonious commented 2 years ago

I am also getting the same warning error where it is saying "work accessible". I don't have the ipv6 issue but it does say the following - please can you help?

2022-01-03 03:26:26.983095 [INFO] VPN_ENABLED defined as 'yes'
2022-01-03 03:26:27.059942 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
2022-01-03 03:26:27.131550 [INFO] LEGACY_IPTABLES is set to ''
2022-01-03 03:26:27.207662 [INFO] Not making any changes to iptables version
2022-01-03 03:26:27.282396 [INFO] VPN_TYPE defined as 'wireguard'
2022-01-03 03:26:27.365436 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
2022-01-03 03:26:27.449508 [INFO] VPN remote line defined as 'VPNIP:51820'
2022-01-03 03:26:27.525270 [INFO] VPN_REMOTE defined as 'VPNIP'
2022-01-03 03:26:27.602280 [INFO] VPN_PORT defined as '51820'
2022-01-03 03:26:27.674544 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
2022-01-03 03:26:27.747982 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
2022-01-03 03:26:27.825230 [INFO] LAN_NETWORK defined as '192.168.0.100'
2022-01-03 03:26:27.900896 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1'
2022-01-03 03:26:27.977833 [INFO] Adding 1.1.1.1 to resolv.conf
2022-01-03 03:26:28.054458 [INFO] Adding 1.0.0.1 to resolv.conf
2022-01-03 03:26:28.127709 [INFO] Starting WireGuard...
Warning: `/config/wireguard/wg0.conf' is world accessible
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
DyonR commented 2 years ago

Are you running the container privilleged?
And 'world accessible' is just a warning about the permissions on the file, which doesn't matter really

Gartonious commented 2 years ago

Are you running the container privilleged? And 'world accessible' is just a warning about the permissions on the file, which doesn't matter really

Yes I am running as privileged - this is my settings (example, not showing real MAC / IPs)

docker run --privileged  -d \
              --name=qBittorrent-VPN \
              -v /volume1/docker/qbittorrent-vpn:/config \
              -v /volume1/Downloads:/downloads \
              -e "VPN_ENABLED=yes" \
              -e "VPN_TYPE=wireguard" \
              -e "WEBUI_PORT_ENV=8080" \
              -e "INCOMING_PORT_ENV=8999" \
              -e "LAN_NETWORK=192.168.0.100" \
              -e "NAME_SERVERS=1.1.1.1,1.0.0.1" \
              -e PUID=1000 \
              -e PGID=100 \
              -e UMASK=100 \
              -e TZ=Europe/London \
              -p 8080:8080 \
              -p 8999:8999 \
              -p 8999:8999/udp \
              --network LAN2 \
              --ip "192.168.0.100" \
              --hostname "qbittorrent" \
              --mac-address "00:00:00:00:00:00" \
              --restart unless-stopped \
              dyonr/qbittorrentvpn:latest
DyonR commented 2 years ago

@Gartonious does the kernel of your host support WireGuard? What system do you use? What is your kernel version?

Gartonious commented 2 years ago

@Gartonious does the kernel of your host support WireGuard? What system do you use? What is your kernel version?

Yeah so i've installed Docker on my Synology NAS - within docker I have GlueTun running in there too which I have managed to get the WireGuard Connection working perfectly in there without any issues - with theirs you have to define the WireGuard in your ENV's like below:

Edit - just to add too, with or without GlueTun running, qbittorrentvpn does not work

           -e VPNSP=custom -e VPN_TYPE=wireguard \
           -e WIREGUARD_ENDPOINT_IP=[VPNIP] \
           -e WIREGUARD_ENDPOINT_PORT=51820 \
           -e WIREGUARD_PUBLIC_KEY=[Public Key] \
           -e WIREGUARD_PRIVATE_KEY=[Private Key] \
           -e WIREGUARD_PRESHARED_KEY=[Pre Key] \
           -e WIREGUARD_ADDRESS="10.10.10.10/32" \

But the data is basically the same in the wg0.conf file, except it has a couple more things in there from the provider. Even with taking them out it does not work. My Config file (wg0.conf) is below:

[Interface]
PrivateKey = [KEY]
ListenPort = 51820
Address = [IP Address]/32
DNS = [IP Address]

[Peer]
PublicKey = [KEY]
PresharedKey = [KEY]
AllowedIPs = 0.0.0.0/0
Endpoint = [IP Address]:51820
PersistentKeepalive = 25

Version Details: DSM - 7.0.1-42218 Docker - 20.10.3-1239 VPN Providers - vpn unlimited and fastest vpn (could try either but its vpn unlimited i'm trying to get working with WireGuard)

The reason behind using WireGuard is because OpenVPN would not work either with my provider but I am not sure if this is because they use certificates. qmcgaw/GlueTun has native support for my providers though I have only managed to get vpnunlimited working via the build in VPN. After I discovered WireGuard is the newer VPN type which is taking over from OpenVPN / more stable connection, I connected via that just fine on GlueTun using the custom lines above and was hoping this would just work on dyonr/qbittorrentvpn too using the config file but it did not.

Also what is strange, I have just changed the access rights of the wg0.conf file to Octal 0600 (as suggested to get rid of that error on another forum) and when I start the container back up, it seems to reset it back to 0775. (also gives the same is world accessible error message in the logs).

I have also set my PUID to my local administrator account on the NAS and also the PGID and UMASK id is both for admin so it should have full rights there too.

I am running out of ideas but ideally I want to get rid of GlueTun and use your dyonr/qbittorrentvpn instead. I did try getting the standard version of qbittorrent working with GlueTun - managed to get to the web interface and everything but just can't download anything - seems the listening port is not forwarding to the VPN using the sharing the GlueTun container method but just want to have the one container ideally like yours. Once ive got this working, I would like to get Jacket working too but one thing at a time.

To be honest with you what would be good in a future build would be to have all the GlueTun supported VPN providers imported into your build (sure they imported theirs from somewhere else too) so you can just select the provider, enter your username and password for OpenVPN or select to use WireGuard where it asks for the same details like theirs uses as that seems to work? - I would love to try help you merge theses together but I would not know where to start as I am only just getting my head around docker :(

EDIT - JackettVPN is also doing the same thing - says

2022-01-03 19:18:03.799241 [INFO] Starting WireGuard...
Warning: `/config/wireguard/wg0.conf' is world accessible
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"

Does it not have access to the NICS? Has it not created it maybe?

Gartonious commented 2 years ago

Don't suppose there is any update to this is there? I don't mind providing my VPN config if you would like to test it yourself? :)

vcfxb commented 2 years ago

https://www.ivpn.net/knowledgebase/linux/linux-wireguard-rtnetlink-answers-operation-not-supported/

looks like your host device may not have wireguard drivers

Gartonious commented 2 years ago

https://www.ivpn.net/knowledgebase/linux/linux-wireguard-rtnetlink-answers-operation-not-supported/

looks like your host device may not have wireguard drivers

would have thought this container would have already contained wireguard?