Hi,
I run into error when I try to proxy http request to an ipv6 www
server, the error is :
debian:~/v6# ./haproxy -f v6.cfg
[ALERT] 165/142945 (23488) : parsing [v6.cfg:28] : Unknown host in
'3ffe:ffff:21da:7:3c06:7c4c:8215:2'
[ALERT] 165/142945 (23488) : Error(s) found in configuration file : v6.cfg
[ALERT] 165/142946 (23488) : Fatal errors found in configuration.
The config is :
listen v6http 0::0:80
mode http
server 2008 3ffe:ffff:21da:7:3c06:7c4c:8215:2 80
maxconn 4000
Is anybody succeed with haproxy proxy to ipv6 www server?
The following is the info maybe useful.
debian:~/v6# ./haproxy -vv
HA-Proxy version 1.5-dev6 2011/04/08
Copyright 2000-2010 Willy Tarreau <[email protected]>
Build options :
TARGET = linux26
CPU = generic
CC = gcc
CFLAGS = -O2 -g -fno-strict-aliasing
OPTIONS = USE_GETADDRINFO=1 USE_STATIC_PCRE=1
Default settings :
maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200
Encrypted password support via crypt(3): yes
Available polling systems :
sepoll : pref=400, test result OK
epoll : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result OK
Total: 4 (4 usable), will use sepoll.
debian:~/v6# /lib/i686/cmov/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.3.2.
Compiled on a Linux >>2.6.26-2-amd64<< system on 2010-01-14.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
debian:~/v6# uname -a
Linux debian 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux
debian:~/v6# ping6 3ffe:ffff:21da:7:3c06:7c4c:8215:2
PING 3ffe:ffff:21da:7:3c06:7c4c:8215:2(3ffe:ffff:21da:7:3c06:7c4c:8215:2)
56 data bytes
64 bytes from 3ffe:ffff:21da:7:3c06:7c4c:8215:2: icmp_seq=1 ttl=128 time=4.24 ms
64 bytes from 3ffe:ffff:21da:7:3c06:7c4c:8215:2: icmp_seq=2 ttl=128 time=1.06 ms
debian:~/v6# telnet 3ffe:ffff:21da:7:3c06:7c4c:8215:2 80
Trying 3ffe:ffff:21da:7:3c06:7c4c:8215:2...
Connected to 3ffe:ffff:21da:7:3c06:7c4c:8215:2.
Escape character is '^]'.
abdc
HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 15 Jun 2011 06:37:59 GMT
Connection: close
Content-Length: 326
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Verb</h2>
<hr><p>HTTP Error 400. The request verb is invalid.</p>
</BODY></HTML>
Connection closed by foreign host.