Skip to contentSkip to conversation

netfilter: nftables: onlly allow in/output for arp packets

PATCH Applied Florian Westphal 2 participants 2 messages Jul 7, 2017 – Jul 17, 2017

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: nftables: onlly 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.

---
 net/ipv4/netfilter/nf_tables_arp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/ipv4/netfilter/nf_tables_arp.c +1 -2
index 805c8dd..4bbc273 100644
@@ -72,8 +72,7 @@ static const struct nf_chain_type filter_arp = {
 	.family		= NFPROTO_ARP,
 	.owner		= THIS_MODULE,
 	.hook_mask	= (1 << NF_ARP_IN) |
-			  (1 << NF_ARP_OUT) |
-			  (1 << NF_ARP_FORWARD),
+			  (1 << NF_ARP_OUT),
 };
 
 static int __init nf_tables_arp_init(void)
Signature · 1 line
2.9.4
maintainer Applied
#1 lore raw
Quoted 8 lines · Florian Westphal

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.

Applied, thanks.