====== HAProxy ====== ===== ACL ===== ==== Analyse ==== Voir l'adresse IP du client telle qu'elle est vue par HaProxy # A mettre dans le frontend, dans la partie Advanced pass thru http-request set-var(txn.whoami) bool(true) if { req.hdr(X-Whoami) -m found } http-response set-header X-Client-IP %[src] if { var(txn.whoami) -m found } Côté client : curl -sI -H 'X-Whoami: 1' https:// | grep -i x-client-ip # Résultat : x-client-ip: X.X.X.X