# Nginx and tproxy

**URL:** <https://www.ruby-forum.com/t/nginx-and-tproxy/211875>\
**Category:** NGINX\
**Created:** [September 15, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/211875 "2011-09-15T17:03:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 15, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/211875/1 "2011-09-15T17:03:30Z")

</div>

Hi all:

Can we let both work together? Anyone can share his experience with us  
if we  
want to integrate them？

thanks in advance

george

---

<div class="post-metadata">

**Author:** ![Geoge.Q](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9c0ed/32.png) [@Geoge.Q](https://www.ruby-forum.com/u/Geoge.Q)\
**Post date:** [September 15, 2011, 5:20pm UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/211875/2 "2011-09-15T17:20:48Z")

</div>

By tproxy you mean transparent proxying as in doing proxy requests from  
nginx while using clients IP?

It is far more simple to use the Real IP module  
[Module ngx\_http\_realip\_module](http://wiki.nginx.org/HttpRealIpModule) ( pretty much all webservers  
(apache -  
mod\_rpaf / lighttpd - mod\_extforward etc) have such modules in one or  
another form ) rather than trying to achieve it on TCP level.

And it is also straight forward to implement it in any other backend  
application.

rr

From: Geoge.Q  
Sent: Thursday, September 15, 2011 6:02 PM  
To: removed\_email\_address@domain.invalid  
Subject: nginx and tproxy

Hi all:

Can we let both work together? Anyone can share his experience with us  
if we want to integrate them？

thanks in advance

george

* * *

nginx mailing list  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)

---

<div class="post-metadata">

**Author:** ![Geoge.Q](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9c0ed/32.png) [@Geoge.Q](https://www.ruby-forum.com/u/Geoge.Q)\
**Post date:** [September 15, 2011, 6:22pm UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/211875/3 "2011-09-15T18:22:32Z")

</div>

thanks your feedback.

Yes, we want to get the source-ip directly.  
However, if we want to get real client ip from L7 layer, we need modify  
the  
backend configuration, in some case, we have no permission to modify the  
configuration of Web-server.

Is there other way to get client IP other than x-forward-for/x-real-ip?

thanks  
George
