NGINX load balancing - Proxy

Carlos Renato crenatovb at gmail.com
Tue Feb 15 11:38:07 UTC 2022


Hello, I would like to use NGINX to balance traffic between two McAfee
(standalone) proxy.

I've made some advances and I'm able to open an HTTP page.

Now, I need the client to open an HTTPS request.

Em ter., 15 de fev. de 2022 às 00:54, Sergey A. Osokin <osa at freebsd.org.ru>
escreveu:

> Hi Carlos,
>
> hope you're doing well.
>
> On Mon, Feb 14, 2022 at 11:08:53PM -0300, Carlos Renato wrote:
> > Hey guys,
> >
> > Can someone help me? I'm using NGINX to direct connections to two Proxy
> > servers.
> >
> > I did a simple setup.
> >
> > upstream webgateway {
> >    server 192.168.239.151:9090;
> >    server 192.168.239.152:9090;
> > }
> >
> > server {
> >    listen 81;
> >    server_name proxy.lab.local;
> >
> >    location / {
> >           proxy_pass http://webgateway;
> >    }
> > }
> >
> > NGINX is listening on port 81.
> >
> > If I configure the proxy IP in the browser, the client "goes out" to the
> > Internet.
> >
> > Browser:
> > 192.168.239.151:9090 or 192.168.239.152:9090 - Its Ok!
> >
> > If I configure the NGINX IP in the browser, the client "does not go out"
> to
> > the internet.
> >
> > Browser:
> > 192.168.239.151:81 - No!
> >
> > The packet even arrives at the proxy, but the browser tries to load "
> > http://webgateway.com"
>
> My guess is you want to configure NGINX as a forward proxy, and not
> as a reverse proxy.  And if so, that's not the case for NGINX.
>
> --
> Sergey A. Osokin
> _______________________________________________
> nginx mailing list -- nginx at nginx.org
> To unsubscribe send an email to nginx-leave at nginx.org
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220215/e3f1755a/attachment.htm>


More information about the nginx mailing list