diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-09-15 11:40:03 +0200 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-09-15 11:40:03 +0200 |
commit | 33e24e989996ec809e1be696866258ce987cc527 (patch) | |
tree | 80aa6b83551dd536412fc4629d4362072b7f52ba /templates/show/vpn/ipsec/sa/node.def | |
parent | 8a80669f305983de512466e3e2bad0924d7f37a0 (diff) | |
download | vyatta-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.def | 6 |
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 |