public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] IPv4 & IPv6
@ 2018-04-28  6:09 Hartmut Figge
  2018-04-28  6:50 ` Klaus Ethgen
  2018-04-29 15:47 ` [gentoo-user] " Walter Dnes
  0 siblings, 2 replies; 4+ messages in thread
From: Hartmut Figge @ 2018-04-28  6:09 UTC (permalink / raw
  To: gentoo-user

Greetings,

I do not know why my machine suddenly local uses IPv6 instead of IPv4. I
noticed it today when I was unable to retrieve mail. syslog now shows

xinetd[3763]: START: pop-3 from=::1
instead of the former
xinetd[3761]: START: pop-3 pid=22632 from=127.0.0.1

and 'telnet localhost pop3' fails unless I force IPv4 with
'telnet -4 localhost pop3'.

I was unable to find the place where I could change this behavior, so I
used a dirty trick.

----- /etc/hosts -----
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost
# ::1   localhost
---------------

Commenting out the last line helped and I could get my mails. But that
is really a dirty trick. *g*.

I have never used IPv6, I don't intend to and I have forgotten most of
what I may have known about the issue. Hopefully on of you knows the
right way.

Hartmut



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] IPv4 & IPv6
  2018-04-28  6:09 [gentoo-user] IPv4 & IPv6 Hartmut Figge
@ 2018-04-28  6:50 ` Klaus Ethgen
  2018-04-28  7:33   ` [gentoo-user] " Hartmut Figge
  2018-04-29 15:47 ` [gentoo-user] " Walter Dnes
  1 sibling, 1 reply; 4+ messages in thread
From: Klaus Ethgen @ 2018-04-28  6:50 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

Am Sa den 28. Apr 2018 um  7:09 schrieb Hartmut Figge:
> I do not know why my machine suddenly local uses IPv6 instead of IPv4. I
> noticed it today when I was unable to retrieve mail. syslog now shows
[...]
> ----- /etc/hosts -----
> # IPv4 and IPv6 localhost aliases
> 127.0.0.1 localhost
> # ::1   localhost
> ---------------
> 
> Commenting out the last line helped and I could get my mails. But that
> is really a dirty trick. *g*.

You might add the following line in /etc/gai.conf:
   precedence ::ffff:0:0/96  100

instead of
   precedence ::ffff:0:0/96  10

Note that you need the full precedence-block if it is commented out.
Just change that line.

Regards
   Klaus
- -- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlrkGZwACgkQpnwKsYAZ
9qyl0AwAgwC/epv2/DBq57K1s3iN3uTeI66rnqPBOdsT2o1Sp7AdMrdC+F7waUlE
oHDru9LQ00mdQqWG375exXoVlMXseeejNVwLvMaMig8kD2EdQQFHpOGakaqx2JZ0
lsnPGS8pd1BRf/uOOslr0TLL9a33wTeJfdR92n3I93ChFbYXV/PhZa9elTlq0v6+
srcVP3M1ioZ5fh20EeZETm5amiUdm4cKsYH9+8bH6NJKFYJJodJE08CZyNC8uuSi
8E3lFceNTE4+plKfH8Y87rfqeMhBHLLINGfzgYsv314ldPIEUPu0RXAc+M1ZRGZc
aj+XOlzo1XtKwlEKhZpG1hgKmHgJ49IO5ZBKzQmtRfIEzTP1xi0VhBIFvMYh6q5S
7soBxrc6girhq0NVfoIJ1MzYgIFqnTP24YamiJifQ1SdxaCHazIqBm0c8nIjAwCL
Al99W6tzO807GGMEb+VShc+VUKOOHLGYfPAQ2tf5VzhXVRzCBGFq3CwfHL4bTj+H
u1No3mDq
=pqnf
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: IPv4 & IPv6
  2018-04-28  6:50 ` Klaus Ethgen
@ 2018-04-28  7:33   ` Hartmut Figge
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Figge @ 2018-04-28  7:33 UTC (permalink / raw
  To: gentoo-user

Klaus Ethgen:

>You might add the following line in /etc/gai.conf:
>   precedence ::ffff:0:0/96  100
>
>instead of
>   precedence ::ffff:0:0/96  10

Interesting. That works.

>Note that you need the full precedence-block if it is commented out.
>Just change that line.

All lines in  /etc/gai.conf were commented out. I doubt that I ever
heard of that file.

Thanks. Still curious why the behavior changed yesterday. But only a
little. :)

Hartmut



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] IPv4 & IPv6
  2018-04-28  6:09 [gentoo-user] IPv4 & IPv6 Hartmut Figge
  2018-04-28  6:50 ` Klaus Ethgen
@ 2018-04-29 15:47 ` Walter Dnes
  1 sibling, 0 replies; 4+ messages in thread
From: Walter Dnes @ 2018-04-29 15:47 UTC (permalink / raw
  To: gentoo-user

On Sat, Apr 28, 2018 at 08:09:35AM +0200, Hartmut Figge wrote

> I do not know why my machine suddenly local uses IPv6 instead of
> IPv4. I noticed it today when I was unable to retrieve mail. syslog
> now shows

  The "ipv6" USE flage is enabled by default.  If you do not currently
use or need IPV6, then add "-ipv6" to USE in make.conf, and run...

 emerge --changed-use --deep --update @world

...to get rid of ipv6 on your system.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-29 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-28  6:09 [gentoo-user] IPv4 & IPv6 Hartmut Figge
2018-04-28  6:50 ` Klaus Ethgen
2018-04-28  7:33   ` [gentoo-user] " Hartmut Figge
2018-04-29 15:47 ` [gentoo-user] " Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox