Bug#643650: haproxy: usesrc clientip not working with linux kernel version = 3.0.0

2011-09-29 Thread Yang Zhe
Cyril Bonté told me in haproxy mailling list:

Kernel bugzilla is down right now but the bug is referenced here :
https://bugzilla.kernel.org/show_bug.cgi?id=42012

From the netdev archive, a patch has been proposed to fix the regression :
http://www.spinics.net/lists/netdev/msg173766.html

2011/9/28 Christo Buschek cr...@30loops.net:
 Hello,

 Could you provide me with your configuration so that I can confirm the
 behaviour?

 greetinx
 christo

 On 09/28/2011 12:58 PM, Yang Zhe wrote:
 Package: haproxy
 Version: 1.4.15-1
 Severity: important
 Tags: upstream patch

 After upgrading to linux kernel 3.0.0, my haproxy stopped working.

 By using debug option, I find that transparent with usesrc client
 stopped working. It alters:

         [ALERT]: Cannot bind to source address before connect() for
 proxy %s. Aborting.

 It worked correctly when I was using kernel 2.6.29. So that I checked
 into source code, and find that in src/proto_tcp.c:141,
 bind() returned 97 (EAFNOSUPPORT). I can't understand why it failed
 after successfully setsockopt(..., IP_TRANSPARENT, ...).

 Since perror says Address family not supported, I find that after
 memset() bind_addr to 0 at src/proto_tcp.c:132, bind_addr.sin_family
 is uninitialized. After I add bind_addr.sin_family = AF_INET; below
 memset(), recompile haproxy then it works again.

 -- System Information:
 Debian Release: wheezy/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (101, 'experimental')
 Architecture: i386 (i686)

 Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
 Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash

 Versions of packages haproxy depends on:
 ii  adduser                       3.113      add and remove users and groups
 ii  libc6                         2.13-17    Embedded GNU C Library: Shared 
 lib
 ii  libpcre3                      8.12-3     Perl 5 Compatible Regular 
 Expressi

 haproxy recommends no packages.

 haproxy suggests no packages.

 -- no debconf information







-- 
Sincerely,
    Yang Zhe



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#643650: haproxy: usesrc clientip not working with linux kernel version = 3.0.0

2011-09-28 Thread Yang Zhe
Package: haproxy
Version: 1.4.15-1
Severity: important
Tags: upstream patch

After upgrading to linux kernel 3.0.0, my haproxy stopped working.

By using debug option, I find that transparent with usesrc client
stopped working. It alters:

[ALERT]: Cannot bind to source address before connect() for
proxy %s. Aborting.

It worked correctly when I was using kernel 2.6.29. So that I checked
into source code, and find that in src/proto_tcp.c:141,
bind() returned 97 (EAFNOSUPPORT). I can't understand why it failed
after successfully setsockopt(..., IP_TRANSPARENT, ...).

Since perror says Address family not supported, I find that after
memset() bind_addr to 0 at src/proto_tcp.c:132, bind_addr.sin_family
is uninitialized. After I add bind_addr.sin_family = AF_INET; below
memset(), recompile haproxy then it works again.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages haproxy depends on:
ii  adduser   3.113  add and remove users and groups
ii  libc6 2.13-17Embedded GNU C Library: Shared lib
ii  libpcre3  8.12-3 Perl 5 Compatible Regular Expressi

haproxy recommends no packages.

haproxy suggests no packages.

-- no debconf information


-- 
Sincerely,
    Yang Zhe



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#643650: haproxy: usesrc clientip not working with linux kernel version = 3.0.0

2011-09-28 Thread Christo Buschek
Hello,

Could you provide me with your configuration so that I can confirm the
behaviour?

greetinx
christo

On 09/28/2011 12:58 PM, Yang Zhe wrote:
 Package: haproxy
 Version: 1.4.15-1
 Severity: important
 Tags: upstream patch
 
 After upgrading to linux kernel 3.0.0, my haproxy stopped working.
 
 By using debug option, I find that transparent with usesrc client
 stopped working. It alters:
 
 [ALERT]: Cannot bind to source address before connect() for
 proxy %s. Aborting.
 
 It worked correctly when I was using kernel 2.6.29. So that I checked
 into source code, and find that in src/proto_tcp.c:141,
 bind() returned 97 (EAFNOSUPPORT). I can't understand why it failed
 after successfully setsockopt(..., IP_TRANSPARENT, ...).
 
 Since perror says Address family not supported, I find that after
 memset() bind_addr to 0 at src/proto_tcp.c:132, bind_addr.sin_family
 is uninitialized. After I add bind_addr.sin_family = AF_INET; below
 memset(), recompile haproxy then it works again.
 
 -- System Information:
 Debian Release: wheezy/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (101, 'experimental')
 Architecture: i386 (i686)
 
 Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
 Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 
 Versions of packages haproxy depends on:
 ii  adduser   3.113  add and remove users and groups
 ii  libc6 2.13-17Embedded GNU C Library: Shared 
 lib
 ii  libpcre3  8.12-3 Perl 5 Compatible Regular 
 Expressi
 
 haproxy recommends no packages.
 
 haproxy suggests no packages.
 
 -- no debconf information
 
 



signature.asc
Description: OpenPGP digital signature