summaryrefslogtreecommitdiff
path: root/templates/show/vpn/ipsec/sa/node.def
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-09-15 11:40:03 +0200
committerKim Hagen <kim.sidney@gmail.com>2016-09-15 11:40:03 +0200
commit33e24e989996ec809e1be696866258ce987cc527 (patch)
tree80aa6b83551dd536412fc4629d4362072b7f52ba /templates/show/vpn/ipsec/sa/node.def
parent8a80669f305983de512466e3e2bad0924d7f37a0 (diff)
downloadvyatta-op-vpn-33e24e989996ec809e1be696866258ce987cc527.tar.gz
vyatta-op-vpn-33e24e989996ec809e1be696866258ce987cc527.zip
Reimplementation of TriJetScud's commit:578688a25ba784d839512fefafab4cabdaf32fc5.
Simpilfy the operational commands Instead of trying to parse the outout of ipsec or swanctl, just dump whatever swanctl outputs.
Diffstat (limited to 'templates/show/vpn/ipsec/sa/node.def')
-rw-r--r--templates/show/vpn/ipsec/sa/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/show/vpn/ipsec/sa/node.def b/templates/show/vpn/ipsec/sa/node.def
new file mode 100644
index 0000000..99a5cc1
--- /dev/null
+++ b/templates/show/vpn/ipsec/sa/node.def
@@ -0,0 +1,6 @@
+help: Show all active IPsec Security Associations (SA)
+run: if pgrep charon >&/dev/null; then
+ sudo /usr/sbin/swanctl --list-sas
+ else
+ echo -e "IPSec Process NOT Running\n"
+ fi