CLI Reference
Every conflux command and flag with its default, and the realm controls, exit codes, environment variables, files and fields of conflux.json.
Command Dispatch
Conflux has a small, fixed set of commands. It passes every other command unchanged to the anchorctl it embeds, so conflux peers works but conflux stop does not.
Conflux decides what to do from the first argument:
| First argument | What happens |
|---|---|
| No arguments | Prints help and exits with code 0. |
-h, --help or -help | Prints help. |
-v, --version or -version | Prints the version. |
| Any other flag | Exits with code 2: "-x" is not a conflux option. Conflux never passes a leading flag to anchorctl. |
| One of conflux's commands | Runs the command. See Commands. |
stop or restart | Exits with code 2. The message points to conflux down, conflux start and conflux anchorctl stop …. |
| Anything else | Passes it unchanged to anchorctl. On Unix, anchorctl takes over the process, with its input, output, exit code and signals. |
Five names belong to both conflux and anchorctl. Conflux resolves them like this:
| Name | Resolution |
|---|---|
status | With no arguments, conflux runs its own command and then prints the output of anchorctl status. With any argument, conflux runs anchorctl's command, so conflux status -watch 5s works. |
proxy | Runs conflux's command. A flag that conflux proxy -h does not list exits with code 2 and prints both meanings. To reach anchorctl's proxy, use conflux anchorctl proxy -add …. |
renew | Runs conflux's command, which takes no arguments. Any flag except -h exits with code 2 and points to conflux anchorctl renew -cred FILE. |
start | Runs conflux's command, which takes no arguments. Any flag except -h exits with code 2 and points to conflux anchorctl start …. |
observe | Runs conflux's command, which takes its own flags but no arguments, and sets what the machine runs after every boot. -start and -stop exit with code 2 and name conflux's equivalents: conflux observe, conflux down, --observe and --no-observe. Any other flag exits with code 2 and points to conflux anchorctl observe, which reports on the running observer. inventory belongs only to anchorctl and passes straight through. |
Commands
Conflux has these commands: up, proxy, observe, enrol, start, down, renew, install, uninstall, status, version, update, cert, help, anchorctl and the hidden serve. Run them with sudo, or from an elevated PowerShell on Windows.
- Commands that change the machine exit with code 13 without root.
statusand anchorctl's commands need root in practice, because only root can read the directories.proxyandobserveneed root only to register the boot service.proxy --ephemeralregisters nothing and needs no root.up --ephemeral, and an ephemeral run that observes, need root.version,help,update --checkandcertneed no root.
conflux up
Enrols the machine if it has no credential, saves the settings in conflux.json, registers the boot service and starts the anchor with a network interface.
conflux up [--taint T]... [--ipv4 ADDRESS | --no-ipv4] [--subnet SPEC... | --no-subnet]
[--interface NAME] [--uplink DEV | --no-uplink] [--peers HOST:PORT]... [--no-peers]
[--api URL] [--port N | --no-port] [--low-latency | --no-low-latency]
[--lan-discovery yes|no|auto] [--serve-exit | --no-serve-exit] [--use-exit | --no-use-exit]
[--observe | --no-observe] [--observe-loopback] [--observe-hide-names]
[--export HOST:PORT [--export-insecure]] [--ephemeral [--manifest FILE|-]]For the flags, see up and proxy.
$ sudo conflux up --taint brhk-2mq9-tzva-6pjs-k4xe-nw7d-qf --ipv4 10.128.0.2/24
conflux proxy
Does what up does, in userspace and with no network interface, and publishes the ports you name from the anchor.
conflux proxy PORT[/NETWORK]=BACKEND ... [the flags of up, except --interface]
A spec takes the form OVERLAYPORT[/NETWORK]=BACKEND. The network is tcp or udp, and defaults to tcp. The backend is host:port, with an IPv6 host in brackets.
Each run replaces the whole list of specs, and specs and flags can come in any order. You can leave out the specs when --subnet or --serve-exit gives the machine something to route. For the flags, see up and proxy. To learn more, see Publishing Services.
$ sudo conflux proxy 8080=127.0.0.1:3000
conflux observe
Runs the observer without an anchor, saves the settings in conflux.json and registers the boot service. The machine inventories the cryptography of its traffic after every boot, and doesn't join a realm.
conflux observe [--loopback] [--hide-names] [--export HOST:PORT [--export-insecure]] [--yes]
| Flag | Default | Description |
|---|---|---|
--loopback | Off | Also observes the loopback interfaces. |
--hide-names | Off | Leaves every name a flow was reached by out of the records and the inventory, with the server's address in its place. |
--export HOST:PORT | The export block of conflux.json, or nothing | Sends each record as it is made, and the daemon's telemetry, to that collector, as up does. |
--export-insecure | Off | Connects to that collector without TLS. |
--yes | Asks at a terminal, and refuses without one | Stops the machine's anchor without asking for confirmation. |
The flags set the observer exactly as you name it, and any flag you leave out is turned off. On a machine that runs an anchor, observe stops it and clears the proxy specs. The identity and every other setting are kept for the next up or proxy. To see what the observer has recorded, run conflux inventory, or conflux inventory -cbom for a CycloneDX CBOM. To learn more, see Observing Traffic.
$ sudo conflux observe --export guardian.example.gov:4317
conflux enrol
Installs a credential that the machine was given, such as one that a guardian issued.
conflux enrol --manifest FILE|- [--api URL] [--ipv4 ADDRESS]
| Flag | Default | Description |
|---|---|---|
--manifest FILE | Required | Reads the credential from FILE, or from standard input with -, up to 1 MiB. |
--api URL | The credential's renewal URL | Overrides the API address, which must name the same host. |
--ipv4 ADDRESS | The address the issuer allocated | Gives the anchor a different IPv4 address. |
Enrol checks everything before it writes anything, and refuses to replace an existing credential. It has no --taint flag, because only a credential's issuer grants its taints.
$ sudo conflux enrol --manifest node-14.b64
conflux start
Starts the anchor now from conflux.json, in the mode that the file names, or restarts it if it is already running.
conflux start
It first copies this conflux binary to the location the boot service runs it from. It does not change the configuration or enrol. To bring a machine back after down, use start, not up. On a machine in proxy mode, up would switch the mode and drop the proxies.
$ sudo conflux start
conflux down
Stops the anchor now, and keeps the boot service, the configuration and the identity, so a reboot brings the machine back.
conflux down
$ sudo conflux down
conflux renew
Fetches a new credential and installs it on the running anchor, without a restart.
conflux renew
It passes the new chain to anchorctl on standard input. It exits with code 69 when there is nothing to renew, as on a machine that only observes, or during an ephemeral run, which renews itself.
$ sudo conflux renew
conflux install
Registers the boot service, and starts it if a configuration exists.
conflux install
$ sudo conflux install
conflux uninstall
Removes the boot service, the configuration, the state, the identity, the extracted binaries, the logs and the accounts anchord ran as.
conflux uninstall [--yes]
| Flag | Default | Description |
|---|---|---|
--yes | Asks for confirmation | Skips the confirmation, and is required when there is no terminal to ask at. |
The identity cannot be recovered afterwards. uninstall also cleans up after an ephemeral run that was killed, and on macOS returns the BPF devices to root. While an ephemeral run is live, it exits with code 2. To see what each command keeps, see Files and Directories.
$ sudo conflux uninstall --yes
conflux status
Prints conflux's status rows, followed by the output of anchorctl status.
conflux status
It exits with code 78 when there is no configuration and no ephemeral run is live. While a run is live, it reports the run first. To learn what each row means, see Reading Status.
$ sudo conflux status
conflux version
Prints the release, the commit and the platform, whether conflux runs in FIPS 140-3 mode and with which Go Cryptographic Module, then the anchor set that conflux carries and the SHA-256 digests of its binaries.
conflux version
$ conflux version conflux 1.1.0 (1a570eb3831ac4d5450d38d6a7dfdb46c66656bd) linux/amd64 fips140 on, Go Cryptographic Module v1.26.0 anchor set <set id> anchord <sha-256> anchorctl <sha-256>
conflux update
Replaces this conflux with the latest release's build for this platform, and moves the boot service onto it.
conflux update [--check | --yes]
| Flag | Default | Description |
|---|---|---|
--check | Off | Says whether this binary matches the latest release byte for byte, and names the release and the commit it was built from. It changes nothing. |
--yes | Off | On a dev build installed from dev-latest, moves to the release anyway. Without it, update on a dev build explains the move and exits with code 2. |
The download is checked against the SHA-256 digest the release lists for it, and conflux runs the new binary once, to read its version, before replacing anything. The new conflux then replaces the file that conflux was started from, following symlinks. On Windows, the running program is renamed to conflux.exe.old, and the next update removes it. Conflux sends no token, because the repository is public.
| Situation | What update does |
|---|---|
| This is the latest release | Says so and exits with code 0. Nothing changes. |
| The anchor is running | update runs start from the new conflux, which restarts the anchor on the new version. update exits with the code that start returns. |
| Installed, not running | Leaves it stopped, and refreshes the boot service's copy, so the next start runs the new version. |
| Not installed | Replaces the file. |
| The release has no build for this platform, lists no digest, or is still uploading | Refuses, and changes nothing. |
It runs only when you run it yourself, so a machine changes version only when you decide. It needs root, except with --check.
$ conflux update --check This is conflux's latest release: conflux 1.1.0 (1a570eb3831ac4d5450d38d6a7dfdb46c66656bd) linux/amd64.
conflux cert
Creates and checks keys, certificate requests, certificates and revocation lists, runs a certificate authority, creates PKCS#12 bundles, and probes and serves TLS, all in FIPS 140-3 mode. Keys are ML-DSA-87 by default.
conflux cert genkey | req | selfsign | sign | verify | show | convert | match | fingerprint | crl | ca | p12 | probe | serve ...
It needs no root, no configuration and no anchor. verify, match and probe exit with code 3 when the check fails. For every command and flag, see the Certificate Toolkit.
$ conflux cert probe server.example:8443 --require-pq
conflux help
Prints the usage of conflux and anchorctl, or of one command.
conflux help [COMMAND]
On its own, it prints conflux's usage, then anchorctl's usage below a horizontal rule. With a command name, it prints that command's usage, whichever binary owns the command.
$ conflux help proxy
conflux anchorctl
Runs the embedded anchorctl with your arguments, unchanged.
conflux anchorctl [--] ARGS...
A leading -- is accepted and ignored. With no arguments, it runs anchorctl's help.
$ sudo conflux anchorctl proxy
conflux serve
Runs the supervisor, which the boot service starts.
conflux serve [--foreground] [--dir DIR] [--log FILE]
| Flag | Default | Description |
|---|---|---|
--foreground | Off | Keeps the supervisor attached to the terminal. |
--dir DIR | — | Sets the root of all its paths, as CONFLUX_DIR does. |
--log FILE | Where the service manager sends it | Writes the output to FILE, with each line stamped in UTC, and renames it to FILE.1 when it passes 10 MiB. The launchd and FreeBSD registrations pass it. |
serve --foreground runs the machine's own configuration. It is not an ephemeral run.
$ sudo conflux serve --foreground
Flags
Flags take one dash or two: -x or --x. A value follows as --x=v or --x v.
up and proxy
up and proxy take the same flags, except --interface, which only up takes. Conflux saves every flag in conflux.json, so a later run or a reboot keeps the value until you change it.
Repeat --taint, --subnet and --peers to give more than one value. To undo a flag, give its --no- form, or --lan-discovery auto. Giving both flags of a pair exits with code 1.
| Flag | Default | Description |
|---|---|---|
--taint T | On the first run, conflux mints one and prints it | Asks for a taint at enrolment. |
--ipv4 ADDRESS | Conflux asks once at a terminal, and exits with code 1 if there is none | Gives the anchor an IPv4 address, as a.b.c.d or a.b.c.d/len. |
--no-ipv4 | — | Records that the machine has no IPv4 address, but it can still reach IPv4 peers. |
--subnet SPEC | None | Forwards a private network for the realm. |
--no-subnet | — | Clears the list of forwarded networks. |
--interface NAME | The anchor's own name: anchor and the start of its AnchorID | Names the network interface. Only up takes it. |
--uplink DEV | The host's network | Reaches the realm over a serial line, given as /dev/X or /dev/X:BAUD. |
--no-uplink | — | Returns to the host's network. |
--peers ENTRY | The bootstrap list the credential carries | Replaces the bootstrap list with host:port or anchor…@host:port entries. |
--no-peers | — | Returns to the credential's bootstrap list. |
--api URL | https://api.veilnet.com.au | Sets the https address where the machine enrols and renews. |
--port N | The kernel picks one | Sets the UDP port on every interface, from 1 to 65535. |
--no-port | — | Returns to a port the kernel picks. |
--low-latency, --no-low-latency | Off | Sends frames as QUIC datagrams, so flows do not block each other, but a lost frame is not resent. |
--lan-discovery yes|no|auto | auto: the credential's setting, or on if the credential has none | Searches the host's networks for anchors of the same realm tree. |
--serve-exit, --no-serve-exit | Off | Offers this machine as an exit node to the internet. |
--use-exit, --no-use-exit | Off | Sends this machine's internet traffic over the overlay to an exit node. |
--observe, --no-observe | Off | Runs the observer next to the anchor, to inventory the cryptography of this host's traffic. See Observing Traffic. |
--observe-loopback | Off | Also observes the loopback interfaces. Implies --observe. |
--observe-hide-names | Off | Leaves out the names that servers were reached by, and records each server's address instead. Implies --observe. |
--export HOST:PORT | The export block of conflux.json, or nothing | Sends telemetry to the OTLP/gRPC collector at that address, including every observer record and every circuit the anchor relays. Turns on flows and metrics, and keeps the rest of the export block. |
--export-insecure | Off | Connects to that collector without TLS. |
--ephemeral | Off | Runs in the foreground and leaves nothing behind: no files and no boot service. See Ephemeral Runs. |
--manifest FILE, --manifest - | Enrols in memory | With --ephemeral, uses this issued credential, read from FILE or standard input, and never writes it to disk. |
| Flag | Rule |
|---|---|
--taint | Takes at most 32 names. Each is 1 to 64 bytes of printable UTF-8, with no space, ,, @ or +. Once the machine has a credential, conflux accepts only the taints it grants. More than one taint prints a containment warning. |
--ipv4 | Takes any unicast address outside 198.18.0.0/15, with any prefix length except /0. A private address is advertised to peers. A public address is used as the source address but is not advertised. |
--subnet | A SPEC is a prefix, an interface name or '*', optionally followed by @a+b to bind it to taints. Only private networks are accepted: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10 and fc00::/7. The list holds at most 64 entries of up to 255 bytes each, bound to at most 16 taints that this machine carries. |
--subnet, --no-subnet | Both replace a list that another member's Subnets order set. |
--interface | Linux and Windows use the name as given. On Linux, a name has 1 to 15 letters, digits and _ . + @ -, and can't be . or .. on its own. macOS and the BSDs number their own utunN and tunN devices, and treat a name of that form as the unit to request. On macOS, a name that starts with utun must end in a number. |
--uplink | Works on Unix only. Conflux refuses the fd:N form, and warns below 19200 baud. |
--peers | Use it only to reach a realm that the credential does not describe. Conflux warns when it replaces a different override. |
--api | Plain http is refused unless CONFLUX_ALLOW_INSECURE_API=1 is set. On a sovereign network, enrol sets the address from the credential. |
--serve-exit, --use-exit | Conflux never takes these from the credential. In proxy mode, --use-exit covers only the anchor's own traffic. |
--observe, --observe-loopback, --observe-hide-names | If you pass any of them, the observer is set exactly as you name it, and any option you leave out is turned off. If you pass none, the observer stays as configured. |
--export | Takes a host:port, not a URL. Headers and TLS settings come only from the export block of conflux.json, never from the command line. |
--ephemeral | Conflux never prompts. The IPv4 address comes from --ipv4 or --no-ipv4. If you pass neither, it comes from the credential, and if the credential has none, there is no IPv4 address. up --ephemeral needs root, and proxy --ephemeral needs none. |
--manifest | Conflux refuses it without --ephemeral. To keep a credential, use conflux enrol. An --api you give must name the same host as the credential. |
| Conflicts | Conflux refuses --port 0. It also refuses --port or --lan-discovery yes together with --uplink, --serve-exit together with --use-exit, --no-observe together with an observer flag, and --export-insecure without --export. |
Other Commands
observe, enrol, uninstall, update and serve have their own flags, listed with each command. For the flags of cert, see the Certificate Toolkit.
Passed-Through Commands
Conflux passes every command it does not own to anchorctl: peers, route, routes, connect, punch, events, metrics, export, inventory, telemetry, block, unblock, blocks, taints, subnets, send, subscribe, keygen, issue, delegate, renew-link, install-link, id, inspect, config, mint-realm, mint-anchor.
The anchorctl that conflux embeds doesn't include the root command, so conflux reports it as unknown.
- When no daemon is running, conflux prints
nothing is running here., namesstart,up,proxyandobserve, and exits with code 69. It skips this check for a help request, such ashelpas the command or-h,--helpor-help, and when you give your own-socketorANCHOR_SOCKET. - Conflux extracts anchorctl only once it has found a running daemon.
- Without root, a command that can't read the daemon's token exits with code 13 and prints the line to run instead,
try: sudo conflux …(doason OpenBSD). conflux anchorctl proxylists, adds (-add) and removes (-rm) proxies on the running anchor. The changes last until the next restart, which starts fromconflux.json.conflux anchorctl export -endpoint …changes telemetry on the running daemon until the next restart. See The export Block.conflux inventoryprints what the observer has recorded, andconflux inventory -cbomprints it as a CycloneDX CBOM.conflux anchorctl observereports on the running observer.- While an ephemeral run is the only anchor running, passed-through commands reach it. With an installed anchor running too, they reach the installed one, unless
CONFLUX_EPHEMERAL=1is set.
Realm Controls
Six anchorctl commands let one member act on others in the same realm. Conflux passes them through like any other anchorctl command. All of them except blocks act on another member, never on this machine.
| Command | What it does | Power needed |
|---|---|---|
block -target ID [-days N] [-reason TEXT] | Shuts another member out of the realm, on every member, until the block ends or is lifted. Without -days, it lasts until a member lifts it. | block |
unblock -target ID | Lifts a block, whoever issued it. | block |
blocks | Lists the blocks in force. | None |
taints -peer ID [-set A,B] [-timeout D] | Reads another member's taints, or moves the member to other taints. | taint |
subnets -peer ID [-set A,B | -clear] [-timeout D] | Reads the networks another member forwards for the realm, or replaces its list. | subnets |
telemetry -from ID [-timeout D] | Asks another member for its status, routes and counters. | telemetry |
- Each command needs its power in this machine's credential. The issuer grants powers in the same way as taints.
- Credentials from the instance VeilNet hosts grant no powers, so on that instance anchor refuses these orders and says why.
- On a sovereign network, the root node that the guardian hosts issues these orders, and the guardian may grant a power to a machine.
- Give the full 58-character AnchorID,
anchor…, asconflux statusprints it. The ten-character short form in the tables ofpeersandblocksis not accepted. - To cover every private network on a member, use
subnets -set '*'. The anchorctl help saysall, which anchor does not accept. - A block does not stop the blocked anchor. It keeps running outside its realm until the block ends or is lifted, and every peer shows
DATA no. To stop the anchor on this machine, runconflux down.
To learn more, see Gossip Controls and Powers and Boundaries.
Exit Codes
Conflux exits with these codes:
| Code | Meaning | Returned by |
|---|---|---|
| 0 | Success. | Every command |
| 1 | A failure not listed below, including a setting refused after the flags are read, such as an invalid address. | Every command. The supervisor also exits with it on a failure that a restart may fix, and systemd, launchd and Windows then restart it. On FreeBSD and OpenBSD, the supervisor runs again at the next conflux start or reboot |
| 2 | A usage error, such as an unknown flag, stop or restart, proxy with nothing to serve, enrol without --manifest, or uninstall declined. It is also returned when observe runs without a terminal on a machine that runs an anchor and --yes is not given, and when update runs on a dev build without --yes. | Conflux's own commands |
| 3 | A check ran and failed: conflux cert verify, match or probe. | cert |
| 13 | The command needs root or Administrator, or a passed-through command could not read the daemon's token. | Every command that changes the machine, and passed-through commands |
| 69 | Nothing to act on. For example, no daemon is running, conflux is not installed, the credential is fixed-term and cannot renew, or no anchor has started yet to renew. It is also returned by renew on a machine that only observes, or during an ephemeral run, which renews itself. | Passed-through commands, start, down, renew |
| 70 | A configuration that conflux or anchor refuses permanently, after three attempts. The systemd unit does not restart after this code. It is also returned when a conflux built for FIPS 140-3 mode runs with that mode switched off, when conflux cert runs on a conflux that is not in that mode, and for a second ephemeral run by the same user. | The supervisor, every command, cert, an ephemeral run |
| 78 | There is no configuration, and no ephemeral run is live. The systemd unit does not restart after this code. | status, start, the supervisor |
| other | Anchorctl's own code, unchanged. | Passed-through commands |
Error Messages lists every message with its code.
Environment Variables
Conflux reads these environment variables:
| Variable | Effect |
|---|---|
CONFLUX_DIR | Puts a whole separate installation, including its boot service, in one directory. The service name takes a suffix derived from the directory, conflux-<hash>.service or conflux_<hash> for rc, so it cannot replace the machine's own service. The control socket's path must stay under the kernel's limit of 104 to 108 bytes. The directory belongs to the account that runs conflux, and conflux uses it as an absolute path. On FreeBSD and OpenBSD, install takes a path of letters, digits and . _ - /. Use it for tests, or on hosts whose default filesystem is mounted noexec. An ephemeral run then keeps its root in $CONFLUX_DIR/ephemeral. See Extracted Binaries. |
CONFLUX_DEBUG=1 | Passes -v to anchord. |
CONFLUX_EPHEMERAL=1 | Sends passed-through commands to the ephemeral anchor when an installed anchor is also running. Without it, they reach the installed anchor. See Ephemeral Runs. |
CONFLUX_ALLOW_INSECURE_API=1 | Allows a plain-http API address. Use it only for tests. |
ANCHOR_SOCKET, ANCHORD_TOKEN | Conflux sets these for a passed-through command, unless they are already set. A -socket flag that you type takes precedence. Conflux's own calls, such as up, status, renew and an ephemeral run's start, always use conflux's daemon, whatever these variables say. |
Files and Directories
Conflux keeps one configuration per machine, owned by root and outside every home directory. Every directory has mode 0700. Conflux narrows a directory it finds with wider permissions, and refuses one owned by another account. Every file conflux writes there has mode 0600, and the programs it runs, the extracted pair and the service's copy of conflux, have mode 0700. Service definitions live where their service manager reads them, with the modes it expects. On macOS and FreeBSD, the log goes in the system's /var/log. On Windows, a protected access list gives SYSTEM and Administrators sole access.
Where anchord runs as an account of its own, the state and run directories have mode 0710, owned by root with the account's group. The account can pass through them, but can't list or create anything in them. anchord itself has mode 0750 in the same way. See What Anchord Runs As.
| Linux | macOS | Windows | FreeBSD, OpenBSD | |
|---|---|---|---|---|
Configuration (conflux.json) | /etc/conflux/ | /Library/Application Support/conflux/ | %ProgramData%\conflux\ | /usr/local/etc/conflux/ |
| State: the identity, derived state, binaries and the service's copy of conflux | /var/lib/conflux/ | /Library/Application Support/conflux/ | %ProgramData%\conflux\ | /var/db/conflux/ |
Run (anchord/sock, token, ready, anchord.pid) | /run/conflux/ | /var/run/conflux/ | %ProgramData%\conflux\run\ | /var/run/conflux/ |
Log, with older lines moved to conflux.log.1 when it passes 10 MiB | The journal | /var/log/conflux.log | %ProgramData%\conflux\logs\conflux.log | /var/log/conflux.log (FreeBSD), /var/log/daemon (OpenBSD) |
| Ephemeral run, started as root | /run/conflux-ephemeral/ | /var/run/conflux-ephemeral/ | %ProgramData%\conflux-ephemeral\ | /var/run/conflux-ephemeral/ |
| Boot service | /etc/systemd/system/conflux.service | /Library/LaunchDaemons/org.veilnet.conflux.plist | Service conflux | /usr/local/etc/rc.d/conflux (FreeBSD), /etc/rc.d/conflux (OpenBSD) |
An ephemeral run started as an ordinary user keeps its files in $XDG_RUNTIME_DIR/conflux-ephemeral. If that is not available, it uses /tmp/conflux-ephemeral-UID, and then the user's cache directory. Where /run is mounted noexec, a root run uses /var/lib/conflux-ephemeral. This directory holds the socket, the token and the extracted binaries, but never a credential, and it is removed when the run ends.
| File | What it holds |
|---|---|
conflux.json | The settings you asked for. See Configuration File. |
manifest.b64 | The machine's identity and credential. A renewal rewrites it. It cannot be recovered from anywhere else. See What the Manifest Holds. |
state.json | What conflux has worked out, such as the AnchorID, the credential's expiry and the last renewal attempt. Conflux clears it when the machine gets a new identity, from enrolment or conflux enrol. |
anchord.json | The daemon's configuration, generated from conflux.json on every start. Edits to it do not last. |
bin/<setID>/ | anchord and anchorctl, extracted from conflux, with wintun.dll on Windows. Old sets are removed after 24 hours. |
anchor/subnets.json | Another member's Subnets order, if one is in force. --subnet or --no-subnet removes it. |
conflux (conflux.exe on Windows) | The copy of conflux that the boot service runs. up, proxy, install, start and update refresh it. |
conflux.lock | Lets only one process at a time rewrite the manifest or the state. |
serve.lock | Held by the single supervisor that serves this installation. |
anchord.pid | Kept in the run directory. Records the pid and executable of the anchord that the supervisor started, so that the next supervisor can stop one left running. |
| down | start | install | uninstall | |
|---|---|---|---|---|
| Running anchor | stopped | (re)started | (re)started | stopped |
| Boot service | kept | kept | registered | removed |
conflux.json | kept | kept | kept | deleted |
manifest.b64 | kept | kept | kept | deleted permanently |
state.json | kept | kept | kept | deleted |
anchord.json | kept | rewritten | rewritten | deleted |
| Log file (macOS, FreeBSD, Windows) | kept | appended | appended | deleted |
| Extracted binaries | kept | kept | kept | deleted |
This table doesn't cover ephemeral runs, which don't read or write any of these files. The one thing that outlives a run is the conflux-ephemeral account, which uninstall removes with the installation's account.
To learn how conflux protects the manifest, see Security.
Configuration File
conflux.json holds the settings you asked for and everything a reboot needs. Every up, proxy and observe rewrites it, and leaves out the fields that are at their defaults:
{
"version": 1,
"mode": "proxy",
"taints": ["brhk-2mq9-tzva-6pjs-k4xe-nw7d-qf"],
"ipv4": "10.128.0.5/24",
"proxies": ["5432=127.0.0.1:5432", "80=127.0.0.1:3000"],
"createdAt": "2026-09-06T06:35:41Z",
"updatedAt": "2026-09-06T06:35:41Z"
}| Field | Type | Absent means | Notes |
|---|---|---|---|
version | Number | — | 1. Conflux refuses a file from a newer conflux and names both versions. |
mode | "tun", "proxy" or "observe" | — | The command that wrote the file. With "observe", the anchor's fields below are kept, unused, for the next up or proxy. See Choosing a Mode. |
observer | Object | Off | {}, with loopback and hideNames set to true if you asked for them. Runs the observer next to an anchor or, in "observe" mode, on its own. Its records are sent with the export's flows signal. |
taints | List of names | Always written | Before enrolment, the taints to ask for. After enrolment, a copy of the credential's taints, checked at every start. |
ipv4 | Text | Never asked | "" records that you declined an address, so conflux never asks again. |
subnets | List | Forward nothing | Same as --subnet. |
proxies | List of specs | None | Used in proxy mode only. Conflux refuses it in TUN mode. |
uplink | Text | The host's IP network | A device, with an optional line speed. |
peers | List | The bootstrap list the credential carries | Overrides the credential's list. It is usually absent. |
port | Number | The kernel picks one | Conflux refuses it together with uplink. |
lowLatency | true or false | false | Same as --low-latency. |
lanDiscovery | true or false | auto, not false | This is the only field where leaving it out does not mean false. When it is absent, the credential's setting decides. --lan-discovery no writes false. |
serveExit, useExit | true or false | false | They can't both be true. |
tunName | Text | The anchor's own name: anchor and the start of its AnchorID | Same as --interface, in TUN mode only. |
apiBaseUrl | Text | https://api.veilnet.com.au | Where the machine enrols and renews. |
export | Object | Export nothing | Where telemetry goes. See The export Block. |
createdAt, updatedAt | RFC 3339 time | — | Written by conflux. |
Editing by Hand
You can edit the file by hand. Then run sudo conflux start, and the anchor restarts with the settings in the file.
If anchor would refuse the file, conflux refuses it first and names the field. Anchor finds problems that depend on the host when it starts. Examples are a subnet whose interface is not up yet, which anchor retries, and TLS material under export that does not load.
The export Block
export sets where this machine's telemetry goes. Conflux copies the block unchanged into the daemon's configuration, so the field names match anchor's. Conflux refuses an unknown or repeated field and names it.
"export": {
"enabled": true,
"endpoint": "guardian.example.gov:4317",
"metrics": true,
"logs": true,
"headers": { "authorization": "Basic …" },
"metricIntervalNanos": 60000000000,
"resourceAttributes": { "site": "field-2" }
}- The fields are
enabled,endpoint(host and port, not a URL),insecure,headers,metrics,traces,logs,flows,metricIntervalNanos,traceSampleRatio,serviceName,resourceAttributes,exportTimeoutNanos,shutdownTimeoutNanos,caCert,clientCert,clientKey,logLevelandcardinalityLimit. flowssends a record of each IP flow the observer records, as ananchor.observed_flowevent, and of each circuit the anchor relays, as ananchor.circuitevent. Without the observer, it sends only circuits.- The three TLS fields take
{"path": "…"}or{"inline": "…"}. headersauthenticate this machine to a collector, so treat them as credentials.- Conflux refuses an enabled block with no endpoint, or with none of metrics, traces, logs and flows turned on.
- A credential from a guardian may carry an export block.
conflux enrolcopies it intoconflux.jsononce, and you can change it freely after that.
| Set by | Lasts |
|---|---|
This block, which conflux copies into anchord.json each time it starts. --export HOST:PORT on up, proxy or observe writes the endpoint and keeps the rest of the block | Until you change it |
conflux anchorctl export -endpoint … | Until the next restart or SIGHUP |
| A SIGHUP to anchord | Re-reads the file and discards the setting from the command above |
sudo conflux status prints the endpoint that this file names, and shows which of these settings the running daemon follows.