Score:0

Connecting squid to upstream proxy using CONNECT request

fo flag

I'm setting up a reverse proxy that has to forward all the requests to a given url.com/resource. Now, that resource is behind a proxy, so it has to use the CONNECT request. The idea is that squid, once it receives a request, creates an http tunnel using the CONNECT request, and then forwards that request to the desired server.

It does not have to be necessarily squid, it can be any other similar solution (nginx, apache, caddy).

vidarlo avatar
ar flag
The resource is behind a normal *forward* proxy?
dario avatar
fo flag
No, behind a reverse proxy. I can access the resource using a curl request as: `curl -v url1.com/resource -k proxy.url.com --proxy-header 'Header1'`.
vidarlo avatar
ar flag
If it's behind a *reverse* proxy you don't need a connect or any special curl arguments. To me it looks like you're seeing a *forward* proxy, *not* a reverse one.
dario avatar
fo flag
Yes, you are right. It is behind a forward proxy. The one I want to make is a reverse one, my bad
dario avatar
fo flag
I just re read my previous comment, the curl command is not ok, should be as follows: `curl -k url1.com/resource -x proxy.url.com --proxy-header 'Header on'`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.