mirror of
https://github.com/awfufu/traudit
synced 2026-03-01 13:39:44 +08:00
33 lines
711 B
YAML
33 lines
711 B
YAML
# Traudit Configuration Example
|
|
|
|
database:
|
|
type: clickhouse
|
|
dsn: "http://user:password@ip:port"
|
|
batch_size: 50
|
|
batch_timeout_secs: 5
|
|
tables:
|
|
tcp: tcp_log
|
|
|
|
services:
|
|
# Receives traffic from FRP with v2 Proxy Protocol header, audits it,
|
|
# strips the header, and forwards pure TCP to local SSHD.
|
|
- name: "ssh"
|
|
type: "tcp"
|
|
binds:
|
|
# Entry 1: Public traffic from FRP
|
|
- addr: "0.0.0.0:2223"
|
|
proxy: "v2"
|
|
|
|
# Entry 2: LAN direct traffic (no Proxy Protocol)
|
|
- addr: "0.0.0.0:2222"
|
|
# no proxy
|
|
|
|
forward_to: "127.0.0.1:22"
|
|
|
|
# - name: "web"
|
|
# type: "tcp"
|
|
# binds:
|
|
# - addr: "0.0.0.0:8080"
|
|
|
|
# forward_to: "/run/nginx/web.sock"
|