OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: bradforr on September 13, 2022, 02:12:39 pm

Title: Monit Reboot Wireguard Service
Post by: bradforr on September 13, 2022, 02:12:39 pm
I'm trying to set up a reboot of the Wireguard service using Monit

So far, I've managed to start Monit and create a Service Test Setting for pinging from the Wireguard local address.

Now I'm setting up the Service Settings tab and I'm a bit stuck.

Type: Remote Host
Address: <Remote site Wireguard interface IP>
Start: ???
Stop: ???
Tests <ping test set up previously>

So what entries do I put into the Start and Stop section?
Would it be something like "/usr/local/etc/rc.d/wireguard start" and "/usr/local/etc/rc.d/wireguard stop"?? I saw somewhere in the dashboard that it mentions "wireguard-go"? Do I need a different name?