Check for ipv4 www server is OK, but ipv6 is not work which result
http status 503

I telnet to ipv6 www server , which is OK.

The error log is :
[ALERT] 090/162901 (2069) : Cannot bind to source address before
connect() for backend




The config is :


global
   maxconn 1000000
   user root
   group root
   nbproc 1
   tune.bufsize 16384
   log /dev/log local3 crit
   stats socket /var/run/ha_stats_socket
defaults
   option accept-invalid-http-response
   option accept-invalid-http-request
   log global
   mode http
   timeout client 60s
   timeout connect 60s
   timeout server 120s
   no option httpclose
   option clitcpka
   backlog 40960
   option dontlognull
   no option abortonclose
   no option allbackups
   no option forceclose
   no option nolinger
   no option redispatch 
frontend ap
   bind 80
   maxconn 1000000


   use_backend wwwipv4 if ..... 
   use_backend wwwipv6 if ..... 

backend wwwipv4
   source 0.0.0.0 usesrc hdr_ip(X-Forwarded-For)
   server SERVER 192.168.36.2:8080 maxconn 20000 check fall 3 rise 3
inter 30s fastinter 1s downinter 1s
   option http-server-close
   option http-pretend-keepalive        

backend wwwipv6
   source 0.0.0.0 usesrc hdr_ip(X-Forwarded-For)
   server SERVER 2012:af:fffd::2:8080 maxconn 20000 check fall 3 rise
3 inter 30s fastinter 1s downinter 1s
   option http-server-close
   option http-pretend-keepalive                




在 2012年3月31日 上午11:49,Delta Yeh <[email protected]> 写道:
> I use transparent proxy, so maybe my transparent proxy setting is
> wrong with IPv6.
> Thanks for your reply.
>
> 在 2012年3月30日 上午4:20,Sander Klein <[email protected]> 写道:
>> Hi,
>>
>>
>> On 29.03.2012 16:44, Delta Yeh wrote:
>>>
>>> Hi,
>>>   It seems haproxy failed to do server check with IPv6.
>>>  The top is like:
>>>   browser---haproxy-----www server
>>>
>>> I did the following tests:
>>>  1. IPv4 http server with server check, it works
>>>  2. IPv6 http server with server check,  I get http 503. After disable
>>> server check, I get http 200.
>>>  3. IPv4 and IPv6 server with server check, only see IPv4 check packet.
>>>      I get 503 when access WWW with IPv6. I get 200 when access WWW
>>> server with IPv4.
>>
>>
>> Are you sure it's not an config error on the webserver side? I've been
>> running dev7 for quite some time and do a lot of IPv6 checks. Never had any
>> problems with it.
>>
>> Greets,
>>
>> Sander
>>

Reply via email to