-
Notifications
You must be signed in to change notification settings - Fork 56
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 #134
Comments
In fact I already thought about suggesting / implementing this in the past. Here's some comments on how this feature should work in my opinion: Sending the PROXY header should be supported for both an encrypting and decrypting spiped: For the decrypting end you might want to know which the client is that connects using the secret (probably especially helpful in combination with spipe). IMO there is no need to add a parser for the proxy protocol as spiped does not log any information anyway. If a service in front of the encrypting spiped wants to use the proxy protocol those bytes are simply forwarded and thus correctly interpreted by the service behind the decrypting spiped. TL;DR: Add a single |
Agreed. The only slightly tricky bit is that the PROXY header needs to go into the plaintext stream -- when decrypting this means simply sending the data, but when encrypting this means encrypting it into a block and sending that. So the PROXY header data would need to be injected at two different points. :-( |
Oh and what just comes to my mind, you might need some interpretation of proxy protocol, because the specification states that:
Or does spiped already ensure that a single encrypted packet results in a single decrypted packet on the receiving side? Otherwise the PROXY header of an encrypting spiped might be split up by an decrypting spiped. |
It will be passed via a single syscall. What happens in the TCP stack after that point we have no control over; but nobody else using the PROXY protocol has control either, so we're no worse off than anyone else. |
Using 3proxy at server end as spiped target can easily do this. |
I use script below to enable connect through http(s) proxy:
|
However, it will be amazing if spiped can have native proxy support. |
I need to send the SPIPED encryption on the client, then SPIPED decryption to the 3proxy proxy to the website, then return the data to SPIPED encryption, and then SPIPED client decryption. How to deal with it? |
I have no idea what you're asking here, or what it has to do with this github issue. |
At some point, we may wish to add PROXY protocol support to spiped. I don't think there's any urgency to this, but I'm opening an issue so I don't forget about it.
The text was updated successfully, but these errors were encountered: