]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-nft: fix basechain policy configuration
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 2 Oct 2020 11:44:36 +0000 (13:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 8 Oct 2020 17:24:12 +0000 (19:24 +0200)
commit0bd7a8eaf3582159490ab355b1217a4e42ed021f
treeb576f86f1f2fb87d01230e6f4ab52dc909adf608
parente98b825a037807bf6c918eb66ee9682cc4c46183
iptables-nft: fix basechain policy configuration

Previous to this patch, the basechain policy could not be properly
configured if it wasn't explictly set when loading the ruleset, leading
to iptables-nft-restore (and ip6tables-nft-restore) trying to send an
invalid ruleset to the kernel.

Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/tests/shell/testcases/nft-only/0008-basechain-policy_0 [new file with mode: 0755]