mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Savochkin <saw@saw.sw.com.sg>
To: Matthias Andree <matthias.andree@gmx.de>
Cc: Wietse Venema <wietse@porcupine.org>, Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19]
Date: Thu, 6 Sep 2001 20:38:54 +0400	[thread overview]
Message-ID: <20010906203854.A23109@castle.nmd.msu.ru> (raw)
In-Reply-To: <20010906173534.A21874@castle.nmd.msu.ru> <20010906140444.75DC1BC06C@spike.porcupine.org> <20010906162124.D29583@maggie.dt.e-technik.uni-dortmund.de> <20010906193750.B22187@castle.nmd.msu.ru> <20010906180130.H29583@maggie.dt.e-technik.uni-dortmund.de>
In-Reply-To: <20010906180130.H29583@maggie.dt.e-technik.uni-dortmund.de>; from "Matthias Andree" on Thu, Sep 06, 2001 at 06:01:30PM

On Thu, Sep 06, 2001 at 06:01:30PM +0200, Matthias Andree wrote:
> On Thu, 06 Sep 2001, Andrey Savochkin wrote:
> 
> > Of course, SIOCGIFCONF isn't even close to provide the list of local
> > addresses.
> > Obvious example: it doesn't enlist all addresses 127.0.0.1, 127.0.0.2 etc.
> > on common systems.  If you handle 127.0.0.2 as local, you apply side
> > knowledge about properties of loopback interface.
> 
> Well, 127.0.0.2 isn't a local address on my systems. It happens to pong
> if you ping, but that's a matter of its netmask (/255.0.0.0) and the
> "bounce all traffic" feature.

Hell, how else could you define the notion of a local address as not the
address which responds to pings without external network, the address for
which
	telnet 127.0.0.2 25
will give you the greeting of your MTA if you happen to have it listening on
INADDR_ANY and so on?
It _is_ local, and there are no other IP address being "less" local than
127.0.0.2.
All 127.0.0.0/8 addresses are local to the same extent.

> > Less obvious example: routes added to `local' table.
> > SIOCGIFCONF can never show them.
> 
> We're not talking about routes and rules, we're still talking about
> network addresses and the corresponding subnet masks. Don't digress to
> complicate things.

You are missing my point.
Local addresses do not exist at all, there are no such entity in the physical
world.
The only thing that exists is rules.
The rules defining how packets are processed.
According to the rules, some packets are handled locally, i.e. for them a
socket lookup is performed, the host answers by ICMP and so on.
If a class of packets with the same destination IP address is handled locally
independently of other circumstances such as source address, incoming
interface and so on, that destination IP address is the first approximation
to what may be called "local IP address".
But I couldn't help to repeat myself: those IP addresses do not exist as
objects, there are no data structures representing local IP addresses, and so
on, the property of being local is just a conclusion from the rules.
Packet handling rules (represented in FIB rules, FIB info structures and
netfilter data structures) are the only real universe.

> > On Thu, Sep 06, 2001 at 04:17:49PM +0200, Matthias Andree wrote:
> > > I'm not sure where and why you deduce the idea this is about MTA loop
> > > detection or peer recognition.
> > 
> > All other reasons are absolutely artificial.
> 
> Well, Postfix itself uses netmasks to obtain DEFAULT values. You can
> override these, so there is absolutely no point in discussing this.

My point is that you use wrong terms to represent any security policy.

> > The language of that section is amazing:
> >          An SMTP MUST accept and recognize a domain literal for any of
> > 	 its own IP addresses.
> > What might be ``own IP addresses'' of ``an SMTP''?..
> > Does SMTP server have ``own IP addresses'' at all?
> 
> Please stop these harassments. We're talking about broken or
> non-portable SIOCGIFNETMASK behaviour and not ranting about anything
> else, particularly not about Internet Standards.

What Andi was thinking about and I continued is to bring the question whether
you looked for what you wanted and needed.

It looks like you're looking for a non-existing thing.
I still don't understand what you expect to get from SIOCGIFNETMASK if there
are multiple address/mask pairs with different masks.
I don't understand why you want to prevent mail loops and handle mail
destined to user@[127.0.0.1] and don't want even to prevent loops on
[127.0.0.2].

My advice is to re-consider your terms.
If I were involved in the development of postfix or a similar system, I would
immediately drop attempts to auto-configure local addresses and remove
"local networks" as a way to express access policy.

Being realistic, I consider the chances of you following my advice as very
low.  However, I hope that you at least understand my points and realize that
you have serious terminology problems in this area in general, and
the results of your SIOCG* calls do not have real-world sense, at least on
Linux.  SIOCG* calls just show what was previously set by SIOCS* calls, and
it has little to do with the real world, network configuration, packet
handling and so on.

	Andrey

  reply	other threads:[~2001-09-06 16:32 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010905170037.A6473@emma1.emma.line.org.suse.lists.linux.kernel>
     [not found] ` <20010905152738.C5912BC06D@spike.porcupine.org.suse.lists.linux.kernel>
     [not found]   ` <20010905182033.D3926@emma1.emma.line.org.suse.lists.linux.kernel>
2001-09-05 19:26     ` ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 Andi Kleen
2001-09-06 13:11       ` Matthias Andree
2001-09-06 13:35       ` Andrey Savochkin
2001-09-06 14:04         ` Wietse Venema
2001-09-06 14:21           ` Matthias Andree
2001-09-06 15:37             ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andrey Savochkin
2001-09-06 15:58               ` Wietse Venema
2001-09-06 16:39                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Alan Cox
2001-09-06 16:45                   ` Wietse Venema
2001-09-06 16:44                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andrey Savochkin
2001-09-06 16:47                   ` Andi Kleen
2001-09-06 17:04                     ` Andrey Savochkin
2001-09-06 16:50                   ` Wietse Venema
2001-09-06 17:01                     ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Alan Cox
2001-09-06 17:23                       ` Wietse Venema
2001-09-06 17:45                         ` Charles Cazabon
2001-09-06 19:34                         ` Alan Cox
2001-09-06 19:41                           ` Wietse Venema
2001-09-06 20:18                             ` Alan Cox
2001-09-06 20:11                           ` Matthias Andree
2001-09-06 20:23                             ` Alan Cox
2001-09-06 20:31                               ` Andi Kleen
2001-09-06 20:52                                 ` Matthias Andree
2001-09-07  9:06                             ` Henning P. Schmiedehausen
2001-09-07  8:52                         ` Matthew Kirkwood
2001-09-08 16:31                           ` Wietse Venema
2001-09-06 18:11                       ` Steve VanDevender
2001-09-06 18:25                         ` Wietse Venema
2001-09-06 19:47                           ` Alan Cox
2001-09-06 20:16                             ` Wietse Venema
2001-09-06 19:10                         ` Steve VanDevender
2001-09-13 14:35                       ` Pavel Machek
2001-09-06 17:03                     ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andi Kleen
2001-09-06 17:23                     ` Andrey Savochkin
2001-09-06 17:39                       ` Wietse Venema
2001-09-06 18:23                         ` H. Peter Anvin
2001-09-07  1:47                           ` Jamie Lokier
2001-09-07  5:48                           ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip aliasbug " Ben Greear
2001-09-07  5:50                             ` H. Peter Anvin
2001-09-17 21:39                               ` Ben Greear
2001-09-07  6:26                             ` Andrey Savochkin
2001-09-07  6:21                               ` H. Peter Anvin
2001-09-06 19:15                         ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug " dean gaudet
2001-09-06 19:33                           ` Wietse Venema
2001-09-06 20:51                         ` Matti Aarnio
2001-09-07  7:29                           ` Andrey Savochkin
2001-09-07  7:35                             ` Matthias Andree
2001-09-07 10:30                         ` Mike Jagdis
2001-09-07 11:04                           ` Matthias Andree
2001-09-07 15:34                         ` Kurt Roeckx
2001-09-08 13:16                         ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Kai Henningsen
2001-09-06 18:20                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] H. Peter Anvin
2001-09-06 16:01               ` Matthias Andree
2001-09-06 16:38                 ` Andrey Savochkin [this message]
2001-09-06 16:43                   ` Wietse Venema
2001-09-06 17:03                     ` Charles Cazabon
2001-09-06 17:05                   ` Alex Bligh - linux-kernel
2001-09-06 17:37                     ` Andrey Savochkin
2001-09-06 17:55               ` kuznet
2001-09-06 14:51           ` ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 Alan Cox
2001-09-06 14:17         ` Matthias Andree
2001-09-08 12:42     ` Kai Henningsen
2001-09-09  0:37       ` Matthias Andree

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=20010906203854.A23109@castle.nmd.msu.ru \
    --to=saw@saw.sw.com.sg \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.andree@gmx.de \
    --cc=wietse@porcupine.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

all inboxes | Powered by JetHome®