Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unraid 6.12.6 - Wireguard VPN Tunnel Won't Toggle to active

Featured Replies

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!

  • Community Expert

Post the wg log, may be something there:

 

cat /var/log/wg-quick.log

 

Also recommend updating to latest stable

  • 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

 

  • Community Expert

Delete that tunnel, and any other wg*.cfg file and recreate.

  • Author

Okay, will give this a try and update

  • 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 ?

  • 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 by cruzerkk

  • Community Expert
7 hours ago, cruzerkk said:

reimported the tunnel

Try creating a new one, not reimporting.

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.