Project

General

Profile

Actions

Feature #4078

closed

Feature #4247: PATCH: enable PROXY protocol and X-Forwarded-For

Add support for PROXY-PROTOCOL

Added by Mono Polimorph over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2016-11-14
Due date:
% Done:

0%

Estimated time:

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.

Actions

Also available in: Atom PDF