Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find device? #24

Open
htogether opened this issue Mar 20, 2023 · 1 comment
Open

can't find device? #24

htogether opened this issue Mar 20, 2023 · 1 comment

Comments

@htogether
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants