VeilNet

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 argumentWhat happens
No argumentsPrints help and exits with code 0.
-h, --help or -helpPrints help.
-v, --version or -versionPrints the version.
Any other flagExits with code 2: "-x" is not a conflux option. Conflux never passes a leading flag to anchorctl.
One of conflux's commandsRuns the command. See Commands.
stop or restartExits with code 2. The message points to conflux down, conflux start and conflux anchorctl stop ….
Anything elsePasses 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:

NameResolution
statusWith 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.
proxyRuns 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 ….
renewRuns conflux's command, which takes no arguments. Any flag except -h exits with code 2 and points to conflux anchorctl renew -cred FILE.
startRuns conflux's command, which takes no arguments. Any flag except -h exits with code 2 and points to conflux anchorctl start ….
observeRuns 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.
  • status and anchorctl's commands need root in practice, because only root can read the directories.
  • proxy and observe need root only to register the boot service.
  • proxy --ephemeral registers nothing and needs no root. up --ephemeral, and an ephemeral run that observes, need root.
  • version, help, update --check and cert need 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.

Usage
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.

Example
$ 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.

Usage
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.

Example
$ 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.

Usage
conflux observe [--loopback] [--hide-names] [--export HOST:PORT [--export-insecure]] [--yes]
FlagDefaultDescription
--loopbackOffAlso observes the loopback interfaces.
--hide-namesOffLeaves every name a flow was reached by out of the records and the inventory, with the server's address in its place.
--export HOST:PORTThe export block of conflux.json, or nothingSends each record as it is made, and the daemon's telemetry, to that collector, as up does.
--export-insecureOffConnects to that collector without TLS.
--yesAsks at a terminal, and refuses without oneStops 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.

Example
$ 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.

Usage
conflux enrol --manifest FILE|- [--api URL] [--ipv4 ADDRESS]
FlagDefaultDescription
--manifest FILERequiredReads the credential from FILE, or from standard input with -, up to 1 MiB.
--api URLThe credential's renewal URLOverrides the API address, which must name the same host.
--ipv4 ADDRESSThe address the issuer allocatedGives 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.

Example
$ 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.

Usage
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.

Example
$ 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.

Usage
conflux down
Example
$ sudo conflux down

conflux renew

Fetches a new credential and installs it on the running anchor, without a restart.

Usage
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.

Example
$ sudo conflux renew

conflux install

Registers the boot service, and starts it if a configuration exists.

Usage
conflux install
Example
$ 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.

Usage
conflux uninstall [--yes]
FlagDefaultDescription
--yesAsks for confirmationSkips 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.

Example
$ sudo conflux uninstall --yes

conflux status

Prints conflux's status rows, followed by the output of anchorctl status.

Usage
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.

Example
$ 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.

Usage
conflux version
Example
$ 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.

Usage
conflux update [--check | --yes]
FlagDefaultDescription
--checkOffSays whether this binary matches the latest release byte for byte, and names the release and the commit it was built from. It changes nothing.
--yesOffOn 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.

SituationWhat update does
This is the latest releaseSays so and exits with code 0. Nothing changes.
The anchor is runningupdate runs start from the new conflux, which restarts the anchor on the new version. update exits with the code that start returns.
Installed, not runningLeaves it stopped, and refreshes the boot service's copy, so the next start runs the new version.
Not installedReplaces the file.
The release has no build for this platform, lists no digest, or is still uploadingRefuses, 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.

Example
$ 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.

Usage
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.

Example
$ conflux cert probe server.example:8443 --require-pq

conflux help

Prints the usage of conflux and anchorctl, or of one command.

Usage
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.

Example
$ conflux help proxy

conflux anchorctl

Runs the embedded anchorctl with your arguments, unchanged.

Usage
conflux anchorctl [--] ARGS...

A leading -- is accepted and ignored. With no arguments, it runs anchorctl's help.

Example
$ sudo conflux anchorctl proxy

conflux serve

Runs the supervisor, which the boot service starts.

Usage
conflux serve [--foreground] [--dir DIR] [--log FILE]
FlagDefaultDescription
--foregroundOffKeeps the supervisor attached to the terminal.
--dir DIR—Sets the root of all its paths, as CONFLUX_DIR does.
--log FILEWhere the service manager sends itWrites 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.

Example
$ 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.

FlagDefaultDescription
--taint TOn the first run, conflux mints one and prints itAsks for a taint at enrolment.
--ipv4 ADDRESSConflux asks once at a terminal, and exits with code 1 if there is noneGives 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 SPECNoneForwards a private network for the realm.
--no-subnet—Clears the list of forwarded networks.
--interface NAMEThe anchor's own name: anchor and the start of its AnchorIDNames the network interface. Only up takes it.
--uplink DEVThe host's networkReaches the realm over a serial line, given as /dev/X or /dev/X:BAUD.
--no-uplink—Returns to the host's network.
--peers ENTRYThe bootstrap list the credential carriesReplaces the bootstrap list with host:port or anchor…@host:port entries.
--no-peers—Returns to the credential's bootstrap list.
--api URLhttps://api.veilnet.com.auSets the https address where the machine enrols and renews.
--port NThe kernel picks oneSets the UDP port on every interface, from 1 to 65535.
--no-port—Returns to a port the kernel picks.
--low-latency, --no-low-latencyOffSends frames as QUIC datagrams, so flows do not block each other, but a lost frame is not resent.
--lan-discovery yes|no|autoauto: the credential's setting, or on if the credential has noneSearches the host's networks for anchors of the same realm tree.
--serve-exit, --no-serve-exitOffOffers this machine as an exit node to the internet.
--use-exit, --no-use-exitOffSends this machine's internet traffic over the overlay to an exit node.
--observe, --no-observeOffRuns the observer next to the anchor, to inventory the cryptography of this host's traffic. See Observing Traffic.
--observe-loopbackOffAlso observes the loopback interfaces. Implies --observe.
--observe-hide-namesOffLeaves out the names that servers were reached by, and records each server's address instead. Implies --observe.
--export HOST:PORTThe export block of conflux.json, or nothingSends 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-insecureOffConnects to that collector without TLS.
--ephemeralOffRuns in the foreground and leaves nothing behind: no files and no boot service. See Ephemeral Runs.
--manifest FILE, --manifest -Enrols in memoryWith --ephemeral, uses this issued credential, read from FILE or standard input, and never writes it to disk.
Accepted values and conflicts
FlagRule
--taintTakes 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.
--ipv4Takes 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.
--subnetA 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-subnetBoth replace a list that another member's Subnets order set.
--interfaceLinux 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.
--uplinkWorks on Unix only. Conflux refuses the fd:N form, and warns below 19200 baud.
--peersUse it only to reach a realm that the credential does not describe. Conflux warns when it replaces a different override.
--apiPlain 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-exitConflux never takes these from the credential. In proxy mode, --use-exit covers only the anchor's own traffic.
--observe, --observe-loopback, --observe-hide-namesIf 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.
--exportTakes a host:port, not a URL. Headers and TLS settings come only from the export block of conflux.json, never from the command line.
--ephemeralConflux 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.
--manifestConflux refuses it without --ephemeral. To keep a credential, use conflux enrol. An --api you give must name the same host as the credential.
ConflictsConflux 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., names start, up, proxy and observe, and exits with code 69. It skips this check for a help request, such as help as the command or -h, --help or -help, and when you give your own -socket or ANCHOR_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 … (doas on OpenBSD).
  • conflux anchorctl proxy lists, adds (-add) and removes (-rm) proxies on the running anchor. The changes last until the next restart, which starts from conflux.json.
  • conflux anchorctl export -endpoint … changes telemetry on the running daemon until the next restart. See The export Block.
  • conflux inventory prints what the observer has recorded, and conflux inventory -cbom prints it as a CycloneDX CBOM. conflux anchorctl observe reports 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=1 is 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.

CommandWhat it doesPower 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 IDLifts a block, whoever issued it.block
blocksLists 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…, as conflux status prints it. The ten-character short form in the tables of peers and blocks is not accepted.
  • To cover every private network on a member, use subnets -set '*'. The anchorctl help says all, 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, run conflux down.

To learn more, see Gossip Controls and Powers and Boundaries.

Exit Codes

Conflux exits with these codes:

CodeMeaningReturned by
0Success.Every command
1A 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
2A 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
3A check ran and failed: conflux cert verify, match or probe.cert
13The 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
69Nothing 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
70A 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
78There is no configuration, and no ephemeral run is live. The systemd unit does not restart after this code.status, start, the supervisor
otherAnchorctl's own code, unchanged.Passed-through commands

Error Messages lists every message with its code.

Environment Variables

Conflux reads these environment variables:

VariableEffect
CONFLUX_DIRPuts 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=1Passes -v to anchord.
CONFLUX_EPHEMERAL=1Sends 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=1Allows a plain-http API address. Use it only for tests.
ANCHOR_SOCKET, ANCHORD_TOKENConflux 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.

LinuxmacOSWindowsFreeBSD, 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 MiBThe 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.plistService 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.

What is in them
FileWhat it holds
conflux.jsonThe settings you asked for. See Configuration File.
manifest.b64The machine's identity and credential. A renewal rewrites it. It cannot be recovered from anywhere else. See What the Manifest Holds.
state.jsonWhat 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.jsonThe 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.jsonAnother 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.lockLets only one process at a time rewrite the manifest or the state.
serve.lockHeld by the single supervisor that serves this installation.
anchord.pidKept 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.
What each command keeps
downstartinstalluninstall
Running anchorstopped(re)started(re)startedstopped
Boot servicekeptkeptregisteredremoved
conflux.jsonkeptkeptkeptdeleted
manifest.b64keptkeptkeptdeleted permanently
state.jsonkeptkeptkeptdeleted
anchord.jsonkeptrewrittenrewrittendeleted
Log file (macOS, FreeBSD, Windows)keptappendedappendeddeleted
Extracted binarieskeptkeptkeptdeleted

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:

/etc/conflux/conflux.json
{
  "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"
}
FieldTypeAbsent meansNotes
versionNumber—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.
observerObjectOff{}, 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.
taintsList of namesAlways writtenBefore enrolment, the taints to ask for. After enrolment, a copy of the credential's taints, checked at every start.
ipv4TextNever asked"" records that you declined an address, so conflux never asks again.
subnetsListForward nothingSame as --subnet.
proxiesList of specsNoneUsed in proxy mode only. Conflux refuses it in TUN mode.
uplinkTextThe host's IP networkA device, with an optional line speed.
peersListThe bootstrap list the credential carriesOverrides the credential's list. It is usually absent.
portNumberThe kernel picks oneConflux refuses it together with uplink.
lowLatencytrue or falsefalseSame as --low-latency.
lanDiscoverytrue or falseauto, not falseThis 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, useExittrue or falsefalseThey can&apos;t both be true.
tunNameTextThe anchor's own name: anchor and the start of its AnchorIDSame as --interface, in TUN mode only.
apiBaseUrlTexthttps://api.veilnet.com.auWhere the machine enrols and renews.
exportObjectExport nothingWhere telemetry goes. See The export Block.
createdAt, updatedAtRFC 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
"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, logLevel and cardinalityLimit.
  • flows sends a record of each IP flow the observer records, as an anchor.observed_flow event, and of each circuit the anchor relays, as an anchor.circuit event. Without the observer, it sends only circuits.
  • The three TLS fields take {"path": "…"} or {"inline": "…"}.
  • headers authenticate 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 enrol copies it into conflux.json once, and you can change it freely after that.
Three ways to set export, and how long each lasts
Set byLasts
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 blockUntil you change it
conflux anchorctl export -endpoint …Until the next restart or SIGHUP
A SIGHUP to anchordRe-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.