envoy icon indicating copy to clipboard operation
envoy copied to clipboard

how to enable QUIC inside envoy

Open Cordius opened this issue 6 years ago • 1 comments

I tried to run envoy with QUIC, but the envoy failed to start with error msg:

 error initializing configuration '/etc/envoy/envoy.yaml': Didn't find a registered implementation for name: 'quic_listener'

Envoy Docker Image: envoyproxy/envoy-dev:e136b95a6083aa9b284bb7acfe704a259c7ffa0c

Here is my envoy.yaml.

admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address:
      protocol: TCP
      address: 127.0.0.1
      port_value: 9901
static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address:
        protocol: UDP
        address: 0.0.0.0
        port_value: 10000
    udp_listener_config:
      udp_listener_name: quic_listener
    reuse_port: true
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          stat_prefix: ingress_http
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains: ["*"]
              routes:
              - match:
                  prefix: "/"
                route:
                  host_rewrite_literal: www.google.com
                  cluster: service_google
          http_filters:
          - name: envoy.filters.http.router
  clusters:
  - name: service_google
    connect_timeout: 30s
    type: LOGICAL_DNS
    # Comment out the following line to test on v6 networks
    dns_lookup_family: V4_ONLY
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: service_google
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: www.google.com
                port_value: 443

Cordius avatar Oct 19 '20 09:10 Cordius

We don't have any docs for this yet unfortunately. See https://github.com/envoyproxy/envoy/issues/12923. cc @ggreenway @danzh2010

mattklein123 avatar Oct 19 '20 15:10 mattklein123