summaryrefslogtreecommitdiff
path: root/templates-op
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-19 11:25:49 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-19 11:25:49 -0800
commit561ec07cb56696b05f683a325098c06422d00f86 (patch)
treeb35d1727c4de7775854948b862de652a78a0de44 /templates-op
downloadvyatta-nat-561ec07cb56696b05f683a325098c06422d00f86.tar.gz
vyatta-nat-561ec07cb56696b05f683a325098c06422d00f86.zip
migrate NAT from fairfield to glendaleupstream
Diffstat (limited to 'templates-op')
-rw-r--r--templates-op/clear/nat/counters/node.def2
-rw-r--r--templates-op/clear/nat/node.def1
-rw-r--r--templates-op/clear/nat/translations/node.def2
-rw-r--r--templates-op/show/nat/node.def1
-rw-r--r--templates-op/show/nat/rules/node.def3
-rw-r--r--templates-op/show/nat/statistics/node.def3
6 files changed, 12 insertions, 0 deletions
diff --git a/templates-op/clear/nat/counters/node.def b/templates-op/clear/nat/counters/node.def
new file mode 100644
index 0000000..39a6ed5
--- /dev/null
+++ b/templates-op/clear/nat/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear NAT counters
+run: sudo iptables -Z -t nat
diff --git a/templates-op/clear/nat/node.def b/templates-op/clear/nat/node.def
new file mode 100644
index 0000000..aae6adc
--- /dev/null
+++ b/templates-op/clear/nat/node.def
@@ -0,0 +1 @@
+help: Clear Network Address Translation tables
diff --git a/templates-op/clear/nat/translations/node.def b/templates-op/clear/nat/translations/node.def
new file mode 100644
index 0000000..0727cbd
--- /dev/null
+++ b/templates-op/clear/nat/translations/node.def
@@ -0,0 +1,2 @@
+help: Clear NAT translations
+run: sudo ${vyatta_sbindir}/vyatta-update-nat.pl clearnattranslations
diff --git a/templates-op/show/nat/node.def b/templates-op/show/nat/node.def
new file mode 100644
index 0000000..20ecd4d
--- /dev/null
+++ b/templates-op/show/nat/node.def
@@ -0,0 +1 @@
+help: Show Network Address Translation information
diff --git a/templates-op/show/nat/rules/node.def b/templates-op/show/nat/rules/node.def
new file mode 100644
index 0000000..772e1b0
--- /dev/null
+++ b/templates-op/show/nat/rules/node.def
@@ -0,0 +1,3 @@
+help: Show configured NAT rule set
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-nat.pl \
+ ${vyatta_datadir}/xsl/show_nat_rules.xsl
diff --git a/templates-op/show/nat/statistics/node.def b/templates-op/show/nat/statistics/node.def
new file mode 100644
index 0000000..b4fe23f
--- /dev/null
+++ b/templates-op/show/nat/statistics/node.def
@@ -0,0 +1,3 @@
+help: Show statistics for configured NAT rules
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-nat.pl \
+ ${vyatta_datadir}/xsl/show_nat_statistics.xsl