rule->enabled = true;
- fw3_parse_options(rule, fw3_rule_opts, s);
+ if (!fw3_parse_options(rule, fw3_rule_opts, s))
+ {
+ warn_elem(e, "skipped due to invalid options");
+ fw3_free_rule(rule);
+ continue;
+ }
if (!rule->enabled)
{
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: