Welcome! Log In Create A New Profile

Advanced

nginx and TPROXY

All files from this thread

File Name File Size   Posted by Date  
nginx-tproxy.patch 5.5 KB open | download David Kostal 06/15/2012 Read message
David Kostal
June 15, 2012 01:58AM
Hi all,
I just run into the need to have nginx support the Linux TPROXY
feature: there is not REDIRECT target for IPv6. As there is no support
for TPROXY in nginx I created a small patch for core & http modules
against 1.2.1. It's enabled by recompiling nginx with --with-tproxy
and activating it by adding "tproxy" as an additional argument to
listen.

Unfortunately it is not possible to enable/disable tproxy behavior for
existing sockets during reload, only on startup or when reload adds
new listening sockets. This is due to fact that the setsockopt() call
must be done before bind().

Please have a look, so far it works for me but I did not do yet any
heavy testing and it's not production yet:)

david.kostal@gmail.com
----+
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - nginx-tproxy.patch (5.5 KB)
Subject Author Posted

nginx and TPROXY Attachments

David Kostal June 15, 2012 01:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready