title: how to configure envoy as forward (egress) proxy
body: <p>I am trying to configure envoy as Egress proxy. I am using below configuration</p>
  <pre><code>static_resources:
  
    listeners:
    - name: listener_0
      address:
        socket_address: { address: 0.0.0.0, port_value: 10000 }
      filter_chains:
      - filters:
        - name: envoy.filters.network.http_connection_manager
          typed_config:
            &quot;@type&quot;: type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
            stat_prefix: ingress_http
            access_log:
            - name: envoy.access_loggers.stdout
              typed_config:
                &quot;@type&quot;: type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
            http_filters:
            - name: envoy.filters.http.router
            route_config:
              name: local_route
              virtual_hosts:
              - name: local_service
                domains: [&quot;*&quot;]
                routes:
                - match: { prefix: &quot;/&quot; }
                  route: { cluster: http_default }
  
    clusters:
    - name: http_default
      connect_timeout: 6s
      type: ORIGINAL_DST
      lb_policy: CLUSTER_PROVIDED
      
  </code></pre>
  <p>I am testing it on my local laptop ( OSX 11.6.1).</p>
  <p>I ran envoy using the above configuration:</p>
  <pre><code>envoy -c test.yaml 
  </code></pre>
  <p>and envoy started listening to 10000 port</p>
  <pre><code>netstat -an | grep 10000
  
  tcp4       0      0  *.10000                *.*                    LISTEN
  </code></pre>
  <p>I am trying the curl command</p>
  <pre><code>curl -x http://127.0.0.1:10000 http://proton4.eng.vmware.com
  no healthy upstream%  
  </code></pre>
  <p><a href="http://proton4.eng.vmware.com" rel="nofollow noreferrer">http://proton4.eng.vmware.com</a> is up and running.</p>
  <pre><code>curl -v http://proton4.eng.vmware.com
  
  *   Trying 10.20.119.220...
  * TCP_NODELAY set
  * Connected to proton4.eng.vmware.com (10.20.119.220) port 80 (#0)
  &gt; GET / HTTP/1.1
  &gt; Host: proton4.eng.vmware.com
  &gt; User-Agent: curl/7.64.1
  &gt; Accept: */*
  &gt; 
  &lt; HTTP/1.1 200 OK
  &lt; Server: nginx/1.14.0 (Ubuntu)
  &lt; Date: Wed, 17 Nov 2021 03:30:57 GMT
  &lt; Content-Type: text/html
  &lt; Content-Length: 1456
  &lt; Last-Modified: Thu, 21 Jan 2021 00:38:26 GMT
  &lt; Connection: keep-alive
  &lt; ETag: &quot;6008cd02-5b0&quot;
  &lt; Accept-Ranges: bytes
  </code></pre>
  <p>Can anyone please help me with the configuration of envoy?</p>