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.

Need help: Reactivate tunnel wg0 VPN when ping fails

Featured Replies

I've tried to find similar topic but without help so here's my problem. I have pivpn on remote location, which doesn't have static address and I use duck dns with cron job which updates it's address. I've created client config which I imported in Unraid and then I selected my container to use wg0 network and all of this works perfectly.

 

Now, here's the problem, when IP address changes my VPN breaks and I need to re-activate VPN in Settings -> VPN Manager. After this action everything resumes to work, but this happens at least once per day. Is there a way to write script which will ping peer endpoint like we have button in Unraid settings and then on failed ping to initiate reconnect?

 

Thank you all for any help, I'm very new here.

  • Community Expert

Do you have "Persistent keepalive" set at all? Ive an endpoint set via domain that updates daily too but keeps the connection running just fine

  • Author
11 hours ago, Mainfrezzer said:

Do you have "Persistent keepalive" set at all? Ive an endpoint set via domain that updates daily too but keeps the connection running just fine

I do, It is set to 25s.

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.