Q: IPv6-only setup - get rid of 127.0.0.1

Dan Williams dcbw at redhat.com
Thu Jun 21 16:54:42 UTC 2012


On Thu, 2012-06-21 at 16:39 +0200, Lennart Poettering wrote:
> On Thu, 21.06.12 18:22, Alexey I. Froloff (raorn at raorn.name) wrote:
> 
> > On Thu, Jun 21, 2012 at 03:39:43PM +0200, Lennart Poettering wrote:
> > > Disabling IPv4 should result in socket(AF_INET, ...) returning
> > > EAFNOSUPPORT. Just taking away 127.0.0.1 doesn't do anything like that.
> > Yep, and it doesn't prevent for anyone listening on 0.0.0.0...
> > 
> > But still, is it possible to get rid of 127.0.0.1, or it's
> > hardcoded in systemd?
> 
> This is hardcoded in systemd, but nothing stops you from dropping this
> again from the interface.
> 
> Basically, the logic in systemd is to configured 127.0.0.1 to lo if IPv4
> is available and ::1 to lo if IPv6 is available. But if this is later
> undone or changed this is toally OK. 
> 
> We simply do this by default because this is such basic functionality
> that lo should work everywhere and always without and specific
> configuration.

NetworkManager also ensures that lo has 127.0.0.1, but that's only done
once on startup of NM.  This functionality has existed in NM for quite a
long time, predating systemd.  I'd be fine with disabling it for Fedora
now that systemd handles it.

Dan



More information about the devel mailing list