summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-07-20 20:39:34 +0000
committerColin Guthrie <colin@mageia.org>2013-08-24 18:41:27 +0100
commit3e88f58bfebd2200bc2b7280cc07ff7bf64636b0 (patch)
tree61b3aa803b3fb620382f69f443cf120d4d60183e /lib/network
parentb23ecf09334de48937af46cc621471257b2d5985 (diff)
downloaddrakx-net-3e88f58bfebd2200bc2b7280cc07ff7bf64636b0.tar
drakx-net-3e88f58bfebd2200bc2b7280cc07ff7bf64636b0.tar.gz
drakx-net-3e88f58bfebd2200bc2b7280cc07ff7bf64636b0.tar.bz2
drakx-net-3e88f58bfebd2200bc2b7280cc07ff7bf64636b0.tar.xz
drakx-net-3e88f58bfebd2200bc2b7280cc07ff7bf64636b0.zip
drakfirewall: replace obsolete state module with conntrack (mga#8225)
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/drakfirewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index a5596f5..3a808c2 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -284,7 +284,7 @@ sub set_ifw {
my $proto = $_;
map {
my $multiport = /:/ && " -m multiport";
- "iptables -A Ifw -m state --state NEW -p $proto$multiport --dport $_ -j IFWLOG --log-prefix NEW\n";
+ "iptables -A Ifw -m conntrack --ctstate NEW -p $proto$multiport --dport $_ -j IFWLOG --log-prefix NEW\n";
} @{$ports_by_proto->{$proto}};
} intersection([ qw(tcp udp) ], [ keys %$ports_by_proto ]),
);