docker-qbittorrentvpn icon indicating copy to clipboard operation
docker-qbittorrentvpn copied to clipboard

Unable to get the docker container to get a network

Open lastb0isct opened this issue 1 year ago • 0 comments

I am attempting to replace another instance of qbittorrent that I was running previously. I am behind a traefik proxy but have removed that entirely from the qbit config so I can at least try and get it to start properly and give me a webUI. I have not been able to do. I am not able to ping 1.1.1.1, can't download any packages as suggested here: https://github.com/DyonR/docker-qbittorrentvpn/issues/90#issuecomment-1046135957

Here is the section of the docker-compose.yml i'm using:

  qbit:
    image: dyonr/qbittorrentvpn:latest
    container_name: qbittorrent
    restart: unless-stopped
    networks:
      - traefik_proxy
    ports:
      - 8666:8080
      - 8999:8999
      - 8665:8081
    volumes:
      - /mnt/jails/qbittorrent:/config
      - /mnt/freenas/Downloads:/downloads
    environment:
      - VPN_ENABLED=yes
      - VPN_TYPE=wireguard
      - LAN_NETWORK=192.168.0.0/16
      - ENABLE_SSL=yes
      - HEALTH_CHECK_INTERVAL=300
      - HEALTH_CHECK_HOST=one.one.one.one
      - RESTART_CONTAINER=no
      - ADDITIONAL_PORTS=8081,8999
      - PUID=0
      - PGID=0
      - TZ=America/Los_Angeles
    privileged: true

Here is the log when starting the system:

qbittorrent             | 2023-06-30 10:56:26.653194 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent             | 2023-06-30 10:56:26.685078 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent             | 2023-06-30 10:56:26.715907 [INFO] Not making any changes to iptables version
qbittorrent             | 2023-06-30 10:56:26.748613 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent             | 2023-06-30 10:56:26.779938 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent             | 2023-06-30 10:56:26.816425 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent             | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent             | 2023-06-30 10:56:26.850053 [INFO] VPN remote line defined as '102.129.145.209:1337'
qbittorrent             | 2023-06-30 10:56:26.882254 [INFO] VPN_REMOTE defined as '102.129.145.209'
qbittorrent             | 2023-06-30 10:56:26.916018 [INFO] VPN_PORT defined as '1337'
qbittorrent             | 2023-06-30 10:56:26.946250 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent             | 2023-06-30 10:56:26.977690 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent             | 2023-06-30 10:56:27.010236 [INFO] LAN_NETWORK defined as '192.168.0.0/16'
qbittorrent             | 2023-06-30 10:56:27.044107 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers
qbittorrent             | 2023-06-30 10:56:27.078224 [INFO] Adding 1.1.1.1 to resolv.conf
qbittorrent             | 2023-06-30 10:56:27.115565 [INFO] Adding 8.8.8.8 to resolv.conf
qbittorrent             | 2023-06-30 10:56:27.149038 [INFO] Adding 1.0.0.1 to resolv.conf
qbittorrent             | 2023-06-30 10:56:27.181735 [INFO] Adding 8.8.4.4 to resolv.conf
qbittorrent             | 2023-06-30 10:56:27.212029 [INFO] Starting WireGuard...
qbittorrent             | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent             | [#] ip link add wg0 type wireguard
qbittorrent             | [#] wg setconf wg0 /dev/fd/63
qbittorrent             | [#] ip -4 address add 10.20.215.75 dev wg0
qbittorrent             | [#] ip link set mtu 1420 up dev wg0
qbittorrent             | [#] resolvconf -a wg0 -m 0 -x
qbittorrent             | [#] wg set wg0 fwmark 51820
qbittorrent             | [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
qbittorrent             | [#] ip -4 rule add not fwmark 51820 table 51820
qbittorrent             | [#] ip -4 rule add table main suppress_prefixlength 0
qbittorrent             | [#] iptables-restore -n
qbittorrent             | 2023-06-30 10:56:27.513886 [INFO] Docker network defined as 172.20.0.0/16
qbittorrent             | 2023-06-30 10:56:27.550267 [INFO] Adding 192.168.0.0/16 as route via docker eth0
qbittorrent             | 2023-06-30 10:56:27.582201 [INFO] ip route defined as follows...
qbittorrent             | --------------------
qbittorrent             | default via 172.20.0.1 dev eth0
qbittorrent             | 172.20.0.0/16 dev eth0 proto kernel scope link src 172.20.0.21
qbittorrent             | 192.168.0.0/16 via 172.20.0.1 dev eth0
qbittorrent             | --------------------
qbittorrent             | 2023-06-30 10:56:27.652866 [INFO] Adding additional incoming port 8081 for eth0
qbittorrent             | 2023-06-30 10:56:27.690006 [INFO] Adding additional incoming port 8999 for eth0
qbittorrent             | 2023-06-30 10:56:27.762011 [INFO] Adding additional outgoing port 8081 for eth0
qbittorrent             | 2023-06-30 10:56:27.799987 [INFO] Adding additional outgoing port 8999 for eth0
qbittorrent             | 2023-06-30 10:56:27.837205 [INFO] iptables defined as follows...
qbittorrent             | --------------------
qbittorrent             | -P INPUT DROP
qbittorrent             | -P FORWARD ACCEPT
qbittorrent             | -P OUTPUT DROP
qbittorrent             | -A INPUT -i wg0 -j ACCEPT
qbittorrent             | -A INPUT -s 172.20.0.0/16 -d 172.20.0.0/16 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p udp -m udp --sport 1337 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --dport 8081 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --sport 8081 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --dport 8999 -j ACCEPT
qbittorrent             | -A INPUT -i eth0 -p tcp -m tcp --sport 8999 -j ACCEPT
qbittorrent             | -A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
qbittorrent             | -A INPUT -i lo -j ACCEPT
qbittorrent             | -A OUTPUT -o wg0 -j ACCEPT
qbittorrent             | -A OUTPUT -s 172.20.0.0/16 -d 172.20.0.0/16 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p udp -m udp --dport 1337 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --dport 8081 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --sport 8081 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --dport 8999 -j ACCEPT
qbittorrent             | -A OUTPUT -o eth0 -p tcp -m tcp --sport 8999 -j ACCEPT
qbittorrent             | -A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
qbittorrent             | -A OUTPUT -o lo -j ACCEPT
qbittorrent             | --------------------
qbittorrent             | 2023-06-30 10:56:28.081304 [INFO] ENABLE_SSL is set to 'yes'
qbittorrent             | 2023-06-30 10:56:28.113177 [INFO] /config/qBittorrent/config/qBittorrent.conf already has the line WebUICertificate.crt loaded, nothing to do.
qbittorrent             | 2023-06-30 10:56:28.144756 [INFO] /config/qBittorrent/config/qBittorrent.conf already has the line WebUIKey.key loaded, nothing to do.
qbittorrent             | 2023-06-30 10:56:28.177667 [INFO] /config/qBittorrent/config/qBittorrent.conf does have the WebUI\HTTPS\Enabled already set to true.
qbittorrent             | 2023-06-30 10:56:28.209434 [INFO] A group with PGID 0 already exists in /etc/group within this container, nothing to do.
qbittorrent             | 2023-06-30 10:56:28.241388 [INFO] An user with PUID 0 already exists within this container, nothing to do.
qbittorrent             | 2023-06-30 10:56:28.272327 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002'
qbittorrent             | 2023-06-30 10:56:28.303057 [INFO] Starting qBittorrent daemon...
qbittorrent             | Logging to /config/qBittorrent/data/logs/qbittorrent.log.
qbittorrent             | 2023-06-30 10:56:29.344257 [INFO] Started qBittorrent daemon successfully...
qbittorrent             | 2023-06-30 10:56:29.383432 [INFO] qBittorrent PID: 298
qbittorrent             | 2023-06-30 10:56:29.415988 [INFO] HEALTH_CHECK_SILENT is not set. Because this variable is not set, it will be supressed by default
qbittorrent             | 2023-06-30 10:56:29.447102 [INFO] RESTART_CONTAINER defined as 'no'
qbittorrent             | 2023-06-30 10:56:29.479019 [INFO] HEALTH_CHECK_AMOUNT is not set. For now using default interval of 1
qbittorrent             | 2023-06-30 10:56:29.510510 [INFO] HEALTH_CHECK_AMOUNT is set to 1
qbittorrent             | 2023-06-30 10:56:49.566158 [ERROR] Network is possibly down.

lastb0isct avatar Jun 30 '23 18:06 lastb0isct