๐Ÿ“ฆ huangsam / envoy-trial

Testing out Envoy in a variety of scenarios

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/huangsam/envoy-trial.git
HTTPS git clone https://github.com/huangsam/envoy-trial.git
SSH git clone git@github.com:huangsam/envoy-trial.git
CLI gh repo clone huangsam/envoy-trial
Samuel Huang Samuel Huang Update go dependencies c780bc0 8 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ data
๐Ÿ“„ .dockerignore
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ docker-compose.yml
๐Ÿ“„ envoy.yaml
๐Ÿ“„ go.mod
๐Ÿ“„ go.sum
๐Ÿ“„ main.go
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Envoy Trial

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.

Getting started

# 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

Resources

Documentation

Schemas