Are you saying that currently load-balancer drops this header even though
you send it? or only the IP of load-balancer get missed, but the client's
IP goes through with the header, hence we need to append the IP of
load-balancer?


On Thu, Oct 24, 2013 at 3:38 PM, Sanjeewa Malalgoda <[email protected]>wrote:

> Hi Team,
> Normally when requests pass through load balancers client IP for
> actual back end server would be load balancers IP. But sometimes
> actual back end server may need actual client and load balancers (all  load
> balancers message passed) IPs to tracing message flows. In such cases
> normally we use  X-Forwarded-For[1]  header. So i think we should add it
> to our elastic load balancer by default. Adding following configuration to
> main sequence will work. Also if header is already present we should append
> ip by separating ",".
>
>
> <property name="X-Forwarded-For"
> expression="get-property('axis2','REMOTE_ADDR')" scope="transport"
> type="STRING"/>
>
>
> [1]http://en.wikipedia.org/wiki/X-Forwarded-For
>
> Thanks,
> sanjeewa.
>  --
> *
> *
> *Sanjeewa Malalgoda*
> Senior Software Engineer
> WSO2 Inc.
> Mobile : +94713068779
>
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to