blob: 4611fdd018f180c568e746c306f4d1e351896a9f (
plain)
1
2
3
4
5
6
7
|
help: Show status of IPsec process
run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_status.xsl
if pgrep pluto >&/dev/null; then
active_tunnels=`ipsec status 2> /dev/null | grep -i "ipsec sa established" | wc -l | sed s/\ //g`
echo "$active_tunnels Active IPsec Tunnels"
echo
fi
|