> acl allowed_clients hdr_sub(X-Real-IP) 10.10.200.0/24 [...]

This is a *string* comparison. You will have to use "req.hdr_ip" [1]:

acl allowed_clients req.hdr_ip(X-Real-IP,-1) 10.10.200.0/24 [...]



Regards,

Lukas


[1] 
http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.6-req.hdr_ip

                                          

Reply via email to