netfilter: nf_tables: only allow in/output for arp packets
arp packets cannot be forwarded. They can be bridged, but then they can be filtered using either ebtables or nftables bridge family. The bridge netfilter exposes a "call-arptables" switch which pushes packets into arptables, but lets not expose this for nftables, so better close this asap. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
97772bcd56
commit
974292defe
@ -72,8 +72,7 @@ static const struct nf_chain_type filter_arp = {
|
|||||||
.family = NFPROTO_ARP,
|
.family = NFPROTO_ARP,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.hook_mask = (1 << NF_ARP_IN) |
|
.hook_mask = (1 << NF_ARP_IN) |
|
||||||
(1 << NF_ARP_OUT) |
|
(1 << NF_ARP_OUT),
|
||||||
(1 << NF_ARP_FORWARD),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init nf_tables_arp_init(void)
|
static int __init nf_tables_arp_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user