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

Add Transparency to udp-nginx-proxy #28

Open
lehighkid opened this issue Dec 16, 2019 · 1 comment
Open

Add Transparency to udp-nginx-proxy #28

lehighkid opened this issue Dec 16, 2019 · 1 comment

Comments

@lehighkid
Copy link

https://www.nginx.com/blog/ip-transparency-direct-server-return-nginx-plus-transparent-proxy/#ip-transparency

This would assist in passing forward the original requesting IP address instead of the host proxy which is useful in my case where I am load-balancing 3 separate pi-holes and would like the request tracking.

@TuKDoan
Copy link

TuKDoan commented Dec 22, 2019

+1 for this;

Useful for tracking DNS queries from different clients.

Attempting to use

  server {
    listen 5353 udp;
    proxy_pass backends;
    proxy_responses 0;
    error_log stderr;
#  proxy_timeout 1s;
    proxy_bind $remote_addr:53 transparent;
  }

Without the proxy_bind $remote_addr:53 transparent; and proxy_responses set to 1 I am able to receive dns queries; however they look like they're coming from the load balancer themselves. I would like the upstream servers to be aware of the client that is making the request.

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

No branches or pull requests

3 participants