Error starting the container with wireguard
CaptainIntel opened this issue · 0 comments
CaptainIntel commented
Hi, I am always getting this error message running it on unraid:
dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
Warning: `/config/wireguard/wg0.conf' is world accessible
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.66.66.2/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
[#] wg set wg0 fwmark 51820
[#] ip -6 route add ::/0 dev wg0 table 51820
Error: IPv6 is disabled on nexthop device.
[#] resolvconf -d wg0 -f
[#] ip link delete dev wg0
2022-08-31 09:34:13.134446 [INFO] VPN_ENABLED defined as 'yes'
2022-08-31 09:34:13.173903 [INFO] VPN_TYPE defined as 'wireguard'
2022-08-31 09:34:13.233716 [INFO] WireGuard config file is found at /config/wireguard/._wg0.conf
2022-08-31 09:34:13.273229 [ERROR] WireGuard config filename is not 'wg0.conf'
2022-08-31 09:34:13.311136 [ERROR] Rename /config/wireguard/._wg0.conf to 'wg0.conf'
2022-08-31 09:34:24.521653 [INFO] VPN_ENABLED defined as 'yes'
2022-08-31 09:34:24.560908 [INFO] VPN_TYPE defined as 'wireguard'
2022-08-31 09:34:24.611684 [INFO] WireGuard config file is found at /config/wireguard/._wg0.conf
2022-08-31 09:34:24.649773 [ERROR] WireGuard config filename is not 'wg0.conf'
2022-08-31 09:34:24.686862 [ERROR] Rename /config/wireguard/._wg0.conf to 'wg0.conf'
The config is named correctly. It seems like the container is modifying the name to "._wg0.conf" and can't read it then anymore...
What can I do?