dlundquist / sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.
BSD 2-Clause "Simplified" License
2.56k stars 397 forks source link

http_forwarded Headers #127

Closed Dan-Wood closed 10 years ago

Dan-Wood commented 10 years ago

Are we able to pass through the HTTP_FORWARDED_FOR and HTTP_FORWARDED_BY headers through to localhost/127.0.0.1 please?

Very helpful when pushing the user off to 127.0.0.1:port running a webserver (NGINX etc).

This will allow NGINX etc to pick up the REAL IP of the visitor.

dlundquist commented 10 years ago

@msdathk Unfortunately SNIProxy can not insert headers into TLS streams. To do so would require the back end servers private key. While it would be possible to insert headers in HTTP streams there are plenty of proxies that do that already. See also #124.