-
-
Notifications
You must be signed in to change notification settings - Fork 105
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 #281
Proxy protocol #281
Conversation
…c and proxy_protocol.h.
…address. Fix for printout of refusal in log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small remarks about things that stood out. Nothing blocking.
Hi, |
Hi @pettai, it's waiting for one more review to complete. Expect this to be merged soon. |
I noted an issue #297 then merging this branch to the latest git version of NSD, so apart from the review, this also needs to be fixed before merging. Thx |
…r_remaining(data->query->packet) > 0' failed.
The commit dfcdadb fixes the issue. The buffer was not reset properly between queries, the commit fixes that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks nice!
Just replied on @k0ekk0ek 's suggestions.
- more generic switch statement for address families; - comment the protocol values as such in their definitions; - less hardcoded values for address family and protocol combinations.
- Merge #281: Proxy protocol. An implementation of PROXYv2 for NSD. It can be configured with proxy-protocol-port: portnum with the port number of the interface on which proxy traffic is handled. The interface can support proxy traffic for UDP, TCP and TLS.
So it has been done 🎉 |
This is an implementation of PROXYv2 for NSD.
It can be configured with
proxy-protocol-port: <portnum>
with the port number of the interface on which proxy traffic is handled. The interface can support proxy traffic for UDP, TCP and TLS.It uses code from Unbound, that implements the proxy protocol specs, in NLnetLabs/unbound#881 .