summaryrefslogtreecommitdiff
path: root/templates/show/vpn/debug/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/vpn/debug/node.def')
-rw-r--r--templates/show/vpn/debug/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/vpn/debug/node.def b/templates/show/vpn/debug/node.def
index 2327d95..b5848c6 100644
--- a/templates/show/vpn/debug/node.def
+++ b/templates/show/vpn/debug/node.def
@@ -1,6 +1,11 @@
help: Show VPN debugging information
-run: if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer ] && [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer/`" ] ; then
+run: if [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/ipsec-interfaces/interface 2>/dev/null`" ] ; then
+ if pgrep pluto > /dev/null
+ then
/opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=show-vpn-debug
+ else
+ echo IPsec process not running
+ fi
else
echo VPN ipsec not configured
fi