Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Bind to 127.0.0.N for any N
Date: Fri, 29 Jan 2021 02:09:44
Message-Id: ruvqos$uc0$1@ciao.gmane.io
In Reply to: Re: [gentoo-user] Bind to 127.0.0.N for any N by Grant Taylor
1 On 2021-01-29, Grant Taylor <gtaylor@×××××××××××××××××××××.net> wrote:
2
3 > My understanding -- which may be wrong, and please correct me if you
4 > think it is -- is that this special route (#2) is how the kernel sends
5 > the entire 127/8 network to the lo adapter, even if the IP addresses
6 > aren't bound to the adapter.
7
8 I think that's probably right. I had never used the 'ip route' command
9 like that and was unaware that route existed.
10
11 > Now, as for things receiving the connections, I think it is highly
12 > dependent on if the thing is listening to 0.0.0.0 or specific IP
13 > addresses. Because if it's listening to 0.0.0.0, I think it will
14 > happily serve connections to other addresses in 127/8.
15
16 Yes, that's correct. [I just tested it]
17
18 > If it's listening to explicitly 127.0.0.1, then it likely will not
19 > serve connections to other addresses in 127/8.
20
21 Also correct.
22
23 --
24 Grant

Replies

Subject Author
Re: [gentoo-user] Re: Bind to 127.0.0.N for any N Grant Taylor <gtaylor@×××××××××××××××××××××.net>