Skip to contentSkip to conversation

hiding arp for server farms

DISCUSSION Andi Kleen 1 participant 1 message Nov 28, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 6 lines · Adrian Daminato

Now, introduce an unpatched 2.4.x kernel. The hidden option no longer exists, and for ease of operating a production environment, we prefer to use stock kernels straight from kernel.org, no patches at all. I've tried many different suggestion from the list:

1) ifconfig eth0 -arp

It'll make the stack no put any mac addresses into your packets, which is likely not what you want.

Quoted 4 lines

Is there any way to have this work on an unpatched 2.4.x kernel? Any documentation/examples for arp_filter, how it works, how it can be implemented for this?

arp_filter was not really designed to fix such a br^wweird setup.

It is possible to do it but a bit ugly. Basically you have to express a policy filter rule/route that matches the outgoing ARP, but not the data and make the arp route a blackhole route. The kernel unfortunately has no special key to select ARP, so it has to be expressed in some other way (e.g. mark rules etc.), which is usually possible, but ugly.

Your problems in (3) is that you asked for ARP to be turned off which obviously breaks things if noone else (like your load balancing monstrosity) does the ARP for you. IIRC the hidden guys usually work around this by using a separate hidden virtual interface and only use that for load balancing purposes. In the end it gets similarly ugly as the arp_filter setup.

-Andi

P.S.: I would not recommend 2.4.9 unpatched for any production setup.