Feature #4078
closedFeature #4247: PATCH: enable PROXY protocol and X-Forwarded-For
Add support for PROXY-PROTOCOL
0%
Description
Hi,
I suggest to add support for PROXY-PROTOCOL in TCP input connections.
Here one example:
CLIENT ---> REVERSE PROXY ---> TVHEADEND
When the client is RTSP (SAT>IP) the TCP connection can be proxied without difficults. However, the Thv server thinks the client is the PROXY, not the real client. With TCP transport protocols this ins't a problem. However, with protocols like RTSP when the transport is UDP you need to know the REAL IP of the client.
Then the suggestion is support the PROXY-PROTOCOL in input TCP connections. This protocol is quite simple to implement, just one line of text prior to start the byte-stream. However, this needs to be enabled explicitly to avoid problems.
See these links to understand the protocol:
http://blog.haproxy.com/haproxy/proxy-protocol/
http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html
http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
I hope to see son support for this protocol in the 554 (RTSP) port.