From: Jeroen Massar <jeroen@unfix.org>
To: Marc Singer <elf@buici.com>
Cc: Ben Greear <greearb@candelatech.com>, Al Boldi <a1426z@gawab.com>,
netdev@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: [RFC] ip / ifconfig redesign
Date: Mon, 05 Dec 2005 18:59:07 +0100 [thread overview]
Message-ID: <43947FEB.7020504@unfix.org> (raw)
In-Reply-To: <20051205174010.GA14101@buici.com>
[-- Attachment #1: Type: text/plain, Size: 1980 bytes --]
Marc Singer wrote:
> On Mon, Dec 05, 2005 at 09:01:00AM -0500, John W. Linville wrote:
>> On Sat, Dec 03, 2005 at 10:33:32AM -0800, Ben Greear wrote:
<SNIP>
>> The association between IP addresses and links is already a bit murky.
>> Reference the arp_announce sysctl for what I mean. I recall Dave M.
>> emphasizing on at least one occassion that IP addresses belong to
>> the _box_, not to the link.
>
> Precisely the case. It should be the case that a box response to an
> arp on *any* interface for *any* IP address known to the box.
Thus you have the following nice setup:
10.100.10.0/24 = 10Gbit streaming network
10.100.20.0/24 = 10mbit admin network
10.100.10.1 on eth0
10.100.20.1 on eth2
Then some idiot misconfigures his client box, putting 10.100.10.42/24 on
the NIC that is supposed to be in the admin network only.
Suddenly your 10mbit link is full because the arp's get answered on this
link.
I wonder how many RFC's it violates. An interface must only answer ARP's
on the interface that it is configured on, not anything else.
There is a low level of brokeness here already. When you have:
eth0 = 10.100.10.1/24
eth1 = 192.168.1.1/24
default route towards 192.168.1.250, forwarding enabled.
SMTP on 192.168.1.1.
Now when a client from 10.100.10.5 contacts 192.168.1.1, the FORWARD
chain of iptables is skipped. The packet directly comes into INPUT.
Blocking based on the decision that it is actually being forwarded is
impossible because of this, unless you do -i eth0 -d 192.168.1.1.
Combine this with the above and you can suddenly access internal IP's
when the firewall is configured correctly to block FORWARD's from the
eth1 interface and you have an internal service on 10.100.10.1. You only
have to find a way to be local on the external interface so that you can
do arp's for internal IP's. It will be loved by pesky ISP's who limit
people and disallow them to do NAT of course.
Greets,
Jeroen
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 238 bytes --]
next prev parent reply other threads:[~2005-12-05 17:59 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 19:53 [RFC] ip / ifconfig redesign Al Boldi
2005-12-02 19:59 ` Pekka Savola
2005-12-02 20:08 ` Ben Greear
2005-12-02 20:38 ` linux-os (Dick Johnson)
2005-12-02 22:49 ` Jesper Juhl
2005-12-10 18:51 ` Stefan Smietanowski
2005-12-02 22:40 ` Jeff V. Merkey
2005-12-03 13:46 ` Al Boldi
2005-12-03 18:33 ` Ben Greear
2005-12-03 20:25 ` Al Boldi
2005-12-05 14:01 ` John W. Linville
2005-12-05 14:20 ` Jeroen Massar
2005-12-05 17:40 ` Marc Singer
2005-12-05 17:59 ` Jeroen Massar [this message]
2005-12-05 20:56 ` Marc Singer
2005-12-05 22:19 ` John Heffner
2005-12-05 22:28 ` Rick Jones
2005-12-05 22:30 ` John Heffner
2005-12-05 22:43 ` Rick Jones
2005-12-05 23:03 ` John Heffner
2005-12-06 5:13 ` Marc Singer
2005-12-05 22:48 ` Jeroen Massar
2005-12-05 22:56 ` John Heffner
2005-12-05 23:10 ` Jeroen Massar
2005-12-06 5:18 ` Marc Singer
2005-12-05 18:00 ` Ben Greear
2005-12-05 20:10 ` John W. Linville
2005-12-05 21:03 ` Marc Singer
2005-12-05 20:48 ` Al Boldi
2005-12-14 14:19 ` Al Boldi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43947FEB.7020504@unfix.org \
--to=jeroen@unfix.org \
--cc=a1426z@gawab.com \
--cc=elf@buici.com \
--cc=greearb@candelatech.com \
--cc=linux-net@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).