Reverse Proxy with 500k connections

Reinis Rozitis r at
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 ( as proxy_bind address.
> But than using such an address (other than, nginx will produce an
> error message.

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


More information about the nginx mailing list