Use "-j CT --notrack" instead of deprecated "-j NOTRACK"
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 14 Aug 2013 14:50:49 +0000 (16:50 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 14 Aug 2013 14:50:49 +0000 (16:50 +0200)
rules.c

diff --git a/rules.c b/rules.c
index 1a4473b..bd2a57c 100644 (file)
--- a/rules.c
+++ b/rules.c
@@ -286,7 +286,8 @@ static void set_target(struct fw3_ipt_rule *r, struct fw3_rule *rule)
                return;
 
        case FW3_FLAG_NOTRACK:
-               fw3_ipt_rule_target(r, fw3_flag_names[rule->target]);
+               fw3_ipt_rule_target(r, "CT");
+               fw3_ipt_rule_addarg(r, false, "--notrack", NULL);
                return;
 
        case FW3_FLAG_ACCEPT: