Skip to content
Commit cb20f2d2 authored by Paolo Abeni's avatar Paolo Abeni Committed by Pablo Neira Ayuso
Browse files

netfilter: xt_nat: fix DNAT target for shifted portmap ranges



The commit 2eb0f624 ("netfilter: add NAT support for shifted
portmap ranges") did not set the checkentry/destroy callbacks for
the newly added DNAT target. As a result, rulesets using only
such nat targets are not effective, as the relevant conntrack hooks
are not enabled.
The above affect also nft_compat rulesets.
Fix the issue adding the missing initializers.

Fixes: 2eb0f624 ("netfilter: add NAT support for shifted portmap ranges")
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent d701d811
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment