Both queue and fwd statement end evaluation of a rule:
in
... fwd to "eth0" accept
... queue accept
"accept" is redundant and never evaluated in the kernel.
Add the missing "TERMINAL" flag so the evaluation step will catch
any trailing expressions:
nft add rule filter input queue counter
Error: Statement after terminal statement has no effect
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
default:
return stmt_error(ctx, stmt, "unsupported family");
}
+ stmt->flags |= STMT_F_TERMINAL;
return 0;
}
"fanout requires a range to be "
"specified");
}
+ stmt->flags |= STMT_F_TERMINAL;
return 0;
}