Welcome! Log In Create A New Profile

Advanced

Re: Using nginx as proxy

Francis Daly
March 17, 2017 01:30PM
On Fri, Mar 17, 2017 at 10:13:48AM -0700, Wakkas Rafiq wrote:

Hi there,

> Wonder if nginx can handle proxing non http – tcp traffic

It can; but generally the source port for a tcp connection does not
matter. The nginx stream module has no way (that I know of) to set the
source port of the tcp connection that it makes to its upstream.

(For example: if you had two sessions that both wanted to use source
port 12000 to the same destination server port 3260, I'm pretty sure
that something would go wrong.)

I suspect it may be simpler to find out why the upstream server cares
about the source port of the incoming connection, and see if it can
be changed not to; that to try to configure any generic tcp-forwarder
to use a specific source port for all outgoing connections.

You may have more luck with a dedicated tcp-forwarder that knows it can
only handle a single connection at once.

Cheers,

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

Using nginx as proxy

Wakkas Rafiq March 17, 2017 11:10AM

Re: Using nginx as proxy

Wakkas Rafiq March 17, 2017 11:56AM

Re: Using nginx as proxy

Anonymous User March 17, 2017 12:06PM

Re: Using nginx as proxy

Wakkas Rafiq March 17, 2017 01:14PM

Re: Using nginx as proxy

Francis Daly March 17, 2017 01:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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