summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2012-01-04 01:10:18 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2012-01-04 01:10:18 +0700
commit424188ecefb15b13614b5e74ccf25c5652de5d75 (patch)
tree3e2cb3a4fc1898baba0d3457ecea17a3f777a999
parentb8a966411c00e76d04db69d003c5fab15319f2ce (diff)
downloadvyatta-nat-424188ecefb15b13614b5e74ccf25c5652de5d75.tar.gz
vyatta-nat-424188ecefb15b13614b5e74ccf25c5652de5d75.zip
Don't display masquerade rule code help for destination rules.oxnard-nat-enhancements
-rwxr-xr-xscripts/vyatta-show-nat-rules.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-show-nat-rules.pl b/scripts/vyatta-show-nat-rules.pl
index 7f950f0..349f44e 100755
--- a/scripts/vyatta-show-nat-rules.pl
+++ b/scripts/vyatta-show-nat-rules.pl
@@ -125,7 +125,9 @@ sub get_primary_addr {
sub print_constants {
print "Disabled rules are not shown\n";
- print "Codes: X - exclude rule, M - masquerade rule\n\n";
+ print "Codes: X - exclude rule";
+ print ", M - masquerade rule" if $type eq 'source'; # M code never appears in destination
+ print "\n\n";
printf($format1, 'rule', 'intf', 'translation');
print "\n";
printf($format1, '----', '----', '-----------');