Hi,

Comma is a special symbol,Can do so:

backend b1
      acl forward-exist req.hdr(X-Forwarded-For) -m found
      http-request set-header X-Forwarded-For %[capture.req.hdr(2)],%ci if
forward-exist
      http-request set-header X-Forwarded-For %ci if !forward-exist
      server def 127.0.0.1:81

frontend f1
    mode http
    listen 80
    capture request header X-Forwarded-For len 100
    default_backend b1

2017-06-15 9:48 GMT+08:00 Andrey Zakabluk <[email protected]>:

> Hi! We are integrating WAF in my company. WAF send http request when  in
> POST request
>
>
>
> X-Real-Ip: 10.254.13.100, 10.254.42.32
>
> X-Forwarded-For: 10.254.13.100, 10.254.42.32
>
>
>
>
>
> Maybe HAPROXY do take only secondary IP from X-Real-Ip/ X-Forwarded-For.
> Always take ip from secondary position(in may example, this is
> 10.254.42.32)?
>
>
>
> Закаблук Андрэй
>
> Кіраванне эксплуатацыі
>
>
>
> Унiтарнае прадпрыемства «Вэлком»
>
> velcom-цэнтр
>
> вул. Інтэрнацыянальная, 36-2
>
> 220030, Мінск, Беларусь
>
> Тэл. +375 29 319-13-02 <+375%2029%20319-13-02>
>
> www.velcom.by
>
> www.telekomaustria.com
>
>
>

Reply via email to