unwanted proxy arp in 2.4.19-pre10
Quoted 10 lines · dean gaudet
Quoted 5 lines · David S. Miller
You have to use specific source-routing settings in conjuntion with enabling
arp_filterin order forarp_filterto have any effect.This is a FAQ.
a couple google queries yielded no answer to this faq... is there a posted example somewhere?
arpfilter normally needs no special routing entries, unless you want to do weird things (like filtering ARP based on source). The main use of arp filter is to prevent multiple arp answers on multiple devices when the host has more than one interface to the same network. The other use is to allow load balancing for incoming connections together with multi path routing.
It can be abused for more complex filtering scenaries:
The arpfilter routing decision takes the reversed address tuple in account. When the routing decision yields the device that the ARP arrived on then the ARP is answered otherwise not.
You can construct policy routing rules that match the ARP requests you want to prevent with some tricks, but do not match outgoing packets. Easy? It's not easy, but nobody said it was.
The main use of this seem to be certain HA failover setups. Some people use a patch that allows to disable ARP per interface for it ("hidden") but for some reasons it was not integrated.
Quoted 3 lines
is the default behaviour of use to anyone? this question comes up like every other month.
It would be likely easier/more straightforward if there was a special ARP routing table that is only consulted by ARP filter (as an extension to the current multi table routing). Then you could just put reject routes there to filter ARP Unfortunately nobody has stepped forward to implement it yet, so it remained a dream so far.
Another thing that was implemented is a netfilter chain for ARP, but afaik there are no filtering modules for it yet, so Joe User cannot use it. It likely just exists somewhere as a proprietary module in someone's firewall appliance and all they did was to contribute the hook. It probably would not be hard to rewrite a filter module for it, but again nobody did it yet.
Hope this helps,
-Andi
From: Andi Kleen <[email protected]>
Date: 14 Jul 2002 20:40:23 +0200
Another thing that was implemented is a netfilter chain for ARP, but afaik there are no filtering modules for it yet, so Joe User cannot use it. It likely just exists somewhere as a proprietary module in someone's firewall appliance and all they did was to contribute the hook. It probably would not be hard to rewrite a filter module for it, but again nobody did it yet.
I wrote the kernel bits but never got around to coding up the netfilter user tools. Assuming, just because of lacking userland tools, it was for some "proprietary firewall appliance" is pretty damn rude. You could have at least looked at who the author was and asked him (ie. me). :(