Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy to forward proxy to internet access

All files from this thread

File Name File Size   Posted by Date  
nginx.conf 4.5 KB open | download Yuval Abadi via nginx 05/31/2023 Read message
Francis Daly
May 27, 2023 04:14AM
On Sat, May 27, 2023 at 09:51:10AM +0530, Miten Mehta wrote:

Hi there,

> I consider from your reply that niginx reverse proxy cannot provide
> internet access through a forward proxy like squid, websense or alike.

"http through a proxy" uses a different form of requests from "http".

nginx as a client does not make the "http through a proxy" request when
it is talking to a configured upstream server.

The general "forward proxy" server will expect clients that talk to it,
to make "http through a proxy" requests.

Your specific "forward proxy" server might be configured to
"transparently" intercept "http" requests and make a best-guess effort at
interpreting them as if they had been "http through a proxy" requests. And
that might work in many cases.

If that works well enough in your specific case, great!

Only you can know whether it works well enough in your case, to be worth
investigating further for problems.

> I understand you mentioned that nginx cannot be used as forward proxy.

nginx as a server does not specially interpret any "http through a proxy"
requests that it receives, and it does not try to follow the "http proxy
server" rules for handling requests and responses.

If what it does do, works well enough for you, great!

> There are many blogs on net claiming to use nginx as forward proxy and also
> using upstream forward proxy that is false? I don't see this in official
> documentation of nginx.

Maybe those many blogs refer to cases where the combination of their
client, their upstream proxy server, and their configuration of nginx,
works well enough for them.

In which case -- great!

You should be able to build a test nginx configuration based on those
blogs, to see whether it works well enough for you, too.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy to forward proxy to internet access

Miten Mehta May 25, 2023 07:44AM

Re: Reverse proxy to forward proxy to internet access

Francis Daly May 25, 2023 07:10PM

Re: Reverse proxy to forward proxy to internet access

Miten Mehta May 26, 2023 06:50AM

Re: Reverse proxy to forward proxy to internet access

Miten Mehta May 27, 2023 12:22AM

Re: Reverse proxy to forward proxy to internet access

Saint Michael May 27, 2023 12:40AM

Re: Reverse proxy to forward proxy to internet access

Francis Daly May 27, 2023 04:26AM

Re: Reverse proxy to forward proxy to internet access

Saint Michael May 27, 2023 10:44AM

Re: Reverse proxy to forward proxy to internet access

Francis Daly May 28, 2023 07:58AM

Re: Reverse proxy to forward proxy to internet access

Francis Daly May 27, 2023 04:14AM

Re: Reverse proxy to forward proxy to internet access

David Siembab May 28, 2023 12:00AM

Re: Reverse proxy to forward proxy to internet access

Saint Michael May 28, 2023 12:56AM

Re: Reverse proxy to forward proxy to internet access

Francis Daly May 27, 2023 03:50AM

Re: Reverse proxy to forward proxy to internet access

Miten Mehta May 29, 2023 07:06AM

duplicate ports across servers in nginx.conf

Yuval Abadi via nginx May 30, 2023 02:52AM

Re: duplicate ports across servers in nginx.conf

Francis Daly May 30, 2023 12:58PM

RE: duplicate ports across servers in nginx.conf Attachments

Yuval Abadi via nginx May 31, 2023 02:16AM

Re: duplicate ports across servers in nginx.conf

Francis Daly May 31, 2023 03:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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