Welcome! Log In Create A New Profile

Advanced

Re: Tproxy support for IP transparency

Francis Daly
June 05, 2021 10:40AM
On Sat, Jun 05, 2021 at 12:36:47AM -0400, bouvierh wrote:

Hi there,

I don't have a tested answer to your question, but...

> When my application connects to a sever, I am intercepting the request and
> routing it to a nginx process located on the same host (listening to
> 127.0.0.1:8883).
> The interception need to be transparent, so IP tables does that well. Now
> the issue is restoring the original destination. This would be trivial with
> HTTP, however MQTT or AMQP can also be used.

does
https://www.nginx.com/blog/ip-transparency-direct-server-return-nginx-plus-transparent-proxy/
describe what you want to do?

The current version (I think) expects that nginx and the upstream are on
different servers; there is mention in the comments of a tproxy config
that looks like it could work if they are on the same server.

> I have looked at Tproxy protocol, it looks promising, but I have not found
> any way to use it with Nginx. It seems it is used for IP transparency for
> upstream server, not for transparently intercepting client messages.
>
> Can I still implement a transparent interception of requests with Nginx?

The nginx-side of the config seems to be "proxy_bind" with the
"transparent" argument; pretty much all of the rest seems to be
configuring the networking around the server that nginx is running on
and the server that the upstream service is running on, to make sure
that the upstream service does not have to know that the nginx service
is involved in the communication.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Tproxy support for IP transparency

bouvierh June 05, 2021 12:36AM

Re: Tproxy support for IP transparency

Francis Daly June 05, 2021 10:40AM

Re: Tproxy support for IP transparency

bouvierh June 07, 2021 01:47PM

Re: Tproxy support for IP transparency

Francis Daly June 09, 2021 02:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
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