summaryrefslogtreecommitdiff
path: root/templates-op
diff options
context:
space:
mode:
Diffstat (limited to 'templates-op')
-rw-r--r--templates-op/show/nat/translations/destination/address/node.def1
-rw-r--r--templates-op/show/nat/translations/destination/address/node.tag/node.def11
-rw-r--r--templates-op/show/nat/translations/destination/detail/node.def3
-rw-r--r--templates-op/show/nat/translations/destination/monitor/detail/node.def3
-rw-r--r--templates-op/show/nat/translations/destination/monitor/node.def3
-rw-r--r--templates-op/show/nat/translations/destination/node.def2
-rw-r--r--templates-op/show/nat/translations/detail/node.def2
-rw-r--r--templates-op/show/nat/translations/node.def2
-rw-r--r--templates-op/show/nat/translations/source/address/node.def1
-rw-r--r--templates-op/show/nat/translations/source/address/node.tag/node.def11
-rw-r--r--templates-op/show/nat/translations/source/detail/node.def3
-rw-r--r--templates-op/show/nat/translations/source/monitor/detail/node.def3
-rw-r--r--templates-op/show/nat/translations/source/monitor/node.def3
-rw-r--r--templates-op/show/nat/translations/source/node.def2
14 files changed, 50 insertions, 0 deletions
diff --git a/templates-op/show/nat/translations/destination/address/node.def b/templates-op/show/nat/translations/destination/address/node.def
new file mode 100644
index 0000000..f103fe4
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/address/node.def
@@ -0,0 +1 @@
+help: Show active NAT destination translations for an IP address
diff --git a/templates-op/show/nat/translations/destination/address/node.tag/node.def b/templates-op/show/nat/translations/destination/address/node.tag/node.def
new file mode 100644
index 0000000..0ae5846
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/address/node.tag/node.def
@@ -0,0 +1,11 @@
+help: Show active NAT destination translations for an IP address
+allowed: echo -n '<x.x.x.x>'
+run: if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv4 $6
+ then
+ sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl \
+ --mode=dnat \
+ --verbose \
+ --ipaddr="$6"
+ else
+ echo "Invalid IP address"
+ fi
diff --git a/templates-op/show/nat/translations/destination/detail/node.def b/templates-op/show/nat/translations/destination/detail/node.def
new file mode 100644
index 0000000..90990f2
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/detail/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT destination translations detail
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=dnat \
+ --verbose
diff --git a/templates-op/show/nat/translations/destination/monitor/detail/node.def b/templates-op/show/nat/translations/destination/monitor/detail/node.def
new file mode 100644
index 0000000..f1d196f
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/monitor/detail/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT destination translations events detail
+run: echo Type control-C to quit
+ sudo /usr/sbin/conntrack -E -g -o xml | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=dnat --pipe --verbose | ${VYATTA_PAGER:-cat}
diff --git a/templates-op/show/nat/translations/destination/monitor/node.def b/templates-op/show/nat/translations/destination/monitor/node.def
new file mode 100644
index 0000000..99cf715
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/monitor/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT destination translations events
+run: echo Type control-C to quit
+ sudo /usr/sbin/conntrack -E -g -o xml | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=dnat --pipe | ${VYATTA_PAGER:-cat}
diff --git a/templates-op/show/nat/translations/destination/node.def b/templates-op/show/nat/translations/destination/node.def
new file mode 100644
index 0000000..347b034
--- /dev/null
+++ b/templates-op/show/nat/translations/destination/node.def
@@ -0,0 +1,2 @@
+help: Show active NAT destination translations
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=dnat
diff --git a/templates-op/show/nat/translations/detail/node.def b/templates-op/show/nat/translations/detail/node.def
new file mode 100644
index 0000000..0635e6d
--- /dev/null
+++ b/templates-op/show/nat/translations/detail/node.def
@@ -0,0 +1,2 @@
+help: Show active NAT translations detail
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --verbose
diff --git a/templates-op/show/nat/translations/node.def b/templates-op/show/nat/translations/node.def
new file mode 100644
index 0000000..f71c365
--- /dev/null
+++ b/templates-op/show/nat/translations/node.def
@@ -0,0 +1,2 @@
+help: Show active NAT translations
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl
diff --git a/templates-op/show/nat/translations/source/address/node.def b/templates-op/show/nat/translations/source/address/node.def
new file mode 100644
index 0000000..42bfbba
--- /dev/null
+++ b/templates-op/show/nat/translations/source/address/node.def
@@ -0,0 +1 @@
+help: Show active NAT source translations for a IP address
diff --git a/templates-op/show/nat/translations/source/address/node.tag/node.def b/templates-op/show/nat/translations/source/address/node.tag/node.def
new file mode 100644
index 0000000..0271dd1
--- /dev/null
+++ b/templates-op/show/nat/translations/source/address/node.tag/node.def
@@ -0,0 +1,11 @@
+help: Show active NAT source translations for an IP address
+allowed: echo -n '<x.x.x.x>'
+run: if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv4 $6
+ then
+ sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl \
+ --mode=snat \
+ --verbose \
+ --ipaddr="$6"
+ else
+ echo "Invalid IP address"
+ fi
diff --git a/templates-op/show/nat/translations/source/detail/node.def b/templates-op/show/nat/translations/source/detail/node.def
new file mode 100644
index 0000000..5f8af5b
--- /dev/null
+++ b/templates-op/show/nat/translations/source/detail/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT source translations detail
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=snat \
+ --verbose
diff --git a/templates-op/show/nat/translations/source/monitor/detail/node.def b/templates-op/show/nat/translations/source/monitor/detail/node.def
new file mode 100644
index 0000000..cadd4bf
--- /dev/null
+++ b/templates-op/show/nat/translations/source/monitor/detail/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT source translations events
+run: echo Type control-C to quit
+ sudo /usr/sbin/conntrack -E -n -o xml | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=snat --pipe --verbose | ${VYATTA_PAGER:-cat} \ No newline at end of file
diff --git a/templates-op/show/nat/translations/source/monitor/node.def b/templates-op/show/nat/translations/source/monitor/node.def
new file mode 100644
index 0000000..b1fced2
--- /dev/null
+++ b/templates-op/show/nat/translations/source/monitor/node.def
@@ -0,0 +1,3 @@
+help: Show active NAT source translations events
+run: echo Type control-C to quit
+ sudo /usr/sbin/conntrack -E -n -o xml | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=snat --pipe | ${VYATTA_PAGER:-cat}
diff --git a/templates-op/show/nat/translations/source/node.def b/templates-op/show/nat/translations/source/node.def
new file mode 100644
index 0000000..c14c955
--- /dev/null
+++ b/templates-op/show/nat/translations/source/node.def
@@ -0,0 +1,2 @@
+help: Show active NAT source translations
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --mode=snat