title: nginx udp proxy pass ip
body: <p>Looking for some guidance on NGINX and passing the source IP address to backend servers. So far I have found config on how to do this for http/s requests but not for TCP/UDP load balancing to non http/s ports. </p>
  
  <p>I have an UDP proxy setup and working with NGINX but the source IP in my application (syslog server) is showing as that of NGINX and not the devices passing syslog messages to it.</p>
  
  <p>Below is my config - so far I am coming up empty handed on how to pass the source IP from the originating servers.</p>
  
  <pre><code>    stream {
      server {
          listen 514 udp;
          proxy_pass syslog_standard;
      }
  
      upstream syslog_standard {
          server syslog1.ars.com:10514 max_fails=1 fail_timeout=10s;
          server syslog2.ars.com:10514 max_fails=1 fail_timeout=10s;
      }
  }
  </code></pre>
  
  <p>Any input would be appreciated!</p>