Wireguard tunnel monitoring emails
-
Tunnel consists of 2 end points, pfsense and the remote end.
Remote end only has outbound capabilities, so it only connects to pfsense. Once connected, pfsense gateway monitoring is set up to ping the remote node. If the remote goes down, an email is generated.
However, the pfsense gateway log becomes flooded with dpinger messages indicating error 65.
The emails are welcome, but the log entries are not. Is there a way to reduce the log noise for this particular gateway?
-
The only way I'm aware of would be to change the dpinger parameters to reduce the ping frequency. A lot!
-
@stephenw10 Maybe changing the approach is worthwhile.
Can you point me to the code that's responsible for the gateway monitoring? That is what spawns dpinger?
Maybe I can run something in a manner that would not use dpinger? Or dpinger is what actually triggers the gateway failure emails?
-
I would look in notices.inc and gateways.inc for where the emails are triggered.
That won't help with log errors from dpinger though