Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 739 Bytes

File metadata and controls

44 lines (33 loc) · 739 Bytes

Statsd Auth Proxy

A simple UDP proxy that authenticates packets using a token, and forwards them to a target address. Made for statsd.

Usage

./statsd_auth_proxy 

With custom configuration location

./statsd_auth_proxy --config config.json

Debug mode (logs packets)

./statsd_auth_proxy --enable-debug

Build

cargo build --release --all-features

Configuration

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"
}

Authentication

Requests should be sent with the password/token before the payload, structured like this: <pass>::<payload>