From: Jo-Philipp Wich Date: Wed, 14 Aug 2013 14:50:49 +0000 (+0200) Subject: Use "-j CT --notrack" instead of deprecated "-j NOTRACK" X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=14c1539ced24a68d0175f2763cf2519a54d15fa2;p=oweals%2Ffirewall3.git Use "-j CT --notrack" instead of deprecated "-j NOTRACK" --- diff --git a/rules.c b/rules.c index 1a4473b..bd2a57c 100644 --- 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: