Community discussions

MikroTik App
 
Alex3comEner
just joined
Topic Author
Posts: 16
Joined: Wed May 12, 2021 9:57 am

Netwatch hAP Lite doesn't work automatically

Tue Jun 07, 2022 11:05 am

I have a netwatch script in case of down:

interface/wireguard/peers/disable 0
interface/wireguard/peers/enable 0

If I execute manually by winbox when down, everything works fine.

Does anyone know what can be the reasons why it doesn't work automatically?

Am I missing something?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Netwatch hAP Lite doesn't work automatically

Tue Jun 07, 2022 11:23 am

I made a script for logging WireGuard using NetWatch, see here:

viewtopic.php?p=888800#p888800
 
Alex3comEner
just joined
Topic Author
Posts: 16
Joined: Wed May 12, 2021 9:57 am

Re: Netwatch hAP Lite doesn't work automatically

Tue Jun 07, 2022 11:37 am

Thanks, I am testing.
I will let you know in a day :)

For now, super thanks!
 
Alex3comEner
just joined
Topic Author
Posts: 16
Joined: Wed May 12, 2021 9:57 am

Re: Netwatch hAP Lite doesn't work automatically

Tue Jun 07, 2022 7:57 pm

You bring me on the right way, but your script didn't work.

I create a script very easy:

########################
interface/wireguard/peers
disable 0
interface/wireguard/peers
enable 0
########################

and add the Netwatch to the Script.

Who is online

Users browsing this forum: almdandi and 18 guests