summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2008-08-28 18:44:57 -0700
committerStig Thormodsrud <stig@io.vyatta.com>2008-08-28 18:44:57 -0700
commit00fb293b678b48fae9c6792e6044601e16719b13 (patch)
treeb9aa3e28fd5b88012ea3264fa9f67b322d082493
parent7426d966d5fac1e89ed01d470cb4df79af638022 (diff)
downloadvyatta-nat-00fb293b678b48fae9c6792e6044601e16719b13.tar.gz
vyatta-nat-00fb293b678b48fae9c6792e6044601e16719b13.zip
Don't flush the nat table since other features now add nat rules.
-rwxr-xr-xscripts/vyatta-update-nat.pl10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/vyatta-update-nat.pl b/scripts/vyatta-update-nat.pl
index 154e19b..a8d4cd3 100755
--- a/scripts/vyatta-update-nat.pl
+++ b/scripts/vyatta-update-nat.pl
@@ -22,9 +22,6 @@ sub raw_cleanup {
last;
}
}
-
- system('iptables -t nat -A VYATTA_PRE_SNAT_HOOK -j RETURN');
- system('iptables -t nat -A POSTROUTING -j VYATTA_PRE_SNAT_HOOK');
}
my $config = new VyattaConfig;
@@ -43,12 +40,6 @@ my %chain_name = (
print OUT "========= nat list =========\n";
my @rule_keys = sort numerically keys %rules;
if ($#rule_keys < 0) {
- # no rules (everything is deleted) => flush the nat table & return
- print OUT "iptables -t nat -F\n";
- if (system("iptables -t nat -F")) {
- exit 1;
- }
-
raw_cleanup();
exit 0;
@@ -153,7 +144,6 @@ for $rule (@rule_keys) {
}
if ($all_deleted) {
- system('iptables -t nat -F');
raw_cleanup();
}