hass-pfsense
hass-pfsense copied to clipboard
Feature request
Hi,
Would be good to add sensors for the status of IPSec VPNs. P1 and P2 statuses, bytes/packets in/out.
Thanks, Kev
I think doing this for mobile clients may be messy. Are you after that or site-to-site stuff?
Site-to-site... Would be good to monitor it to subsequently get a notification when a tunnel goes down
Yeah ok. The trouble with mobile is it's near impossible to derive something like a unique id/key per connection whereas for site-to-site (based on my knowledge/understanding) it's implied a single sa/connection per config.
Actually looking more deeply into this P2 details are quite tricky. I showed the same P2 with 2 connection, each with a state of:
"state": "REKEYED",
or
"state": "INSTALLED",
It's impossible to give a state of the P2 as each P2 can technically have multiple states. It may be easier to only provide P1 data/state and aggregate all P2 into the P1 sensors. For example, rather than showing per-P2 bytes/packet stats we add them all up and give a total per-P1 stat.
Not sure, just throwing out ideas and churning on it still...