-
Notifications
You must be signed in to change notification settings - Fork 619
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
Is it possible to get client address when using tcp+sni? #504
Comments
Did you check the X-Forwared-For header in your backend ? Proxies set this value to pass the IP of the client of the initial request. |
Hi deuch, Yes, I did check "X-Forwarded-For" header. It is empty. "Forwarded", "X-Real-Ip", "X-Forwarded-Port", "X-Forwarded-Proto", "X-Forwarded-Host" also. |
TCP listeners including the TCP+SNI listener are passthtough to the backend. If you want fabio to add headers you will need to use an HTTP and/or an HTTPS listener. The HTTPS listener will terminate TLS at fabio and can optionally reoriginate with TLS to the backend if you specify |
Hi leprechau, thanks for replying I understand that headers are not set when running TCP-SNI Proxy, but I was wondering is there some other way to find out client address. |
Sorry, I see what you are asking now. The current answer is no. The TCP and TCP+SNI proxy do not currently have any access logging. I can see this being a nice feature and would offer parity with the HTTP proxy. |
The HTTP access logging was originally added in #80 |
Outbound PROXY protocol support might help ... |
yes outbound PROXY protocol would be really great! |
It would be great if somebody could test it, please? #598 |
Hello, any update on this ? Does PROXY PROTOCOL works with TCP+SNI ? ref : #177 |
On backend server when I inspect RemoteAddr I get address of server that fabio is running on.
Can fabio log those requests so I can get them there?
Thanks.
The text was updated successfully, but these errors were encountered: