Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] arp question
Date: Sat, 26 Dec 2015 03:20:40
Message-Id: CAGfcS_=W92o2MG75b5cPN8md8a=hGkGMT+6J7i_7A4MCXAaZ=Q@mail.gmail.com
In Reply to: Re: [gentoo-user] arp question by Adam Carter
1 On Fri, Dec 25, 2015 at 9:00 PM, Adam Carter <adamcarter3@×××××.com> wrote:
2 >> grandstream.yagibdah.de (192.168.3.80) auf 00:0b:82:16:ed:9e [ether] auf
3 >> enp2s0
4 >> grandstream.yagibdah.de (192.168.3.80) auf 00:0b:82:16:ed:9e [ether] auf
5 >> enp1s0
6 >> spa.yagibdah.de (192.168.3.81) auf 88:75:56:07:44:c8 [ether] auf enp2s0
7 >> spa.yagibdah.de (192.168.3.81) auf 88:75:56:07:44:c8 [ether] auf enp1s0
8 >>
9 >>
10 >> enp2s0 is an interface dedicated to a PPPoE connection, and enp1s0
11 >> connects to the LAN.
12 >>
13 >> IIUC, this is bound to cause problems.
14 >>
15 >> How is it possible for the wrong entries to be created, and what can I
16 >> do to prevent them?
17 >>
18 >
19 > arp mappings are untrusted so your machine will accept anything is sees on
20 > the network. That's what makes MITM so easy on a connected subnet. What
21 > makes you think they are wrong? Also, the output of ifconfig would be
22 > helpful.
23
24 I suspect those interfaces are getting bridged or something, but I'm
25 not an expert on such things.
26
27 If a given IP has a MAC on more than one interface, the interface the
28 packets go out to is still controlled by the routing rules. If the
29 routing rule says that 1.1.1.1 is on eth0 it doesn't matter that eth0
30 doesn't have an ARP entry and eth1 does - I believe it will just be
31 undelivered or sent to the gateway for eth0 if it isn't on a local
32 subnet for that interface. If you have some kind of routing loop it
33 could actually make its way back to the interface on eth1. ARP
34 doesn't come into play until the kernel goes to send something on an
35 interface and determines it is on a subnet for that interface. Again,
36 I'm not an expert in this and there could be some nuance to the rules
37 that I'm missing.
38
39 --
40 Rich

Replies

Subject Author
Re: [gentoo-user] arp question lee <lee@××××××××.de>