public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: arp bug
@ 2002-01-08 23:33 Julian Anastasov
  2002-03-02 18:42 ` Network Security hole (was -> Re: arp bug ) erich
  0 siblings, 1 reply; 27+ messages in thread
From: Julian Anastasov @ 2002-01-08 23:33 UTC (permalink / raw)
  To: Szekeres Bela; +Cc: linux-kernel, Daniel Gryniewicz


	Hello,

Szekeres Bela wrote:

> I've seen a similar bug in 2.2.19 (and a lot of 2.2-s, I've not checked it in
> the 2.4 series).

	In your case

> --------------------------- 10.1.0.0 (tr)
>   |.1       |.2
>  BOX1      BOX2      BOX3
>   |.1       |.2       |.3
> --------------------------- 10.2.0.0 (eth)

	it is a feature, may be not fully utilized without using
alternative link routes. At least, I don't know for any standard
that is not followed from this feature. IMO, the following fix
is more correct:

01_arp_prefsrc-2.2.19-4.diff
or
01_arp_prefsrc-2.4.12-5.diff
from
http://www.linuxvirtualserver.org/~julian/#routes

its main usage is for devices attached to same medium but should
work for your case too. It always uses the preferred source IP
to the target because any local IP addresses announced in our probes
are updated in the remote ARP caches and in some cases it is not
the desired behavior. Even the Linux's rp_filter protection can't
avoid the ARP cache entry update. It could be a "problem" when BOX2 uses
devices attached to same medium. Other users are happy with such
feature because if eth0 fails may be eth1 still have link to the
same hub, for example.

> In my case BOX1 is a NetWare, which caches all the arp queries it sees, which
> produced a very interesting arp table in BOX1...

	It seems NetWare is different than Linux in this handling.
Linux does not create new entries in the ARP cache. But even if they
are created (in NetWare) I can't believe they are used (I hope
the ARP entry is looked up by IP and outdev, not only by IP).

	But note that:

- BOX2 is right to announce 10.1.0.2 through the eth device because
it can accept traffic to 10.1.0.2 from any device. At least, it
depends on the sender's address and the rp_filter values in BOX2.
You should be able to talk with 10.1.0.2 through the eth device
from any host attached to the same eth device.

- BOX1 can decide through which device to talk with BOX2, may be
in your case it is set to accept traffic from the both devices
but to send only through one of them (similar to rp_filter=0 in
Linux). You need alternative link routes to allow sending through
the both devices but may be that is not your goal.

So, where in fact is the problem without applying any patches?
May be there is no problem? Or NetWare has a problem to create
new ARP entries and even to use them?

	As for the Daniel's problem I don't understand where is
the link route created for the 10.128.0.0/9 network ? Or may be the key
is to have the right preferred source IP address for all routes?:

ip route add ... src PREFSRC

Regards

--
Julian Anastasov <ja@ssi.bg>


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2002-03-04 18:15 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-08 23:33 arp bug Julian Anastasov
2002-03-02 18:42 ` Network Security hole (was -> Re: arp bug ) erich
2002-03-02 19:14   ` Alan Cox
2002-03-02 19:58     ` erich
2002-03-02 20:22       ` Alan Cox
2002-03-02 20:31         ` erich
2002-03-02 20:52           ` Alan Cox
2002-03-02 21:14             ` erich
2002-03-02 23:31           ` Andrew Pimlott
2002-03-03  1:00             ` erich
2002-03-03  3:21           ` David Ford
     [not found]       ` <Your message of "Sat, 02 Mar 2002 19:14:55 GMT." <E16hEy7-000875-00@the-village.bc.nu>
2002-03-03  0:50         ` Stevie O
2002-03-02 21:52   ` Julian Anastasov
2002-03-02 20:23     ` Alan Cox
2002-03-02 20:26       ` Ben Greear
2002-03-02 23:23       ` Karl
2002-03-03  0:20       ` Julian Anastasov
2002-03-02 22:40         ` Alan Cox
2002-03-03  0:46           ` Julian Anastasov
2002-03-02 23:27             ` Alan Cox
2002-03-03  2:38               ` Julian Anastasov
2002-03-03  0:21             ` erich
2002-03-03  0:33               ` Russell King
2002-03-03  0:43                 ` erich
2002-03-03  0:49                   ` erich
     [not found]                     ` <Your message of "Sat, 02 Mar 2002 16:43:23 PST." <E16hK5z-0000vI-00@trillium-hollow.org>
2002-03-03  1:05                       ` Stevie O
2002-03-04 18:14                         ` Paul Jakma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox