Wireguard VPN restart issue

I’ve noticed the following issue with Wireguard VPN. Have a fully working tunnel to an end point. If there is a power failure and the router restarts the tunnel doesn’t reestablish. You have to manually enter the admin interface and save/apply the working configuration.

Hello,

Use /usr/bin/wireguard_watchdog with cron to work around this issue.

Look at the content of the file for the howto.

Regards,

Thanks! I’ll check it out

Found the file wireguard_watchdog file but not too familiar with crontab. Checked the wiki but when running ‘crontab -l’ I get an empty response. I assumed it would at least contain the auto reboot entry. Would you please supply an example on how to enable cron for the wireguard_watchdog?

# crontab -l
* * * * * /usr/bin/wireguard_watchdog

Create a file containing the line above then execute:

crontab -e < your-cron-file

Thanks! ‘crontab -e < file’ didn’t work for me. Ran ‘crontab -e’ and entered the command manually in the editor. Works hopefully.

Oops the command should be crontab -e - < file

Sorry for the typo.

Greetings,

Thanks for reaching out and for sharing the details.

This issue was addressed in the 07.21 firmware update. I’ve also tested this behavior on 07.24.3, and after rebooting both ends of the WireGuard tunnel, the connection came back up successfully without any manual action being required.

Could you please let us know which device you’re using and what firmware version is currently installed?

We’d recommend updating to the latest available firmware and checking if the issue still occurs.

If you’re already running the latest firmware and are still experiencing this behavior, let us know and we’ll be happy to look into it further.

Best regards,
T.

The router is a RUTX11 and when I identified the issue the device ran on firmware version 07.24.1. I’ve since upgraded to the most recent version. After implemented the cron script all was well, using the older firmware version. I see no reason to remove it as it is.

Thank you for providing the additional information and for bringing this to our attention.

We will investigate this further on our side to better understand the behavior and determine whether any additional action is required.

We appreciate you taking the time to report your findings.

Best regards,
T.