From 9396a7492e2fd7a1180732123ff45ec11691b575 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 28 Dec 2012 14:22:56 +0100 Subject: [PATCH] filter: fix warning about -m state in newer iptables Fixes this warning when using recent iptables: WARNING: The state match is obsolete. Use conntrack instead. ref #1497 --- awall/modules/filter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua index a635939..b697ae5 100644 --- a/awall/modules/filter.lua +++ b/awall/modules/filter.lua @@ -202,7 +202,7 @@ defrules = {} local fchains = {{chain='FORWARD'}, {chain='INPUT'}, {chain='OUTPUT'}} local dar = combinations(fchains, - {{opts='-m state --state RELATED,ESTABLISHED'}}) + {{opts='-m conntrack --ctstate RELATED,ESTABLISHED'}}) for i, chain in ipairs({'INPUT', 'OUTPUT'}) do table.insert(dar, {chain=chain, -- 1.8.0.3