A simple UDP proxy that authenticates packets using a token, and forwards them to a target address. Made for statsd.
./statsd_auth_proxy
./statsd_auth_proxy --config config.json
./statsd_auth_proxy --enable-debug
cargo build --release --all-features
The configuration file is a JSON file with the following structure:
{
"tokens": [
"123"
],
"target": "127.0.0.1:1338",
"port": 1337,
"bind": "0.0.0.0"
}
Requests should be sent with the password/token before the payload, structured like this: <pass>::<payload>