Reverse Proxy with 500k connections

Reinis Rozitis r at roze.lv
Thu Mar 9 17:08:52 UTC 2017


> 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.

Do the 192.168.1.130-139 IPs actually exist and are configured on the server?
While you can bind to the IP it doesn't mean you can make an actual tcp connection to the upstream.  

net.ipv4.ip_nonlocal_bind is usually used when there is a need for a service to listen to a specific interface which doesn't exist yet on the server like in case of VRRP / Keepalived balancing etc.

rr



More information about the nginx mailing list