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

Can sniproxy receive proxy_protocol connections? #395

Open
dashohoxha opened this issue May 18, 2023 · 2 comments
Open

Can sniproxy receive proxy_protocol connections? #395

dashohoxha opened this issue May 18, 2023 · 2 comments

Comments

@dashohoxha
Copy link

Can sniproxy be behind another SNI proxy (maybe another sniproxy) which has enabled the proxy_protocol feature? Is sniproxy able to receive proxy_protocol connections?

I am testing with a sniproxy behind another sniproxy. It looks like this:

---> sniproxy1 ---> sniproxy2 ---> backend

I have enabled proxy_protocol on sniproxy2 and on backend and this works fine.
But when I try to enable proxy_protocol on sniproxy1, things break.
This seems reasonable to me because I expect that sniproxy2 needs to be configured so that it is able to receive proxy_protocol connections (instead of plain HTTPS). However I am not able to find any setting for this on the man page.

I guess that it should be a setting of listener, and it should look like this: protocol proxy_tls. However the only protocols supported (according to the man page) are protocol http and protocol tls.

Am I missing something?

@dlundquist
Copy link
Owner

No, there is not support for accepting connections with the proxy protocol header.

@dashohoxha
Copy link
Author

Maybe it is not too difficult to implement.
Anyway, sniproxy is a very nice tool, especially because its configuration is very simple.

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

2 participants