summaryrefslogtreecommitdiff
path: root/scripts/firewall
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/firewall')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index eb115a6..c4d46bf 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -180,7 +180,9 @@ if (defined $teardown) {
teardown_iptables($table, $iptables_cmd);
# remove the conntrack setup.
- ipt_disable_conntrack($iptables_cmd, 'FW_CONNTRACK');
+ if (! is_tree_in_use($other_tree{$teardown})) {
+ ipt_disable_conntrack($iptables_cmd, 'FW_CONNTRACK');
+ }
exit 0;
}