I am trying to configure haproxy to accept a connection from a client - parse a URL from GET params and then proxy that connection. So this was the client IP is hidden from the 3rd party and headers can be adjusted.
I've tried various configs but cannot get it to work. This is my latest effort. The redirects did not work as these allow the 3rd party to discover the clients real IP address.
frontend client
mode http
bind 192.168.202.207:80
log global
option httplog
default_backend proxy
backend proxy
mode http
option transparent
acl need_redirect urlp(goelsewhere) -m found
http-request add-header TestHeader %[urlp(goelsewhere),url_dec]
http-request del-header User-Agent
# http-request redirect location %[urlp(goelsewhere),url_dec] if need_redirect
server servA 0.0.0.0
0 Answers