You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you perhaps give all sockets the proxy protocol header? I would like to give the real client IP from the proxy. That the DNS server gets the correct IP from the client.
Hello @lsongdev, it would really be a dream if you added an option to split the packet. I have an Nginx connected via stream in front of the DNS, which protects the DNS with IP checks, etc.
The Nginx passes the packet on as a proxy protocol so that the HTTP/HTTPS server gets the client's original IP, for example. I've already checked the DNS server here and the internal IP always arrives as the client.
It would be quite easy if I got the packet via callback
If that is not possible, I will probably start my own project. Since my code is completely based on Typescript, I do not want to change anything in the node-dns code, since you know your code better.
Hey @song940 first, great project!
Can you perhaps give all sockets the proxy protocol header? I would like to give the real client IP from the proxy. That the DNS server gets the correct IP from the client.
https://github.com/moznion/proxy-protocol-js
I imagined it in such a way that you can specify in the config whether you use it or not.
It should be enough to read the sockets and parse the header first before parsing the packets:
The text was updated successfully, but these errors were encountered: