User Datagram Protocol (UDP)

    Sandbox environment

    Setup your sandbox environment with Docker and Docker Compose, and clone the Envoy repository with Git.

    Used to make HTTP requests.

    Used to send packets.

    This sandbox provides a very simple example of Envoy proxying UDP.

    It also demonstrates UDP traffic stats provided by the Envoy admin endpoint.

    Change directory to examples/udp in the Envoy repository.

    Envoy should proxy UDP on port 10000 to an upstream server listening on port .

    Envoy also provides an admin endpoint listening on port 10001.

    You can use netcat to send packets to the upstream server, proxied by Envoy:

    Checking the logs of the upstream server you should see the packets that you sent:

    For example, to view the non-zero stats: