Hi,
I'd like to user Stunnel with Haproxy on a Debian Squeeze server.
I downloaded these files:
wget ftp://ftp.stunnel.org/stunnel/obsolete/4.x/stunnel-4.44.tar.gz wget http://haproxy.1wt.eu/download/patches/stunnel-4.44-xforwarded-for.diff
I patch the file with patch -p1 < ../stunnel-4.44-xforwarded-for.dif
After this, I try to "make".
I've a lot of errors and I don't understand, I'm not a Linux guru! :-(
Errors :
Making all in src make[1]: Entering directory `/tmp/stunnel-4.44/src' make all-am make[2]: Entering directory `/tmp/stunnel-4.44/src' gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include -I/usr//include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"' -DPIDFILE='"/usr/local/var/run/stunnel/stunnel.pid"' -pthread -fstack-protector -g -O2 -Wall -Wextra -Wno-long-long -pedantic -MT stunnel-str.o -MD -MP -MF .deps/stunnel-str.Tpo -c -o stunnel-str.o `test -f 'str.c' || echo './'`str.c In file included from str.c:38: common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory In file included from str.c:39: prototypes.h:117: error: expected specifier-qualifier-list before 'SSL_CTX' prototypes.h:368: error: expected specifier-qualifier-list before 'SSL' prototypes.h:391: warning: struct has no members prototypes.h:469: error: 'PEM_BUFSIZE' undeclared here (not in a function) str.c: In function 'str_canary': str.c:210: warning: implicit declaration of function 'RAND_bytes' str.c: In function 'str_stats': str.c:239: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' str.c:239: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' str.c:239: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int' make[2]: *** [stunnel-str.o] Error 1 make[2]: Leaving directory `/tmp/stunnel-4.44/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/stunnel-4.44/src' make: *** [all-recursive] Error 1
Could you help me?
Thanks for your help.
Regards, Christophe
On Thu, 2011-11-03 08:45:13 -0700, Christophe Rahier wrote:
[..]
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
Christophe,
This looks like you don't have the openssl headers installed. I don't know much about Debian, but I expect you'll have to look for a package called 'openssl-devel' (or something like that).
HTH,
Ludolf
Hi Ludolf,
Thanks for your help, I'll check which library is messing.
Regards,
Christophe
Le 03/11/11 17:21, « Ludolf Holzheid » lholzheid@bihl-wiedemann.de a écrit :
On Thu, 2011-11-03 08:45:13 -0700, Christophe Rahier wrote:
[..]
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
Christophe,
This looks like you don't have the openssl headers installed. I don't know much about Debian, but I expect you'll have to look for a package called 'openssl-devel' (or something like that).
HTH,
Ludolf
--
Ludolf Holzheid Tel: +49 621 339960 Bihl+Wiedemann GmbH Fax: +49 621 3392239 Floßwörthstraße 41 e-mail: lholzheid@bihl-wiedemann.de D-68199 Mannheim, Germany
stunnel-users mailing list stunnel-users@stunnel.org http://stunnel.mirt.net/mailman/listinfo/stunnel-users
Christophe Rahier wrote:
I'd like to user Stunnel with Haproxy on a Debian Squeeze server.
Cool.
I downloaded these files: wget ftp://ftp.stunnel.org/stunnel/obsolete/4.x/stunnel-4.44.tar.gz
It's called "obsolete" for a reason. Current version supports haproxy natively (without 3rd party patches). http://www.stunnel.org/?page=sdf_ChangeLog
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
apt-get install libssl-dev
Mike
Hi Mike,
Thanks for your answer.
I didn't see current version supported haproxy.
I'll install this library.
Regards,
Christophe
Le 03/11/11 17:21, « Michal Trojnara » Michal.Trojnara@mirt.net a écrit :
Christophe Rahier wrote:
I'd like to user Stunnel with Haproxy on a Debian Squeeze server.
Cool.
I downloaded these files: wget ftp://ftp.stunnel.org/stunnel/obsolete/4.x/stunnel-4.44.tar.gz
It's called "obsolete" for a reason. Current version supports haproxy natively (without 3rd party patches). http://www.stunnel.org/?page=sdf_ChangeLog
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
apt-get install libssl-dev
Mike _______________________________________________ stunnel-users mailing list stunnel-users@stunnel.org http://stunnel.mirt.net/mailman/listinfo/stunnel-users
Hi Mike,
In my case, I need to use X_Forwarded_For for my web server.
Is it available for default?
Christophe
Le 03/11/11 17:21, « Michal Trojnara » Michal.Trojnara@mirt.net a écrit :
Christophe Rahier wrote:
I'd like to user Stunnel with Haproxy on a Debian Squeeze server.
Cool.
I downloaded these files: wget ftp://ftp.stunnel.org/stunnel/obsolete/4.x/stunnel-4.44.tar.gz
It's called "obsolete" for a reason. Current version supports haproxy natively (without 3rd party patches). http://www.stunnel.org/?page=sdf_ChangeLog
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
apt-get install libssl-dev
Mike _______________________________________________ stunnel-users mailing list stunnel-users@stunnel.org http://stunnel.mirt.net/mailman/listinfo/stunnel-users
Hi Christophe,
On 03.11.2011 17:50, Christophe Rahier wrote:
Hi Mike,
In my case, I need to use X_Forwarded_For for my web server.
Is it available for default?
Looks like when you use 'accept-proxy'
http://haproxy.1wt.eu/git?p=3Dhaproxy.git;a=3Dblob;f=3Ddoc/configuration.tx= t;h=3D8aeeb272d0aeca7477bbb634b52181121122b865;hb=3DHEAD#l1580
as bind option
http://haproxy.1wt.eu/git?p=3Dhaproxy.git;a=3Dblob;f=3Ddoc/configuration.tx= t;h=3D8aeeb272d0aeca7477bbb634b52181121122b865;hb=3DHEAD#l1453
and the 'option forwardfor'
http://haproxy.1wt.eu/git?p=3Dhaproxy.git;a=3Dblob;f=3Ddoc/configuration.tx= t;h=3D8aeeb272d0aeca7477bbb634b52181121122b865;hb=3DHEAD#l3111
haproxy fill automatically the client ip into X-Forwarded-For header field.
I assume this from the doc. Please can you tell us if this is right?
Hth
Aleks
On 03.11.2011 17:50, Christophe Rahier wrote:
Hi Mike,
In my case, I need to use X_Forwarded_For for my web server.
Is it available for default?
Christophe
Le 03/11/11 17:21, « Michal Trojnara » Michal.Trojnara@mirt.net a écrit :
Christophe Rahier wrote:
I'd like to user Stunnel with Haproxy on a Debian Squeeze server.
Cool.
I downloaded these files: wget ftp://ftp.stunnel.org/stunnel/obsolete/4.x/stunnel-4.44.tar.gz
It's called "obsolete" for a reason. Current version supports haproxy natively (without 3rd party patches). http://www.stunnel.org/?page=sdf_ChangeLog
common.h:383:19: error: lhash.h: No such file or directory common.h:384:17: error: ssl.h: No such file or directory common.h:386:20: error: crypto.h: No such file or directory common.h:387:17: error: md4.h: No such file or directory common.h:388:17: error: des.h: No such file or directory
apt-get install libssl-dev
Mike _______________________________________________ stunnel-users mailing list stunnel-users@stunnel.org http://stunnel.mirt.net/mailman/listinfo/stunnel-users
stunnel-users mailing list stunnel-users@stunnel.org http://stunnel.mirt.net/mailman/listinfo/stunnel-users