summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-nat-rules.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-nat-rules.pl')
-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, '----', '----', '-----------');