Welcome! Log In Create A New Profile

Advanced

Re: Using Nginx for TCP Mirroring

Roman Arutyunyan
August 16, 2018 09:34AM
Hi,

On Thu, Aug 16, 2018 at 08:56:22AM -0400, ankitschopra wrote:
> Hi,
>
> Can any one help in using Nginx for TCP mirroring. i.e We want to send 1
> TCP request to 2 servers.

There's no such module in nginx. The stream (TCP) module has no information
about the underlying protocol. This means that it's not aware what is a request
and where it ends.

However, it is really interesting to know your use case. You want to mirror
the request (let's assume we have information about the protocol), but what
about the response?

> There is a module ngx_http_mirror_module,
> http://nginx.org/en/docs/http/ngx_http_mirror_module.html which can do http
> mirroring, but we want to do for TCP mirroring.

The HTTP mirror module is in fact way more generic than that. It just creates
a background subrequest, which may proxy the request to a remote server and do a
bunch of other things.

--
Roman Arutyunyan
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using Nginx for TCP Mirroring

ankitschopra August 16, 2018 08:56AM

Re: Using Nginx for TCP Mirroring

Roman Arutyunyan August 16, 2018 09:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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