Skip to content
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

Use x-forwarded-for for websockets clients #3414

Open
mkl262 opened this issue Oct 18, 2020 · 0 comments
Open

Use x-forwarded-for for websockets clients #3414

mkl262 opened this issue Oct 18, 2020 · 0 comments

Comments

@mkl262
Copy link

mkl262 commented Oct 18, 2020

Hi,

My ejabberd server sits behind an AWS ALB, which passes the x-forwarded-for http headers.
When a client connects using WebSocket, its source IP in ejabberdctl connected_users_info shows the IP address of the ALB in the subnet.

I would like that the x-forwarded-for header which is included in the http upgrade request, which is sent to initiate the WebSocket connection, will be used as the source IP of the client.

As a workaround in my test environment I used HAProxy with proxy protocol, and it showed the true client IP in ejabberd.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant