-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proxy protocol support on transport #3158
Comments
I'd rather not implement proprietary mechanisms. If there's any standard header we can look at to figure out that information, I can see how complex it is to integrate in the HTTP and/or WS transport plugins. Edit: I guess the |
PROXY protocol was defined by haproxy but is a de-facto standard for proxies operating at the transport and/or application layer. personally i rate When standard lack to coming people invent the wheel, so this wheel become standard 😅 |
I get it, but I'm still not going to implement a non-standard mechanism. |
Please see the PR above and test, thanks. |
some transport allow setting acl to limit access to resource (admin or api)
In environment where janus transport is behind proxy this acl is useless because janus take source address from only tcp socket and not http header
In a nutshell (for http and websocket transport) it should recover the source ip from http header (if set) and not only by data in sockaddr
In more general environment janus can support proxy protocol
What is the [Proxy Protocol](https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt)? It is a network protocol for preserving a client’s IP address when the client’s TCP connection passes through a proxy. Without such a mechanism, proxies lose this information because they act as a surrogate for the client, relaying messages to the server, but replacing the client’s IP address with their own. This distorts the logs of upstream servers because the logs incorrectly indicate that all traffic originated at the proxy. [...] The Proxy Protocol works by adding a header that contains the client’s IP address to the beginning of a TCP connection
The text was updated successfully, but these errors were encountered: