First Q:paranoid little me has a habit of wanting to lock default gateway hw
address (MAC) in my arp cache. So I run arp -s to create a static entry to
my default gateway. Should last until next boot but that's OK since who has
to boot a unix? ;-P
And here is the problem: after a while (I've not really noticed this until
recently), 'PERM' goes away and I have another MAC address to the default
gateway in my arp cahce. I've also seen arpwatch (run in foreground) log
that the default gateway had changed IP (since last run).
My problem is that I do *not* want *anything* to be able to update the
static entry in the cache for security reasons. I'm on a cable modem and my
Liunx RH 7.x acts as firewall. I have experienced promiscuous ARP replies
(as broadcasts) and don't want anyone/-thing to be able to manipulate me in
any way. I told you I'm paranoid! ;-D If the default gateway changes MAC,
*I* want to update my cache! And I doubt that there are two MACs servicing
the same IP in my case.
Forcing down a new hw address to the default gateway is half the way to
steal my traffic. At least it takes care of all my outbound traffic.
Now, I've looked at the source code in net/ipv4 and I can't see that an
arp_update should be able to overwrite static ATF_PERM entries in the cache,
but for some reason something like this happens. Neither should the
arp_force_expire be able to remove the static entry since: a) I rarely have
more than perhaps four or five entries in the cache and b) it is a static
(ATF_PERM) entry and I somehow doubt that the entry lookup fails and causes
a secondary (dup) entry (and somehow cleans up the old static entry)..
Mind you, the code I've been looking at is Linux, not RH!
I can't find anything (obvious) in ip_input or other routines that should
cause this! Please tell me I'm seeing things that don't exist and that the
logic works and I'm protected!
Second Q is: can I protect myslef in other ways from arp cache
manipulations. Basically, I don't want the cache to be updated unless I've
sent a query first! ipchains don't help with this but I'd love to make
modifications to arp.c but that's not really the way it should be solved, is
Per a.k.a. The Paranoid Icekube
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----