diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-07-24 14:16:57 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-07-24 14:16:57 -0700 |
commit | bd8612731a3b4f2199e528e528a27cc2151c0350 (patch) | |
tree | 95638f942aea85b53329c95da0b74c3dee3a6aad /scripts/vyatta-show-nat-rules.pl | |
parent | 51acfc88f15093f76467fa289f2ca2b2a0fa034e (diff) | |
download | vyatta-nat-bd8612731a3b4f2199e528e528a27cc2151c0350.tar.gz vyatta-nat-bd8612731a3b4f2199e528e528a27cc2151c0350.zip |
add support for disabling a NAT rule
Diffstat (limited to 'scripts/vyatta-show-nat-rules.pl')
-rwxr-xr-x | scripts/vyatta-show-nat-rules.pl | 1 |
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}; |