Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Alexey I. Froloff
Hi,

I am running F17 in IPv6-only network (behind NAT64 gateway) and
would like to get rid of 127.0.0.1 address from lo interface.
Please, don't tell me, that this would break lots of stone-aged
software, because such configuration works for about a year
already in non-RH distro.  

I can't find who sets inet 127.0.0.1/8 scope host address to lo
interface.  Commented out the IPADDRESS in ifcfg-lo - no result.

Who's doing this?

-- 
Regards,--
Sir Raorn.   --- http://thousandsofhate.blogspot.com/


signature.asc
Description: Digital signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Tomasz Torcz
On Thu, Jun 21, 2012 at 04:42:54PM +0400, Alexey I. Froloff wrote:
 Hi,
 
 I am running F17 in IPv6-only network (behind NAT64 gateway) and
 would like to get rid of 127.0.0.1 address from lo interface.
 Please, don't tell me, that this would break lots of stone-aged
 software, because such configuration works for about a year
 already in non-RH distro.  
 
 I can't find who sets inet 127.0.0.1/8 scope host address to lo
 interface.  Commented out the IPADDRESS in ifcfg-lo - no result.
 

  systemd sets this very early during boot.


-- 
Tomasz TorczThere exists no separation between gods and men:
xmpp: zdzich...@chrome.pl   one blends softly casual into the other.

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Alexey I. Froloff
On Thu, Jun 21, 2012 at 02:44:42PM +0200, Tomasz Torcz wrote:
  I can't find who sets inet 127.0.0.1/8 scope host address to lo
  interface.  Commented out the IPADDRESS in ifcfg-lo - no result.
   systemd sets this very early during boot.
Is is configurable?

-- 
Regards,--
Sir Raorn.   --- http://thousandsofhate.blogspot.com/


signature.asc
Description: Digital signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Lennart Poettering
On Thu, 21.06.12 16:59, Alexey I. Froloff (ra...@raorn.name) wrote:

 On Thu, Jun 21, 2012 at 02:44:42PM +0200, Tomasz Torcz wrote:
   I can't find who sets inet 127.0.0.1/8 scope host address to lo
   interface.  Commented out the IPADDRESS in ifcfg-lo - no result.
systemd sets this very early during boot.
 Is is configurable?

Nope.

Just dropping the loopback IP address doesn't disable IPv4. if you want
to disable IPv4 like you can disable IPv6 then this probably needs
kernel support.

Disabling IPv4 should result in socket(AF_INET, ...) returning
EAFNOSUPPORT. Just taking away 127.0.0.1 doesn't do anything like that.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Bill Nottingham
Lennart Poettering (mzerq...@0pointer.de) said: 
 On Thu, 21.06.12 16:59, Alexey I. Froloff (ra...@raorn.name) wrote:
 
  On Thu, Jun 21, 2012 at 02:44:42PM +0200, Tomasz Torcz wrote:
I can't find who sets inet 127.0.0.1/8 scope host address to lo
interface.  Commented out the IPADDRESS in ifcfg-lo - no result.
 systemd sets this very early during boot.
  Is is configurable?
 
 Nope.
 
 Just dropping the loopback IP address doesn't disable IPv4. if you want
 to disable IPv4 like you can disable IPv6 then this probably needs
 kernel support.
 
 Disabling IPv4 should result in socket(AF_INET, ...) returning
 EAFNOSUPPORT. Just taking away 127.0.0.1 doesn't do anything like that.

Right - unlike IPv6, where it can be fully disabled, the best you can do
with IPv4 is just drop all IPv4 addresses.

Bill
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Alexey I. Froloff
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?

-- 
Regards,--
Sir Raorn.   --- http://thousandsofhate.blogspot.com/


signature.asc
Description: Digital signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Lennart Poettering
On Thu, 21.06.12 18:22, Alexey I. Froloff (ra...@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.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Q: IPv6-only setup - get rid of 127.0.0.1

2012-06-21 Thread Dan Williams
On Thu, 2012-06-21 at 16:39 +0200, Lennart Poettering wrote:
 On Thu, 21.06.12 18:22, Alexey I. Froloff (ra...@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

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel