Hi @Андрей Михалевский ,
After researching Haproxy, I found parameters to enable real IP address transmission.
According to this blog, X-Forwarded-For Header (XFF) requires to be enabled on your Proxy or Load balancer prior to adding this field in IIS:
So, I'd like to confirm, by "found parameters to enable real IP address transmission", do you mean you've already followed the guidance from Haproxy to enable it?
Besides, I found a thread below which includes a working haproxy.cfg file shared by the poster, you can have a look at it to see if it can be of some help:
haproxy and forwarding client IP address to servers (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
In addition, considering that the issue involves IIS, I'll add the IIS tag so that their community can look into this issue as well.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.