Hi,
We are using Unifi Ipsec tunnels but there is no way to monitor it. The only way to see or the tunnel is up is via SSH, you can get the details via this command "show vpn ipsec sa".
Output:
peer-***.***.***.***-tunnel-0: #2, ESTABLISHED, IKEv2, ************************** -vbash: peer-***.***.***.***-tunnel-0:: command not found local '***.***.***.***' @ ***.***.***.*** remote '***.***.***.***' @ ***.***.***.*** AES_CBC-256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048 established 14150s ago, rekeying in 13945s peer-***.***.***.***-tunnel-6: #7, INSTALLED, TUNNEL, ESP:AES_CBC-256/HMAC_SHA1_96 installed 485 ago, rekeying in 2246s, expires in 3115s in cdbe5835, 30775130 bytes, 150960 packets, 0s ago out 9d6756ea, 29664699 bytes, 150544 packets, 0s ago local 172.*.*.*/24
I just wanna create a script that runs the command and then gives output established or Down
Kind regards
Wietse
Add comment