Rewritten README and interface/configuration/CLI/Docker/support/architecture docs (EN and pt-BR) from the 1.6.0 code; all 80 screenshots regenerated, incidents pages added; changelog audited against the tags (1.4.0 date, 1.4.6/1.4.7 items, 1.5.0 details, 1.5.8 shipped inside 1.6.0, compare links); compose and .env.example expose the enforce, egress, probe and Tor settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 KiB
Terminal
urutau serve [flags] run the daemon and the dashboard
urutau doctor [--json] [flags] check the sources and the data directory
urutau healthcheck [flags] exit 0 when the local daemon answers /api/health
urutau version print the version
urutau help print the usage
The access token is never a flag: urutau serve reads it from the URUTAU_TOKEN environment variable, or from the file named by URUTAU_TOKEN_FILE, so it does not show up in the process list. Tokens need at least 32 characters and about 128 bits of estimated entropy (length times Shannon entropy; periodic or sequential tokens are refused) (openssl rand -base64 48 is recommended (-hex 32 also works)). Every flag below has a URUTAU_* environment default; a flag wins over the variable. See configuration.md.
urutau serve
| Flag | Variable | Default | Meaning |
|---|---|---|---|
--bind |
URUTAU_BIND |
0.0.0.0:8790 |
listen address |
--name |
URUTAU_NAME |
hostname | name of this instance |
--data-dir |
URUTAU_DATA_DIR |
/data |
state directory: snapshot urutau-state.gob, geo/, tor/, events/, incidents.json, enforce.json |
--traefik-log |
URUTAU_TRAEFIK_LOG |
/data/coolify/proxy/access.log |
Traefik JSON access log; empty disables |
--auth-log |
URUTAU_AUTH_LOG |
/var/log/auth.log |
sshd log; empty disables |
--fail2ban-log |
URUTAU_FAIL2BAN_LOG |
/var/log/fail2ban.log |
fail2ban log; empty disables |
--probe-log |
URUTAU_PROBE_LOG |
/logs/host/probe.log |
kernel log of connections to unserved ports, written by the host kit; empty disables |
--trusted |
URUTAU_TRUSTED |
empty | CIDRs of trusted origins; their events are dropped entirely. --ignore / URUTAU_IGNORE is an alias |
--ignore |
URUTAU_IGNORE |
127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7,fe80::/10,100.64.0.0/10,169.254.0.0/16 |
same effect as --trusted, with the private ranges as default |
--monitor-ua |
URUTAU_MONITOR_UA |
(?i)^(Uptime-Kuma/|Beszel|Coolify|kube-probe/|Go-http-client/.*healthcheck) |
regular expression of monitoring User-Agents |
--monitor-from |
URUTAU_MONITOR_FROM |
empty | CIDRs the monitors come from; when set, the monitoring User-Agent only counts from them. Empty: only ok answers are filtered |
--domains |
URUTAU_DOMAINS |
empty | allowlist of analytics domains (exact or *.example.com); empty tracks every domain that answers 2xx; recommended when a backend answers 2xx for any Host |
--geo-dir |
URUTAU_GEO_DIR |
<data-dir>/geo |
directory of the DB-IP Lite databases (city and ASN) |
--geo-update |
URUTAU_GEO_UPDATE |
24h |
how often to check for a newer database; 0 turns the download off |
--peer |
URUTAU_PEERS |
none | peer name=https://url; repeat the flag, or comma separate the variable (the flag wins) |
--peer-token |
URUTAU_PEER_TOKEN |
empty | token shared with the peers; prefer the variable or URUTAU_PEER_TOKEN_FILE (a flag shows up in the process list). Per-peer: URUTAU_PEER_TOKEN_<NAME> or ..._<NAME>_FILE |
--admin-users |
URUTAU_ADMIN_USERS |
empty | SSH users whose successful login keeps their IP out of the blocklist for 24 h; the immunity is off unless set |
--peer-allow |
URUTAU_PEER_ALLOW |
empty | source CIDRs allowed to call the federation routes; empty accepts any source with the token |
--peer-blocklist |
URUTAU_PEER_BLOCKLIST |
on |
on lists in the hub's blocklist the hostile IPs seen only by peers (score 50+ and a strong signal); off keeps the blocklist to this instance's own IPs |
--location |
URUTAU_LOCATION |
empty | map position of this instance, "lat,lon" or "lat,lon,Label" |
--trusted-proxy |
URUTAU_TRUSTED_PROXY |
127.0.0.0/8,::1 (the compose file sets 10.250.0.0/24) |
proxies whose X-Forwarded-For is trusted, read right to left (login rate limit, --peer-allow) |
--retention |
URUTAU_RETENTION |
720h |
how long data is kept (1h to 720h, that is 30 days) |
--events-max |
URUTAU_EVENTS_MAX |
512MB |
size cap of the event registry in <data-dir>/events; 0 turns it off |
--tor-auto |
URUTAU_TOR_AUTO |
on |
on downloads the official Tor exit and relay lists every 6 h into <data-dir>/tor; off does not |
--tor-exits |
URUTAU_TOR_EXITS |
empty | file with Tor exit addresses, one per line, reloaded every 24 h when it changes; empty disables |
--enforce |
URUTAU_ENFORCE |
off |
second firewall: off, observe (decide in memory only) or on (also write decisions for the host fail2ban) |
--enforce-log |
URUTAU_ENFORCE_LOG |
/logs/enforce/decisions.log |
decision file appended in on mode (required then) |
--enforce-unban-log |
URUTAU_ENFORCE_UNBAN_LOG |
unban.log next to --enforce-log |
file the Unban button writes its requests to |
--enforce-share |
URUTAU_ENFORCE_SHARE |
off |
on exchanges decisions and unbans with the peers; each side applies its own exclusions |
--enforce-threshold |
URUTAU_ENFORCE_THRESHOLD |
5 |
attack events in 10 minutes that justify a ban (1 to 1000) |
--enforce-max-per-min |
URUTAU_ENFORCE_MAX_PER_MIN |
60 |
most decisions per minute, the excess is dropped and counted (1 to 10000) |
--egress |
URUTAU_EGRESS |
auto |
egress analysis: auto (on when --egress-log exists), on or off |
--egress-log |
URUTAU_EGRESS_LOG |
/logs/host/egress.log |
kernel log of new outbound connections, written by the host kit |
--egress-containers |
URUTAU_EGRESS_CONTAINERS |
/logs/host/containers.map |
"<ip> <container>" map written by the host kit |
--egress-workloads |
URUTAU_EGRESS_WORKLOADS |
empty | "name=ITEM,ITEM:role;...", roles default, scanner, mail, resolver (configuration.md) |
--egress-resolvers |
URUTAU_EGRESS_RESOLVERS |
empty | allowed DNS resolvers, comma separated; empty: the usual public ones plus the host's resolv.conf |
--insecure-no-auth |
none | off | disable authentication; only on a loopback bind |
URUTAU_EGRESS_ALLOW and URUTAU_EGRESS_PROVIDER_ASN exist only as environment variables (configuration.md). GOMEMLIMIT and TZ are the standard ones.
Validation at start (any failure exits with code 1 before listening): URUTAU_TOKEN and every peer token need at least 32 characters and about 128 bits of estimated entropy (periodic or sequential tokens are refused), and a peer token must differ from URUTAU_TOKEN, unless --insecure-no-auth on a loopback bind; peers must be name=https://host (plain http only on loopback), names unique and not all or the instance's own name, and each peer needs a client token (URUTAU_PEER_TOKEN_<NAME> or the general URUTAU_PEER_TOKEN), with no two names collapsing to the same variable; --retention from 1h to 720h; --events-max a valid size; --location valid; --peer-blocklist, --enforce-share on/off; --enforce off/observe/on (on needs --enforce-log); --enforce-threshold 1 to 1000 and --enforce-max-per-min 1 to 10000; --egress auto/on/off; --monitor-ua a valid regular expression; --ignore, --trusted, --peer-allow, --trusted-proxy and --monitor-from valid CIDRs or IPs.
export URUTAU_TOKEN=$(openssl rand -base64 48)
urutau serve --bind 127.0.0.1:8790 --data-dir ./data \
--traefik-log "" --auth-log /var/log/auth.log
The daemon logs to stderr, saves a snapshot on SIGTERM or SIGINT and exits 0 on a clean stop.
Noise and monitoring
urutau serve --trusted "10.0.0.0/8,203.0.113.7" \
--monitor-ua '(?i)uptime-kuma|statuscake'
--trusted drops every event from those origins. --monitor-ua matches the User-Agent of benign requests (ok or notfound) and counts them apart as "monitoring"; a request that is a scanner, exploit or bruteforce still counts as an attack.
Second firewall and egress
urutau serve --enforce observe # decide in memory, write nothing
urutau serve --enforce on --enforce-log /var/log/urutau-enforce/decisions.log
urutau serve --egress on --egress-workloads "mail=10.0.7.0/24:mail"
The host side (nftables logging, the urutau fail2ban jail) comes from deploy/host/install.sh, see docker.md.
Geolocation
urutau serve --geo-dir /data/geo --geo-update 24h
Urutau downloads the DB-IP Lite city and ASN databases into --geo-dir when they are missing or older than 35 days, then checks every --geo-update for the current month's file. The file is verified before it replaces the old one, and a failed download never stops the service. Data by DB-IP, CC BY 4.0.
urutau doctor
Checks the configuration (token, peers, bind and every validation above), each log source (readable, size; Traefik also for a malformed-line rate above 20%), that the data directory is writable, the second firewall, the geolocation databases and the snapshot. The probe and egress logs are not checked. Checks are named config, source traefik, source ssh, source fail2ban, source traefik format, data-dir, enforce (and enforce-cdn), geo and state. Statuses are ok, warn (a source that cannot be opened yet), fail and off (disabled). The exit code is 1 when any check is fail (for example --enforce=on with a decision file that is not writable), which makes it usable in a deploy script. It accepts the same flags as serve.
urutau doctor
docker exec urutau urutau doctor --json
--json prints {"version", "name", "ok", "checks": [{"name", "status", "detail"}], "geo", "state"}. geo reports the directory, update interval, attribution and the build dates of the loaded databases; state reports the snapshot (path, size, IPs, domains and requests in 7 days) or that none exists yet. A snapshot that cannot be read shows up as warn.
urutau healthcheck
Calls /api/health on the local bind address (0.0.0.0 and :: become 127.0.0.1; 3 second timeout, redirects are not followed) and exits 0 when it answers {"status":"ok"}, 1 otherwise. It is the container HEALTHCHECK, which is why the image has no curl. It accepts the same flags as serve (for a non-default --bind).
urutau version
Prints urutau <version>. --version and -v work too. urutau help (--help, -h) prints the usage; an unknown command prints it to stderr and exits 2.