ngx_http_proxy_connect_module icon indicating copy to clipboard operation
ngx_http_proxy_connect_module copied to clipboard

https forward proxy with multiple public source IP

Open YuriyTigiev opened this issue 3 years ago • 1 comments

Is it possible to configure nginx with module to work with multiple public source IP? For example on a hosted server I have a list of public IP. I would like to configure https "forward proxy" to send any request each time using next IP from the pool. (round-robin algorithm) . Is it technically possible ?

YuriyTigiev avatar Mar 20 '22 16:03 YuriyTigiev

If you wanna to self-control upstream ip address, you can use $proxy_connect_address directive. The controlling logic can be implemented via lua or nginx configuration.

This test case( via lua) may be helpful: https://github.com/chobits/ngx_http_proxy_connect_module/blob/master/t/http_proxy_connect.t#L113

chobits avatar Mar 26 '22 09:03 chobits

Think it resolved. Feel free to reopen it if you still have same issue. Open a new issue if you have any other problem.

chobits avatar Aug 15 '22 03:08 chobits