Hi,

 

We need to capture service providers gateway IP in order to determine the
service provider of the user. For this we are using option forwardfor. When
we access from our network we get correct public IP of the network in
x-forwarded-for. But when a user accesses we get his gateway server's
private IP in x-forwarded-for. However haproxy logs correct source ip
(public). Cant we get same IP as source IP forwarded?

We are using 1.4.10 

haproxy logs:

Feb  2 15:07:44 lb1 haproxy[15014]: 203.145.131.164:48167
[02/Feb/2011:15:07:44.285] http_proxy http_proxy/Waptc2 0/0/1/220/234 200
10620 ..

 

Backend Server log showing x-forwarded-for:

x-forwarded-for 10.149.137.76

 

Thanks,

Amit

Reply via email to