Use Original_Dst filter in UDP Proxy filter config

1 view
Skip to first unread message

Jianyong Niu

unread,
Nov 8, 2024, 10:02:45 AMNov 8
to envoy-users
Hi All, 

I need help on configuring a dynamic forward proxy for udp traffic.

While running envoy v1.32.0 on linux using the following config I ran into an error reading 

[2024-11-08 14:39:12.653][104152][debug][init] [source/common/init/watcher_impl.cc:31] init manager Server destroyed
Didn't find a registered implementation for 'envoy.filters.listener.original_dst' with type URL: 'envoy.extensions.filters.listener.original_dst.v3.OriginalDst'

This error appears to be UDP filter only. For TCP filters it works ok. 

Below is my test config. Thanks!
admin:
  access_log_path: admin_access.log
  address:
    socket_address:
      address: 127.0.0.1
      protocol: TCP
      port_value: 9901

static_resources:
  listeners:
    - name: original_dst_cluster_listener
      address:
        socket_address:
          protocol: UDP
          address: 0.0.0.0
          port_value: 10005
      listener_filters:
      - name: envoy.filters.listener.original_dst
        typed_config:
      - name: envoy.filters.udp_listener.udp_proxy
        typed_config:
            stat_prefix: udp_egress
            cluster: original_destination_cluster
  clusters:
  - name: original_dst_cluster
    connect_timeout: 5s
    lb_policy: CLUSTER_PROVIDED
    type: ORIGINAL_DST
    dns_lookup_family: V4_ONLY
Reply all
Reply to author
Forward
0 new messages