Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard -> Tunnel status information for automatic restart by monit
« previous
next »
Print
Pages: [
1
]
Author
Topic: WireGuard -> Tunnel status information for automatic restart by monit (Read 4691 times)
opn_minded
Newbie
Posts: 33
Karma: 0
WireGuard -> Tunnel status information for automatic restart by monit
«
on:
October 09, 2024, 09:16:45 am »
Hi there,
can someone please tell me how to get the WG tunnel status information (online/offline as shown in the dashboard widget) into monit for further action?
Background: I want monit, if a tunnel goes from online to offline, to restart that tunnel. Monit is already set up, the defined (execute) are tested and should work.
Logged
Monju0525
Jr. Member
Posts: 53
Karma: 6
Re: WireGuard -> Tunnel status information for automatic restart by monit
«
Reply #1 on:
October 12, 2024, 02:34:12 pm »
How did u setup the WG monitor? I used this link
https://forum.opnsense.org/index.php?topic=35919.0
Logged
opn_minded
Newbie
Posts: 33
Karma: 0
Re: WireGuard -> Tunnel status information for automatic restart by monit
«
Reply #2 on:
October 13, 2024, 12:15:41 pm »
i've came up with pings initially, following
https://forum.opnsense.org/index.php?topic=38485.0
. but, tbh, i thought there should be a more "straight-forward" approach as the tunnel status information is already available in a system widget (as mention below; online/offline).
so that's why i was asking how to get this (.. already available) tunnel status information into monit to tell it "if tunnel wg1 status changes from online to offline -> restart wg1".
thanks for your answer, i've set it up like described in the link below.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard -> Tunnel status information for automatic restart by monit