Testing out Envoy in a variety of scenarios
https://github.com/huangsam/envoy-trial.git
Testing out Envoy in a variety of scenarios.
The first one is UDP connections over the UDP proxy.
The Envoy proxy runs on external ports 9901 (for admin) and 10161 (for UDP). Whenever it receives UDP traffic, it forwards UDP traffic over to an internal port 161 for the UDP server written in Go. The server is designed to process requests concurrently. It is also designed to handle health requests and SNMP requests fluidly.
Feel free to inspect the envoy config and udp code for more details.
# In one terminal
docker-compose up --build -d
docker-compose logs -f udp-delegate
# In another terminal (health check)
echo "hello" | nc -u -w 1 127.0.0.1 10161
# In another terminal (SNMP request)
snmpget -v2c -c public localhost:10161 1.3.6.1.2.1.1.1.0
Documentation
Schemas