Trigus42 / alpine-qbittorrentvpn

Multiarch docker image with the latest qBittorrent-nox client (WEB UI) and WireGuard/OpenVPN tunnel
GNU General Public License v3.0
69 stars 10 forks source link

can't find device? #24

Open htogether opened 1 year ago

htogether commented 1 year ago

configured with wireguard. but unable to connect vpn.

2023-03-20 00:25:44 [INFO] VPN_REMOTE defined as '168.138.101.171' 2023-03-20 00:25:44 [INFO] VPN_PORT defined as '51820' 2023-03-20 00:25:44 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp. 2023-03-20 00:25:44 [INFO] VPN_DEVICE_TYPE set as 'tr' 2023-03-20 00:25:44 [INFO] Starting WireGuard...

Warning: `/config/wireguard/tr.conf' is world accessible [#] ip link add tr type wireguard RTNETLINK answers: Not supported Unable to access interface: Protocol not supported [#] ip link delete dev tr Cannot find device "tr" [cont-init.d] 02-vpn.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-environment.sh: executing... 2023-03-20 00:26:51 [INFO] LAN_NETWORK defined as '192.168.1.0/24' 2023-03-20 00:26:51 [INFO] Docker network defined as 172.19.0.0/16 2023-03-20 00:26:51 [INFO] PUID defined as 0 2023-03-20 00:26:51 [INFO] PGID defined as 0 2023-03-20 00:26:51 [INFO] An user with PUID 0 already exists in /etc/passwd, nothing to do. 2023-03-20 00:26:51 [INFO] VPN_ENABLED defined as 'yes' 2023-03-20 00:26:51 [INFO] VPN_TYPE defined as 'wireguard' 2023-03-20 00:26:51 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers 2023-03-20 00:26:51 [INFO] Adding 1.1.1.1 to resolv.conf 2023-03-20 00:26:51 [INFO] Adding 8.8.8.8 to resolv.conf 2023-03-20 00:26:51 [INFO] Adding 1.0.0.1 to resolv.conf 2023-03-20 00:26:51 [INFO] Adding 8.8.4.4 to resolv.conf [cont-init.d] 01-environment.sh: exited 0. [cont-init.d] 02-vpn.sh: executing... 2023-03-20 00:26:51 [INFO] Choosen VPN config: 'tr.conf' dos2unix: converting file /config/wireguard/tr.conf to Unix format... 2023-03-20 00:26:51 [INFO] VPN remote line defined as '168.138.101.171:51820' 2023-03-20 00:26:51 [INFO] VPN_REMOTE defined as '168.138.101.171' 2023-03-20 00:26:51 [INFO] VPN_PORT defined as '51820' 2023-03-20 00:26:51 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp. 2023-03-20 00:26:51 [INFO] VPN_DEVICE_TYPE set as 'tr' 2023-03-20 00:26:51 [INFO] Starting WireGuard...

Warning: `/config/wireguard/tr.conf' is world accessible [#] ip link add tr type wireguard RTNETLINK answers: Not supported Unable to access interface: Protocol not supported [#] ip link delete dev tr Cannot find device "tr" [cont-init.d] 02-vpn.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-environment.sh: executing... 2023-03-20 00:27:58 [INFO] LAN_NETWORK defined as '192.168.1.0/24' 2023-03-20 00:27:58 [INFO] Docker network defined as 172.19.0.0/16 2023-03-20 00:27:58 [INFO] PUID defined as 0 2023-03-20 00:27:58 [INFO] PGID defined as 0 2023-03-20 00:27:58 [INFO] An user with PUID 0 already exists in /etc/passwd, nothing to do. 2023-03-20 00:27:58 [INFO] VPN_ENABLED defined as 'yes' 2023-03-20 00:27:58 [INFO] VPN_TYPE defined as 'wireguard' 2023-03-20 00:27:58 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers 2023-03-20 00:27:58 [INFO] Adding 1.1.1.1 to resolv.conf 2023-03-20 00:27:58 [INFO] Adding 8.8.8.8 to resolv.conf 2023-03-20 00:27:58 [INFO] Adding 1.0.0.1 to resolv.conf 2023-03-20 00:27:58 [INFO] Adding 8.8.4.4 to resolv.conf [cont-init.d] 01-environment.sh: exited 0. [cont-init.d] 02-vpn.sh: executing... 2023-03-20 00:27:58 [INFO] Choosen VPN config: 'tr.conf' dos2unix: converting file /config/wireguard/tr.conf to Unix format... 2023-03-20 00:27:58 [INFO] VPN remote line defined as '168.138.101.171:51820' 2023-03-20 00:27:58 [INFO] VPN_REMOTE defined as '168.138.101.171' 2023-03-20 00:27:58 [INFO] VPN_PORT defined as '51820' 2023-03-20 00:27:58 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp. 2023-03-20 00:27:58 [INFO] VPN_DEVICE_TYPE set as 'tr' 2023-03-20 00:27:58 [INFO] Starting WireGuard...

Warning: `/config/wireguard/tr.conf' is world accessible [#] ip link add tr type wireguard RTNETLINK answers: Not supported Unable to access interface: Protocol not supported [#] ip link delete dev tr Cannot find device "tr" [cont-init.d] 02-vpn.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.

Trigus42 commented 1 year ago

Seems like you don't have the Wireguard kernel module installed. Is your host kernel version perhaps lower than 5.6? You can check for the wireguard module using modinfo wireguard. If it is present you might still need to load it. You can check if it is loaded using lsmod | grep wireguard.