carbonian-netwatch - start, stop and read the network-egress
monitor
carbonian-netwatch COMMAND [options]
The monitor (carbonian-netwatchd(8)) watches what this
machine sends to the network and writes it to a local log: every DNS name
asked, every new outgoing connection with the process that made it, the
server name of TLS and QUIC, and the request line and Host of plain HTTP. It
exists to answer one question with proof: what does the system try to reach
when no browser is running.
This command only starts and stops the service and reads local
files (the log, the control socket, systemctl). It makes no network request
and never sends anything anywhere.
Reading the log needs the group adm (the first user has
it). Start and stop use sudo(8).
- start
- Start the service now. It does not enable it at boot (that is systemctl
enable carbonian-netwatch, the user's choice).
- stop
- Stop it. Nothing is left behind: the monitor adds no firewall rule and no
interface.
- status
- Whether it is on, since when, whether it starts at boot, its counters
(packets, events, processes it could not name, packets the capture buffer
dropped) and the size of the log.
- tail [-n
N] [--all] [--local] [--raw]
- Show the last N events (15) and follow the log live, one line each: time,
process and pid, what. DNS? is a query, DNS= its answer,
CONN a new connection, TLS and QUIC the server name,
HTTP a request line. Names in the quiet list of
netwatch.conf and loopback traffic are hidden; --all shows
everything, --local adds loopback only, --raw prints the
JSON lines.
- report
[--since WHEN] [--until WHEN] [--by
process|domain|ip] [--local]
- A summary of the period (the last 24 hours by default): for each process
(or name, or address) the names it asked, the connections it made with
counts and first times, and flags: BARE IP (a connection to a
public address for which no name was ever seen), ? not in expect (a
name outside the expect list), ECH (the server name is
encrypted), encrypted, name unknown (port 443 or 853 with no
visible name). A name marked ~ was guessed from an earlier DNS
answer; one without it was read in TLS or HTTP. The report lists the marks
in the period, how long the monitor ran in it, and ends with the monitor's
blind spots.
- mark
TEXT
- Write a marker line in the log ("browser closed here"). Needs
the monitor to be running.
- export
[--since WHEN] [--until WHEN] [-o
FILE]
- The period as one JSON document (to standard output, or to FILE with mode
600).
2h 30m 1d (that long ago), 2026-10-25
"2026-10-25 14:30", 14:30 (today), mark (the
last marker) and mark:TEXT (the last marker whose text
contains TEXT, such as mark:baseline start).
- /var/log/carbonian-netwatch/YYYY-MM-DD.jsonl
- The log, one JSON object per line, mode 640 root:adm.
- /etc/carbonian/netwatch.conf
- ~/.config/carbonian/netwatch.conf
- /run/carbonian-netwatch/control.sock
carbonian-netwatch start
carbonian-netwatch mark "baseline start"
carbonian-netwatch tail
carbonian-netwatch report --since "mark:baseline start"
carbonian-netwatch report --since 2h --by domain
carbonian-netwatch export --since 1d -o ~/netwatch.json
carbonian-netwatchd(8), netwatch.conf(5),
carbonian(7)