[vserver] IPv6 in dualstack breaks IPv4 loopback virtualisation

From: cryptronic <mail_at_cryptronic.de>
Date: Thu 09 Sep 2010 - 18:01:55 BST
Message-ID: <4C891303.9030702@cryptronic.de>

Hi all,

i have problems using an dual stack setup in guest:

ping localhost and 127.0.0.1 results as expected in return from 127.0.0.1

Iif i try using wget on localhost

# wget localhost
--2010-09-09 16:57:07-- http://localhost/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/html]
Saving to: `index.html'

100%[=======================>] 45 --.-K/s in 0s

2010-09-09 16:57:07 (5.93 MB/s) - `index.html' saved [45/45]

i get the expected file but in my apache access log the real localhost
adress is being displayed:

127.27.114.1 - - [09/Sep/2010:16:57:07 +0000] "GET / HTTP/1.0" 200 45
"-" "Wget/1.11.4"

Is there a need for an ipv6 loopback virtualization?

If I'm using apache in ipv4 only mode i got the old expected behaviour:

127.0.0.1 - - [09/Sep/2010:16:59:06 +0000] "GET / HTTP/1.0" 200 45 "-"
"Wget/1.11.4"

Best regards

Oliver
Received on Thu Sep 9 18:02:46 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 09 Sep 2010 - 18:02:46 BST by hypermail 2.1.8