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.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-show-nat-rules.pl b/scripts/vyatta-show-nat-rules.pl
index 206d409..a7b83da 100755
--- a/scripts/vyatta-show-nat-rules.pl
+++ b/scripts/vyatta-show-nat-rules.pl
@@ -172,6 +172,7 @@ for $rule (@rules) {
my $dst = new Vyatta::IpTables::AddressFilter;
$nrule->setupOrig("service nat rule $rule");
+ next if defined $nrule->{_disable};
$rulenum = "X" . $rule if defined $nrule->{_exclude};
$type = $nat_type{$nrule->{_type}};
$protocol = $nrule->{_proto} if defined $nrule->{_proto};