NetBSD Problem Report #7490

Received: (qmail 21866 invoked from network); 28 Apr 1999 20:39:02 -0000
Message-Id: <199904282034.WAA04273@polder.ubc.kun.nl>
Date: Wed, 28 Apr 1999 22:34:02 +0200 (CEST)
From: rhialto@polder.ubc.kun.nl
Reply-To: rhialto@polder.ubc.kun.nl
To: gnats-bugs@gnats.netbsd.org
Subject: ARP entries can be overwritten from wrong interface
X-Send-Pr-Version: 3.95

>Number:         7490
>Category:       kern
>Synopsis:       ARP entries can be overwritten from wrong interface
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    is
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 28 13:50:00 +0000 1999
>Closed-Date:    Wed May 05 21:16:56 +0000 1999
>Last-Modified:  Wed May 05 21:18:13 +0000 1999
>Originator:     Rhialto
>Release:        1.3.3
>Organization:

>Environment:

System: NetBSD polder 1.3.3 NetBSD 1.3.3 (ROUTER) #13: Sun Apr 25 17:56:09 CEST 1999 rhialto@polder:/usr/src/sys/arch/i386/compile/ROUTER i386


>Description:

	I had configured a gateway to respond to several IP addresses
	for purposes of NAT. To do that I needed to add ARP entries
	for these IP addresses corresponding to the appropriate
	Ethernet address.

	Then an incorrectly configured machine came along, set to one
	of the same IP adresses. This machine was on the OTHER interface:
	its IP address did not correspond to the network it was in.
	But still the ARP entry for this IP address was overwritten and
	of course never restored.

	Lossage ensued.

	Of course, the system should only accept ARP info if such
	info comes from an interface that has the same network number.

	(This looks a lot like my previous PR but I suffered from two
	bugs at once)
>How-To-Repeat:

	# arp -s ipaddr etheraddr pub
	configure another machine to use the same ip addr on another i/f.
	watch the ARP entry get overwritten.

>Fix:

	None supplied.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->is 
Responsible-Changed-By: hwr 
Responsible-Changed-When: Thu Apr 29 12:21:18 PDT 1999 
Responsible-Changed-Why:  
ARP is IS' Baby 
State-Changed-From-To: open->feedback 
State-Changed-By: is 
State-Changed-When: Tue May 4 13:57:18 PDT 1999 
State-Changed-Why:  
Fixed in -current and 1.4, nearly as per PR 7497. 
Please report wether this really works with your setup. 
State-Changed-From-To: feedback->closed 
State-Changed-By: is 
State-Changed-When: Wed May 5 14:16:56 PDT 1999 
State-Changed-Why:  
Submitter reports it works. 
>Unformatted:

 See also 7489 and 7497

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.