summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarat Nepomnyashy <marat@vyatta.com>2008-02-21 19:03:48 -0800
committerMarat Nepomnyashy <marat@vyatta.com>2008-02-21 19:03:48 -0800
commit36b18f78e0a142fb5d2bfed34af89f0001ec8005 (patch)
tree9e1e5489ef89fc6c60e2c6ba6e23ec92dc41941c /templates
parent84fe6d4b1e8fe5c8b9530f13bfcf2167ada322d1 (diff)
downloadvyatta-op-vpn-36b18f78e0a142fb5d2bfed34af89f0001ec8005.tar.gz
vyatta-op-vpn-36b18f78e0a142fb5d2bfed34af89f0001ec8005.zip
Moved execution of 'show vpn' commands to '/opt/vyatta/bin/sudo-users' so that operator users can execute them. Bug 2865 fix.
Diffstat (limited to 'templates')
-rw-r--r--templates/show/vpn/debug/node.def2
-rw-r--r--templates/show/vpn/ike/rsa-keys/node.def2
-rw-r--r--templates/show/vpn/ike/sa/nat-traversal/node.def2
-rw-r--r--templates/show/vpn/ike/sa/node.def2
-rw-r--r--templates/show/vpn/ike/sa/peer/node.tag/node.def2
-rw-r--r--templates/show/vpn/ike/secrets/node.def2
-rw-r--r--templates/show/vpn/ike/status/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/nat-traversal/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/peer/node.tag/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/statistics/node.def2
-rw-r--r--templates/show/vpn/ipsec/status/node.def2
15 files changed, 15 insertions, 15 deletions
diff --git a/templates/show/vpn/debug/node.def b/templates/show/vpn/debug/node.def
index acda656..9e257a4 100644
--- a/templates/show/vpn/debug/node.def
+++ b/templates/show/vpn/debug/node.def
@@ -1,2 +1,2 @@
help: Show VPN debugging information
-run: sudo ipsec auto --status
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vpn-debug.pl
diff --git a/templates/show/vpn/ike/rsa-keys/node.def b/templates/show/vpn/ike/rsa-keys/node.def
index c174c96..6d3baa5 100644
--- a/templates/show/vpn/ike/rsa-keys/node.def
+++ b/templates/show/vpn/ike/rsa-keys/node.def
@@ -1,2 +1,2 @@
help: Show VPN RSA keys
-run: sudo /opt/vyatta/sbin/show_vpn.pl rsa-keys
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vpn.pl rsa-keys
diff --git a/templates/show/vpn/ike/sa/nat-traversal/node.def b/templates/show/vpn/ike/sa/nat-traversal/node.def
index 69771e5..6d3a785 100644
--- a/templates/show/vpn/ike/sa/nat-traversal/node.def
+++ b/templates/show/vpn/ike/sa/nat-traversal/node.def
@@ -1,2 +1,2 @@
help: Show all currently active IKE Security Associations (SA) that are using NAT Traversal.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ike_sa.xsl --pname nat --pval enabled
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ike_sa.xsl --pname nat --pval enabled
diff --git a/templates/show/vpn/ike/sa/node.def b/templates/show/vpn/ike/sa/node.def
index c225651..97e373c 100644
--- a/templates/show/vpn/ike/sa/node.def
+++ b/templates/show/vpn/ike/sa/node.def
@@ -1,2 +1,2 @@
help: Show all currently active IKE Security Associations (SA).
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ike_sa.xsl
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ike_sa.xsl
diff --git a/templates/show/vpn/ike/sa/peer/node.tag/node.def b/templates/show/vpn/ike/sa/peer/node.tag/node.def
index 071aa33..e5a597e 100644
--- a/templates/show/vpn/ike/sa/peer/node.tag/node.def
+++ b/templates/show/vpn/ike/sa/peer/node.tag/node.def
@@ -1,2 +1,2 @@
help: Show all currently active IKE Security Associations (SA) for a specific peer.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ike_sa.xsl --pname peer --pval "$6"
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ike_sa.xsl --pname peer --pval "$6"
diff --git a/templates/show/vpn/ike/secrets/node.def b/templates/show/vpn/ike/secrets/node.def
index 69a8001..0c993e2 100644
--- a/templates/show/vpn/ike/secrets/node.def
+++ b/templates/show/vpn/ike/secrets/node.def
@@ -1,2 +1,2 @@
help: Show all the pre-shared key secrets.
-run: sudo /opt/vyatta/sbin/show_vpn.pl secrets
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vpn.pl secrets
diff --git a/templates/show/vpn/ike/status/node.def b/templates/show/vpn/ike/status/node.def
index e557107..3b91a79 100644
--- a/templates/show/vpn/ike/status/node.def
+++ b/templates/show/vpn/ike/status/node.def
@@ -1,2 +1,2 @@
help: Show summary information about the IKE process.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ike_status.xsl
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ike_status.xsl
diff --git a/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def b/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
index 0094f92..5a35ab5 100644
--- a/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
@@ -1,3 +1,3 @@
help: Show details of all active IPsec Security Associations (SA) for a specific connection.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname conn --pval "$7"
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname conn --pval "$7"
allowed: ipsec auto --status | grep '000 "peer-' | perl -p -e 's/^000 "([^"]*)":\s.*/\1/' | sort -u
diff --git a/templates/show/vpn/ipsec/sa/detail/node.def b/templates/show/vpn/ipsec/sa/detail/node.def
index 7092244..8013cfc 100644
--- a/templates/show/vpn/ipsec/sa/detail/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/node.def
@@ -1,2 +1,2 @@
help: Show details of all active IPsec Security Associations (SA).
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y
diff --git a/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def b/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
index 5548e26..c4edd7d 100644
--- a/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
@@ -1,2 +1,2 @@
help: Show details of all active IPsec Security Associations (SA) for a specific peer.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname peer --pval "$7"
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname peer --pval "$7"
diff --git a/templates/show/vpn/ipsec/sa/nat-traversal/node.def b/templates/show/vpn/ipsec/sa/nat-traversal/node.def
index 0976e07..a51bbb0 100644
--- a/templates/show/vpn/ipsec/sa/nat-traversal/node.def
+++ b/templates/show/vpn/ipsec/sa/nat-traversal/node.def
@@ -1,2 +1,2 @@
help: Show all active IPsec Security Associations (SA) that are using NAT Traversal.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname nat --pval enabled
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname nat --pval enabled
diff --git a/templates/show/vpn/ipsec/sa/node.def b/templates/show/vpn/ipsec/sa/node.def
index e708c72..8a4b22f 100644
--- a/templates/show/vpn/ipsec/sa/node.def
+++ b/templates/show/vpn/ipsec/sa/node.def
@@ -1,2 +1,2 @@
help: Show all active IPsec Security Associations (SA).
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl
diff --git a/templates/show/vpn/ipsec/sa/peer/node.tag/node.def b/templates/show/vpn/ipsec/sa/peer/node.tag/node.def
index c797336..c8b3329 100644
--- a/templates/show/vpn/ipsec/sa/peer/node.tag/node.def
+++ b/templates/show/vpn/ipsec/sa/peer/node.tag/node.def
@@ -1,2 +1,2 @@
help: Show all active IPsec Security Associations (SA) for a specific peer.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname peer --pval "$6"
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname peer --pval "$6"
diff --git a/templates/show/vpn/ipsec/sa/statistics/node.def b/templates/show/vpn/ipsec/sa/statistics/node.def
index 4f38584..795c467 100644
--- a/templates/show/vpn/ipsec/sa/statistics/node.def
+++ b/templates/show/vpn/ipsec/sa/statistics/node.def
@@ -1,2 +1,2 @@
help: Show statistics on all active tunnels that have IPsec Security Associations (SA).
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_sa_statistics.xsl
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa_statistics.xsl
diff --git a/templates/show/vpn/ipsec/status/node.def b/templates/show/vpn/ipsec/status/node.def
index 542280a..20c1060 100644
--- a/templates/show/vpn/ipsec/status/node.def
+++ b/templates/show/vpn/ipsec/status/node.def
@@ -1,2 +1,2 @@
help: Show the status of the IPsec process.
-run: sudo /opt/vyatta/sbin/command_proc_show_vpn show_vpn_ipsec_status.xsl
+run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_status.xsl