August 19, 20241 yr Hi, This setup used to work perfectly for me until couple of days ago. The only change I did was to assign my server a static IP. Since then, my tunnel won't toggle to active. When I toggle to Active, it just automatically sets itself back to inactive. - I have tried to delete the tunnel and reimport the conf - VPN provider is surfshark, if that matters. Is this some sort of a bug ? Is there a fix or workaround for it? Thanks!
August 19, 20241 yr Community Expert Post the wg log, may be something there: cat /var/log/wg-quick.log Also recommend updating to latest stable
August 19, 20241 yr Author cat /var/log/wg-quick.log wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick down wg0 wg-quick: `wg0' is not a WireGuard interface wg-quick down wg1 wg-quick: `wg1' is not a WireGuard interface wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface wg-quick up wg1 [#] ip link add wg1 type wireguard [#] wg setconf wg1 /dev/fd/63 Name or service not known: `ca-tor.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg1 wg-quick down wg1 wg-quick: `wg1' is not a WireGuard interface wg-quick up wg2 [#] ip link add wg2 type wireguard [#] wg setconf wg2 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg2 wg-quick down wg2 wg-quick: `wg2' is not a WireGuard interface
August 21, 20241 yr Author I deleted all the tunnels from VPN manager interface under setting and reimported the tunnel. Still seeing a similar error: wg-quick down wg1 wg-quick: `wg1' is not a WireGuard interface wg-quick up wg1 [#] ip link add wg1 type wireguard [#] wg setconf wg1 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg1 wg-quick down wg1 wg-quick: `wg1' is not a WireGuard interface wg-quick up wg1 [#] ip link add wg1 type wireguard [#] wg setconf wg1 /dev/fd/63 Name or service not known: `us-ash.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg1 wg-quick down wg1 wg-quick: `wg1' is not a WireGuard interface Is there some directory from where I need to delete it on the console ?
August 21, 20241 yr Author - I deleted all existing wg*.cfg and wg*.conf files from /etc/wireguard. Also deleted autostart. - I imported the wireguard config file again - Still seeing same issue. - I tried running `wg-quick up wg0` after reading a bit online and the output reads as follows: wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 Name or service not known: `ca-tor.prod.surfshark.com:51820' Configuration parsing error [#] ip link delete dev wg0 Edited August 21, 20241 yr by cruzerkk
August 21, 20241 yr Community Expert 7 hours ago, cruzerkk said: reimported the tunnel Try creating a new one, not reimporting.
August 22, 20241 yr Author I undid the change. I set the IPv4 Address Assignment to 'Automatic'. It still kept the same IP that I had assigned when I set it to static. But now, after I import the tunnel it does not switch back to Inactive. Weird! But I guess this works for me (for now, at least)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.