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 1a4473b18730f1a030df4df7d293971210396323..bd2a57c19c5ed354b4ba9e4fd98321921d61a657 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: