[stunnel-users] Stunnel & Haproxy

Aleksandar Lazic al-stunnel at none.at
Thu Nov 3 23:52:58 CET 2011


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 at 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 at stunnel.org
>>http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>>
>
>
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users




More information about the stunnel-users mailing list