Telegram notifications about ipsec and gateways
-
Hello. I created telegram bot for my pfSense notifications, mostly to recieve ino about lost connections. Currently it only sends me info about connect/disconnect to OpenVPN server. I would like also recieve notifications about disconnected P1s of ipsec connections and local gateway states. I'm kinda new to this thing and would like to get an advice about how to make this thing possible. VPN connection notification I got on some forum, so I almost have no idea how that script works. I couldn't find any sample of script for telegram notifications that would create ipsec or gateway status messages. Thank you all in advance
-
How do you have it configured now?
By default notifications should include anything that appears as a system alert so firewall reboots, interface link state changes etc.
Steve
-
@stephenw10
I configured Telegram notifications in System->Advanced->Notifications->Telegram. Test worked fine and yesterday I got notification about successful boot, but no gateway states or anything else, only boot. OVPN notifications were configured via .sh script and custom options -
Hmm, I would expect to see notifications of a WAN failover event. The gateways you are testing with are in a gateway group?
The notifications system could certainly be improved though. There are a few feature requests open for it.
Steve
-
@stephenw10
No, currently I don't have any gateway groups. In future my pf will have at least one group to create a failover for Internet access in case of main provider failuer.
I thought that notifications work also for gateways as standalone config. It works only with groups? -
If you add a dyndns entry to it you will be notified when that changes. For a failover group that will show when it fails over.