# Patch: TPROXY support for listening sockets

**URL:** <https://www.ruby-forum.com/t/patch-tproxy-support-for-listening-sockets/223778>\
**Category:** NGINX\
**Created:** [October 17, 2012, 2:56pm UTC](https://www.ruby-forum.com/t/patch-tproxy-support-for-listening-sockets/223778 "2012-10-17T14:56:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 17, 2012, 2:56pm UTC](https://www.ruby-forum.com/t/patch-tproxy-support-for-listening-sockets/223778/1 "2012-10-17T14:56:17Z")

</div>

Hi,  
this patch is _not_ meant to provide transparently IP of clients to  
the backends.

It is meant to for nginx to be able to listen on non-local IP, as  
replacement for (eg.) NATing of incomming connections to local port.  
My setups use LVS with direct routing and real-servers without the  
public IPs, using NAT. However the problem I’m facing is IPv6 and one  
option is to use TPROXY sockets to listen to (possibly large number  
of) non-local IPs.

Would you recommend some other solution or is this TPROXY patch fine?

Thanks,  
David
