diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-11-18 21:19:17 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-11-18 21:19:17 +0100 |
commit | f6b64dcc7d038e1a0116f49582fa6ca3cb719a30 (patch) | |
tree | 2214caa44ff8725de0e344a134588fb42ca67b9d | |
parent | 9de1d15636e98f53125cbe46c85be97ab915f967 (diff) | |
download | vyatta-op-vpn-f6b64dcc7d038e1a0116f49582fa6ca3cb719a30.tar.gz vyatta-op-vpn-f6b64dcc7d038e1a0116f49582fa6ca3cb719a30.zip |
T956: add a new script for displaying IPsec SAs.
-rw-r--r-- | templates/show/vpn/ipsec/sa/node.def | 2 | ||||
-rw-r--r-- | templates/show/vpn/ipsec/sa/peer/node.def | 1 | ||||
-rw-r--r-- | templates/show/vpn/ipsec/sa/peer/node.tag/detail/node.def.in | 3 | ||||
-rw-r--r-- | templates/show/vpn/ipsec/sa/peer/node.tag/node.def.in | 3 | ||||
-rw-r--r-- | templates/show/vpn/ipsec/sa/verbose/node.def | 2 |
5 files changed, 2 insertions, 9 deletions
diff --git a/templates/show/vpn/ipsec/sa/node.def b/templates/show/vpn/ipsec/sa/node.def index 7f569bd..80ae16a 100644 --- a/templates/show/vpn/ipsec/sa/node.def +++ b/templates/show/vpn/ipsec/sa/node.def @@ -1,6 +1,6 @@ help: Show all active IPsec Security Associations (SA) run: if pgrep charon >&/dev/null; then - sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa + sudo /usr/libexec/vyos/op_mode/show_ipsec_sa.py else echo -e "IPSec Process NOT Running\n" fi diff --git a/templates/show/vpn/ipsec/sa/peer/node.def b/templates/show/vpn/ipsec/sa/peer/node.def deleted file mode 100644 index f77f46e..0000000 --- a/templates/show/vpn/ipsec/sa/peer/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show all currently active IPSec Security Associations (SA) for a peer diff --git a/templates/show/vpn/ipsec/sa/peer/node.tag/detail/node.def.in b/templates/show/vpn/ipsec/sa/peer/node.tag/detail/node.def.in deleted file mode 100644 index e05a3c4..0000000 --- a/templates/show/vpn/ipsec/sa/peer/node.tag/detail/node.def.in +++ /dev/null @@ -1,3 +0,0 @@ -help: Show detail on all currently active IPSec Security Associations (SA) for a peer -allowed: @SUDOUSRDIR@/vyatta-op-vpn.pl --get-peers-for-cli -run: sudo @SUDOUSRDIR@/vyatta-op-vpn.pl --show-ipsec-sa-peer-detail="$6" diff --git a/templates/show/vpn/ipsec/sa/peer/node.tag/node.def.in b/templates/show/vpn/ipsec/sa/peer/node.tag/node.def.in deleted file mode 100644 index 4b23f44..0000000 --- a/templates/show/vpn/ipsec/sa/peer/node.tag/node.def.in +++ /dev/null @@ -1,3 +0,0 @@ -help: Show all currently active IPSec Security Associations (SA) for a peer -allowed: @SUDOUSRDIR@/vyatta-op-vpn.pl --get-peers-for-cli -run: sudo @SUDOUSRDIR@/vyatta-op-vpn.pl --show-ipsec-sa-peer="$6" diff --git a/templates/show/vpn/ipsec/sa/verbose/node.def b/templates/show/vpn/ipsec/sa/verbose/node.def index fac77a3..31f124b 100644 --- a/templates/show/vpn/ipsec/sa/verbose/node.def +++ b/templates/show/vpn/ipsec/sa/verbose/node.def @@ -1,6 +1,6 @@ help: Show Verbose Detail on all active IPsec Security Associations (SA) run: if pgrep charon >&/dev/null; then - /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-detail + sudo ipsec statusall else echo -e "IPSec Process NOT Running\n" fi |