diff options
Diffstat (limited to 'templates-op/show/nat/destination/translations')
4 files changed, 17 insertions, 0 deletions
diff --git a/templates-op/show/nat/destination/translations/address/node.def b/templates-op/show/nat/destination/translations/address/node.def new file mode 100644 index 0000000..0f48bc8 --- /dev/null +++ b/templates-op/show/nat/destination/translations/address/node.def @@ -0,0 +1 @@ +help: Show active destination NAT translations for an IP address diff --git a/templates-op/show/nat/destination/translations/address/node.tag/node.def b/templates-op/show/nat/destination/translations/address/node.tag/node.def new file mode 100644 index 0000000..46ad259 --- /dev/null +++ b/templates-op/show/nat/destination/translations/address/node.tag/node.def @@ -0,0 +1,11 @@ +help: Show active destination NAT 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 \ + --type=destination \ + --verbose \ + --ipaddr="$6" + else + echo "Invalid IP address" + fi diff --git a/templates-op/show/nat/destination/translations/detail/node.def b/templates-op/show/nat/destination/translations/detail/node.def new file mode 100644 index 0000000..66d4cbe --- /dev/null +++ b/templates-op/show/nat/destination/translations/detail/node.def @@ -0,0 +1,3 @@ +help: Show active destination NAT translations detail +run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --type=destination \ + --verbose diff --git a/templates-op/show/nat/destination/translations/node.def b/templates-op/show/nat/destination/translations/node.def new file mode 100644 index 0000000..0a3826e --- /dev/null +++ b/templates-op/show/nat/destination/translations/node.def @@ -0,0 +1,2 @@ +help: Show active destination NAT translations +run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --type=destination |