Skip to content

Using Envoy as a Forward Proxy like Squid (Requesting Help) #39231

Open
@myoungsun

Description

@myoungsun

Hello,

I'm using Envoy version 1.34.0 with the example configuration provided at:
https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/dynamic_forward_proxy_filter

I started Envoy as follows:

./envoy-contrib-1.34.0-linux-x86_64 -c envoy.yaml -l debug

Afterward, I tested it with curl. While HTTP requests succeed, HTTPS requests fail as shown below. The issue occurs with domains other than Google as well. Could someone please assist?

HTTP request (successful):

curl -s -v --proxy http://127.0.0.1:10000 http://google.com

HTTPS request (fails):

curl -s -v --proxy http://127.0.0.1:10000 https://www.google.com

*   Trying 127.0.0.1:10000...
* Connected to 127.0.0.1 (127.0.0.1) port 10000
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to www.google.com:443
> CONNECT www.google.com:443 HTTP/1.1
> Host: www.google.com:443
> User-Agent: curl/8.5.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 404 Not Found
< date: Fri, 25 Apr 2025 02:09:51 GMT
< server: envoy
< connection: close
< content-length: 0
<
* CONNECT tunnel failed, response 404
* Closing connection

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/configurationquestionQuestions that are neither investigations, bugs, nor enhancementsstalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions