Appendix C — Files and services on the appliance

This appendix is for the technician working from a shell on the appliance (SSH, the local console or System → Shell). It lists the main files Argos writes, the systemd services that make it work,…

This appendix is for the technician working from a shell on the appliance (SSH, the local console or System → Shell). It lists the main files Argos writes, the systemd services that make it work, what can be looked at safely and what must never be touched by hand.

The general rule: Argos owns the files it writes. It generates them again from its own configuration at every save, at every firewall apply, at boot or with its timers. A change made by hand in those files is overwritten at the first opportunity, or leaves the appliance in a state the console does not know. To change something use the console or the argos command (see Argos from the shell): they have the same validations and the same confirmation window.

Warning Never run nft flush ruleset: it would also delete other services’ tables (for example the containers’) and leave the appliance with no firewall. Do not change the argos_* tables by hand: the next apply replaces them whole. If the firewall must be reloaded, use “Apply” or argos firewall apply.

The configuration: /etc/edon/argos.json

It is the configuration of every page of the console: zones, publications, gateways, routes, VPNs, DNS, DHCP, inspection, system settings. Its permissions are 0600 and it holds secrets (the WireGuard private keys, the IPsec pre-shared keys): treat it like a password.

  • Only the console writes it, through a queue that serialises the saves of the various pages. Do not edit it by hand.
  • If the file is missing or cannot be read, the console starts with the default configuration, writes so in the journal and, before overwriting it, sets a copy aside (argos.json.unreadable-<time>).
  • A restore from Atlas leaves the previous configuration beside it (argos.json.before-restore-<time>).

Not in argos.json: the interfaces’ addresses (they are in /etc/network/interfaces), the relay’s password and the PPPoE ones, the accounts and the second factors, the update policy, the links to Atlas and to Citadel. Each has its own file, listed below.

The other files of /etc/edon

Almost all have permissions 0600.

File What it holds
argos.filter.nft, argos.nat.nft The confirmed ruleset, loaded at boot. Only the confirmation of an apply writes it, never a save.
argos.mail.secret The SMTP relay’s password.
argos.pppoe.json The passwords of the PPPoE links.
argos.misp.json The keys of the MISP instances of Protection → Intelligence.
argos.shodan.key The customer’s Shodan API key (Events and diagnostics → Shodan).
argos.registration.json The product registration.
argos.setup.json The first-run setup: when and by whom the license was accepted, when it was completed, when the network step was put off.
krios-deploy.json Only on an Argos EDON Krios created, until it registers: Krios’s address and certificate, the one-use registration token and the claim code’s fingerprint. Krios puts it in the seed; Argos deletes it once the registration succeeds.
argos.krios.json The registration with EDON Krios (where the reports go, the CA to trust, the reports’ credential), bound to /etc/machine-id.
argos.krios-claim.json When and from where the claim was made (the /first-run/claim page of an Argos Krios created); afterwards that page answers no more.
argos.krios-network.json Where the first-run setup’s Network step stands: written, rebooting, adopted or put back, with what it needs to put everything back.
argos.citadel.json, argos.citadel-sessions.json The link to Citadel (keys included) and the open remote sessions.
argos.atlas.json The tunnel to Atlas (private key, pre-shared key, token).
argos.wan.state.json The state of the gateways’ monitor (which lines are in use or withdrawn).
argos.session.key, argos.revoked.json The key that signs the console’s sessions, and the sessions ended with a logout. Deleting the key signs everyone out.
argos.proxy.token The token with which nginx presents itself to the console.
passwd.pam The second factors’ secrets (edon-core’s archive). To remove one use argos-mfa-reset.
argos-tls/ The private CA and the console’s self-signed certificate.
ipsec/ The appliance’s IPsec CA and the certificate requests in progress.
openvpn/ The OpenVPN tunnels’ credentials: this side’s private key and certificate, the other side’s CA, the tls-crypt key (directory 0700, keys 0600).
argos-dhcp.conf The dnsmasq configuration for the DHCP servers and relays.
blockpage/ The block pages’ authority: key (0600) and certificate. It stays with the page off too, for the devices that have installed it.
agent.json, agent.d/hooks/pre.d/50-argos The edon-agent backup client and the hook that writes the manifest before every backup.

The network

/etc/network/interfaces

Argos owns two sections of the file, starting with # --- argos managed --- (network cards) and # --- argos managed vlans --- (VLANs). The stanzas outside those sections, written by hand or by the installer, stay as they are: Argos rewrites only the interfaces it already manages or that a save changes. A stanza inside the sections is generated again from the configuration at every save, options included: a change made by hand there is lost.

No stanza holds the gateway line any more: the default routes are installed by the gateways (Network and uplinks → Gateways) with the firewall’s apply, and the stanza’s hooks put them back when the interface comes up again.

Other network files:

File What it holds
/etc/hosts Argos owns the 127.0.1.1 line (the appliance’s name) and the block between # --- argos managed --- and # --- end argos managed --- (the local DNS records). The rest of the file is yours.
/etc/hostname The short name, from System → Host identity.
/etc/sysctl.d/60-argos-forwarding.conf IPv4 forwarding on and ICMP redirects off, written at the confirmation of the first firewall.
/etc/dhcp/dhclient-enter-hooks.d/argos-default-route Puts a DHCP lease’s route after the gateways (dhclient only).
/etc/ppp/peers/argos-pppN, /etc/ppp/argos-pppN.env The profile of each PPPoE link, with the password (0600), and its unit’s environment.
/etc/ppp/ip-up.d/argos-gateways Puts the gateway’s routes back when a PPPoE session comes up again. Present only while a confirmed gateway uses a PPPoE link.
/etc/ppp/ip-up.d/argos-shaping Rebuilds the rules of Network and uplinks → Quality of Service of a PPPoE link at every session. Present only while an active QoS rule uses a PPPoE link.

VPN

File What it holds
/etc/wireguard/<name>.conf One file for each profile of VPN → VPN WireGuard, with the private key (0600). Also wg-atlas.conf and wg-citadel.conf for the links to Atlas and to Citadel.
/etc/swanctl/conf.d/argos.conf The tunnels of VPN → VPN IPsec. The credentials are the argos-<id>… files under /etc/swanctl (private keys, certificates, the peer’s CA).
/etc/openvpn/argos/<name>.conf One file per tunnel of VPN → VPN OpenVPN (no secret: it names the credential files). For a listening tunnel also ccd-<name>/DEFAULT, the client’s address and networks.

The console, DNS, DHCP and inspection

File What it holds
/etc/nginx/conf.d/argos.conf The console’s site (443, 80, 8000). It holds the proxy token (0600). Every change goes through nginx -t before the reload.
/etc/nginx/conf.d/argos-proxies.conf The Reverse proxies’ sites.
/etc/nginx/conf.d/argos-waf.conf Loads the glue of the reverse proxies’ web application firewall (/usr/lib/argos/scripts/waf/lua). Present only while at least one proxy has its WAF on.
/etc/edon/argos-waf.key The key nginx asks the WAF with (0600). It stays when the WAF is off.
/etc/systemd/system/argos.service.d/argos-direct.conf Exists only in direct mode (console over http with no nginx). scripts/console-setup.ts removes it; do not delete it by hand.
/etc/unbound/unbound.conf.d/argos.conf The resolver: forwarding, access control, local DNS, forwarded domains.
/var/lib/unbound/argos-blocklist.conf The DNS protection lists merged into a single file (it can be tens of MB). The lists’ cache is in /var/lib/argos-dns.
/etc/unbound/argos-ech.py, /etc/unbound/argos-ech.exempt The module that removes the ECH key from the answers (“Keep the site’s name visible”) and the networks exempted from DNS protection, which get it untouched. Present only while the switch is on.
/var/lib/argos/dhcp/dnsmasq.leases The DHCP leases handed out.
/etc/suricata/argos.yaml, argos-drop.conf, argos-disable.conf, argos-appid.rules The inspection engine’s configuration, the rules’ filters and the application control rules. The downloaded rules are in /var/lib/suricata/rules/suricata.rules.
/var/lib/argos-dnstap/ The clients’ DNS queries the resolver records (“DNS query analysis”), one file a day (dns-YYYYMMDD.log) for seven days.
/var/lib/argos-dpi/ The logs of Suricata (suricata/eve.json, suricata/tls.json) and of Zeek (zeek/<interface>/).
/etc/crowdsec/acquis.d/argos.yaml Tells CrowdSec to read Suricata’s alerts.
/etc/crowdsec/acquis.d/argos-waf.yaml, appsec-configs/argos-waf.yaml, appsec-rules/argos-crs.yaml, appsec-rules/argos-waf-proxies.yaml, contexts/argos-waf.yaml The reverse proxies’ web application firewall: where it listens, each proxy’s mode and rules left out, the Core Rule Set and the WordPress profile. The Core Rule Set is copied to /var/lib/crowdsec/data/argos-crs/ and the argos-crs-*.data files beside it. Present only while at least one proxy has its WAF on; Argos rewrites them at every save.
/etc/crowdsec/config.yaml.local Written by Argos, unless a file of yours is there: CrowdSec keeps up to 50 000 alerts for 7 days, because the WAF writes one for every refused request.

Updates

File What it holds
/etc/apt/apt.conf.d/20auto-upgrades, 52argos-unattended-upgrades The schedule and the options of System → Updates.
/etc/systemd/system/apt-daily.timer.d/argos-schedule.conf, apt-daily-upgrade.timer.d/argos-schedule.conf The daily window, with no random delay.
/etc/apt/sources.list.d/argos-backports.sources Debian’s backports, used only for Suricata.
/var/log/argos-update-now.log The log of the last “Update now”.

The directories of /var/lib

Directory Contents
/var/lib/argos The Let’s Encrypt webroot (acme/), the backup manifest, the DHCP leases, a few internal markers.
/var/lib/argos-dns, /var/lib/argos-appid The caches of the DNS lists and of the App-ID catalogue. They rebuild themselves.
/var/lib/argos/geo The countries’ addresses for the publications’ “Allowed countries”: the five internet registries’ files, the intervals merged by country, the last update. They download again by themselves.
/var/lib/argos-intel The downloaded threat intelligence sources, the address table as last loaded, the bans in force and the last week’s sightings. The sources download again by themselves.
/var/lib/argos/decoy The last week’s contacts with the decoys, the mails sent and the quarantines in force (watch.json).
/run/argos-decoy What the decoys are doing now: the decoys on the network, their rules, the quarantine loaded. It disappears at every reboot and is recreated.
/var/lib/argos/blockpage What the block page says (context.json: the contact, the allowlist, the applications blocked per zone). The console writes it again at every DNS save.
/var/lib/argos-satellite The Atlas satellite: the client’s key (key.pem) and the enrolment (state.json: the Atlas, the certificate, the address). Folder 0700, outside the backup’s paths: a restored or replaced appliance enrols again by itself.
/var/lib/argos-restore The only directory Atlas can restore a backup into. It holds secrets: empty it with “Delete files” once the restore is done.
/var/lib/edon/identity The machine’s identity, shared with the other EDON components. Never copy it to another appliance, except in the replacement case described in Replacing a failed appliance.

The nftables tables

Table What it holds
inet argos_filter The filter: the input and forward chains, each zone’s chains (zone_<name>_in, zone_<name>_fwd), the chains that log the connections let through.
ip argos_nat The publications (DNAT) and the zones’ masquerade.
ip argos_acme Exists only for a few seconds, during a Let’s Encrypt validation when a publication uses port 80.
inet argos_appid Exists only while a zone blocks applications that publish their addresses. It is no part of the firewall’s apply cycle.
inet argos_intel The threat intelligence addresses: blocked, reported and banned. It updates by itself, outside the firewall’s apply cycle; the management ports answer ahead of every one of its drops.
inet argos_decoy The decoys’ quarantine: the devices that may not reach the other zones and the internet (forward only: the appliance answers them). It exists only while the quarantine is on. The decoys themselves are not here but in the network namespace argos-decoy, with their own rules.

Every apply replaces each table in a single transaction; other programs’ tables are never touched.

The systemd services

Always present

Unit What it does
argos.service The console (the application, on 127.0.0.1:3000, behind nginx). Restarting it closes the Shell’s sessions and cancels a firewall apply waiting for its confirmation.
argos-firewall.service At boot, before the network, loads the confirmed ruleset. If nft refuses it, it loads an emergency ruleset (everything dropped but the management ports on every interface), marks the firewall as to be applied and ends with an error, so that the Status page reports it.
argos-network.service At boot, once the network is up, puts back static routes, gateways, policy routing, QoS, PPPoE links, IPsec interfaces, OpenVPN tunnels (with their fallback routes) and DHCP.
argos-wan-monitor.service The gateways’ monitor: checks each line, withdraws and puts back the default routes, follows the router of the DHCP leases.
nginx.service The console’s HTTPS front and the Reverse proxies.
unbound.service The DNS resolver.
crowdsec.service, crowdsec-firewall-bouncer.service Behavioural analysis and the enforcement of its bans.
edon-agent.service Atlas’s backup client; the Status page follows it only with the backup enrolled.

Depending on the configuration

Unit When it is there
argos-dhcp.service With at least one active DHCP server or relay (dnsmasq).
argos-pppoe@pppN.service One for each active PPPoE link.
wg-quick@<name>.service One for each active WireGuard profile, plus wg-quick@wg-atlas and wg-quick@wg-citadel with the links.
strongswan.service With the IPsec VPN.
argos-openvpn@<name>.service One per active OpenVPN tunnel that knows the other side’s certificate.
argos-suricata.service The inspection and intrusion prevention engine. Debian’s suricata.service stays masked: do not switch it back on.
argos-zeek@<interface>.service Traffic analysis, one per observed interface.
argos-appid.service At boot, reloads the application control table.
argos-intel.service At boot, reloads the threat intelligence address table and the bans still valid, from the caches.
argos-decoy.service At boot, recreates the decoys (the argos-decoy namespace) and the quarantine. On an appliance without decoys it does nothing.
argos-dnstap.service The DNS query analysis, with DNS protection on and its switch on: it collects the answers the resolver gives clients. It runs as a dynamic user in the unbound group.
argos-blockpage.service The block page, only while it is on: it runs as a dynamic user, with the argos-block interface and its address.
argos-citadel-tunnel.service The TCP relay of the Citadel tunnel, only when UDP is blocked.
argos-krios-network-check.service Only after the Network step of an Argos EDON Krios created, at the reboot that hands the NICs over: checks the network once, adopts it or puts cloud-init’s back and reboots once, then disables itself.

Timers

Timer When What it does
argos-tls.timer every day 03:30 (+ up to 1 hour) Certificates of the console, the Reverse proxies and IPsec: renewals, re-issues, e-mail warnings.
argos-suricata-update.timer every day 04:20 (+ up to 2 hours) Downloads and prepares Suricata’s rules.
argos-dns-refresh.timer every day 04:30 (+ up to 1 hour) Downloads the DNS protection lists again; restarts Unbound only if something changed.
argos-appid-update.timer every day 05:10 (+ up to 1 hour) Downloads the vendors’ ranges for App-ID again.
argos-intel-update.timer every hour Downloads again the threat intelligence sources that are due (each has its own interval) and updates resolver, firewall and Zeek without restarting them.
argos-intel-watch.timer every minute Reads the threat intelligence sightings, sets the bans and sends the sightings to the MISP.
argos-decoy-watch.timer every minute, only while a decoy answers Reads the contacts with the decoys, sends the alarms’ mails and puts devices in quarantine.
argos-geo-update.timer every day 05:15 (+ up to 1 hour) Downloads the countries’ addresses again, only while a publication limits the countries, and reloads their sets in the firewall without making it “to apply”.
apt-daily.timer, apt-daily-upgrade.timer in the window of System → Updates Package lists and upgrade; after every run argos-update-report.service sends the report.
argos-atlas-link.timer every minute The tunnel to Atlas: handshake, DNS mode, networks’ synchronisation.
argos-citadel-link.timer every 10 seconds The link to Citadel: heartbeat, approval, transport.
argos-krios.timer every minute, only while there is something to drive EDON Krios: the announcement of the claim page, the registration once the setup is complete, then the reports (/run/argos-krios/pace.json keeps the times).

Transient units

argos-update-now (“Update now”), argos-shell-<id>.scope (each terminal of the Shell) and argos-console-setup (the recovery of the console’s front) appear only while they work.

For the technician The units that run Deno carry SocketBindDeny=tcp:9229: it stops a signal from opening Deno’s inspector, which would give any local user code execution as root. Do not remove that line, and do not add units that run Deno without it.

What not to touch by hand

  • /etc/edon/argos.json and the other files of /etc/edon: they are changed from the console or with argos.
  • The ruleset files argos.filter.nft and argos.nat.nft: only the confirmation writes them.
  • The argos_* tables, and never nft flush ruleset.
  • The managed sections of /etc/network/interfaces and the managed block of /etc/hosts.
  • The generated files for nginx, Unbound, dnsmasq, Suricata, Zeek, strongSwan, OpenVPN, WireGuard and pppd listed above.
  • /etc/sysctl.d/60-argos-forwarding.conf: forwarding is governed by the firewall’s apply cycle.
  • /var/lib/edon/identity: neither to be changed nor copied.
  • The boot services (argos-firewall, argos-network): do not restart them by hand. They would reload the confirmed ruleset or the routes over an apply waiting for its confirmation; the Services card of the Status page does not offer it either.

Useful read-only commands

These commands show the state without changing anything.

# The Argos services and their timers
systemctl status argos argos-firewall argos-network argos-wan-monitor
systemctl list-timers 'argos-*'

# The journal of the console and of the services
journalctl -u argos -e
journalctl -u argos-wan-monitor --since "1 hour ago"
journalctl -u argos-firewall -b
journalctl -t argos-console-setup

# The running firewall
nft list table inet argos_filter
nft list table ip argos_nat

# Addresses, routes and routing rules
ip -br addr
ip route
ip rule

# Who listens on which ports
ss -tulpn

# The VPNs
wg show
swanctl --list-sas

# The tracked connections and CrowdSec's bans
conntrack -C
cscli decisions list

# The accounts with a second factor
argos-mfa-reset --list

# The same, in the console's words
argos system status show

Warning Two commands that look read-only print secret keys: wg show all dump (the WireGuard private keys) and ip xfrm state (the IPsec sessions’ keys). Use wg show and swanctl --list-sas. argos.json holds keys too: do not copy it into a ticket or a chat.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer