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

[feature request] support Proxy protocol #97

Open
IceCodeNew opened this issue Sep 28, 2023 · 0 comments
Open

[feature request] support Proxy protocol #97

IceCodeNew opened this issue Sep 28, 2023 · 0 comments

Comments

@IceCodeNew
Copy link

IceCodeNew commented Sep 28, 2023

#77 (comment)

第二个方案仅对支持 Proxy Protocol 的特定后端生效。

(When using shadow-tls as an SNI proxy, forwarding normal requests to nginx, there are several ways to pass the real IP to the nginx,) one of them is to connect to the backend with the Proxy protocol
But it introduces the problem that you can only connect to the backend implemented the Proxy protocol support, the choice would be limited.

There are projects like https://github.com/path-network/go-mmproxy meant to solve the problem. Speaking from experience, it works very well.

For me, apart from utilizing the IP_TRANSPARENT or the Proxy protocol, it seems there are no other ways to pass the real IP to the backend.

I would expect supporting Proxy protocol to be easier than utilizing the IP_TRANSPARENT, and it might also ease the requirements for users to enable passing the real IP to the backend.

Refer to:

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

No branches or pull requests

1 participant