Welcome! Log In Create A New Profile

Advanced

Re: Reverse Proxy with 500k connections

March 09, 2017 09:52AM
Thanks for the advice.
I implemented this approach. Unfortunately not with 100% success.

When enabling sysctl option "net.ipv4.ip_nonlocal_bind = 1" it is possible to use local IP addresses (192.168.1.130-139) as proxy_bind address.
But than using such an address (other than 0.0.0.0), nginx will produce an error message.
Interesting aspect is: attribute "server" in the log entry is empty.
When using 0.0.0.0 as proxy_bind, everything is fine.

Do you have any ideas?

2017/03/09 14:27:09 [crit] 69765#0: *478633 connect() to 192.168.1.21:443 failed (22: Invalid argument) while connecting to upstream, client: x.x.x.x, server: , request: "GET /myservice HTTP/1.1", upstream: "https://192.168.1.21:443/myservice", host: "xxxxxxx:44301"

split_clients "${remote_addr}AAAA" $proxy_ip {
# does not work
100% 192.168.1.130;

# works
100% 0.0.0.0;
}

server {
listen 44301 ssl backlog=163840;
#works
#proxy_bind 0.0.0.0;

#does not work
#proxy_bind 192.168.1.130;

proxy_bind $proxy_ip;
Subject Author Posted

Reverse Proxy with 500k connections

larsg March 07, 2017 02:50PM

Re: Reverse Proxy with 500k connections

Nelson Marcos March 07, 2017 04:14PM

Re: Reverse Proxy with 500k connections

Rainer Duffner March 07, 2017 04:24PM

Re: Reverse Proxy with 500k connections

Tolga Ceylan March 07, 2017 05:12PM

Re: Reverse Proxy with 500k connections

Andrei Belov March 07, 2017 06:40PM

Re: Reverse Proxy with 500k connections

Tolga Ceylan March 07, 2017 07:58PM

Re: Reverse Proxy with 500k connections

Maxim Konovalov March 08, 2017 06:18AM

Re: Reverse Proxy with 500k connections

larsg March 09, 2017 09:52AM

Re: Reverse Proxy with 500k connections

larsg March 09, 2017 12:20PM

RE: Reverse Proxy with 500k connections

Reinis Rozitis March 09, 2017 12:10PM

Re: RE: Reverse Proxy with 500k connections

larsg March 09, 2017 01:10PM

Re: Reverse Proxy with 500k connections

Konstantin Pavlov March 09, 2017 02:26PM

Re: Reverse Proxy with 500k connections

larsg March 13, 2017 10:22AM

Re: Reverse Proxy with 500k connections

foxgab July 14, 2017 02:15AM

Re: Reverse Proxy with 500k connections

Maxim Konovalov March 08, 2017 06:20AM

Re: Reverse Proxy with 500k connections

Maxim Konovalov March 09, 2017 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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