ROAMSWITCH SENSOR ・ Last updated: 2026-10-27

RoamSwitch Sensor Operations Manual

An installation and operations guide for a network sensor that, simply by being placed on the LAN, detects new devices appearing on the same segment and spoofing. For endpoints with RoamSwitch installed (Mac / Linux Client / Server Edition), it also performs active vulnerability audits. Distributed as apt / dnf packages.

1. Overview & Positioning

RoamSwitch (Mac / Linux Client / Server Edition) is, in every case, a host-resident agent. That form factor has two structural blind spots.

RoamSwitch Sensor is a dedicated node placed on the LAN that fills these two gaps. Implemented: active vulnerability audits of endpoints with RoamSwitch installed, ARP-based device inventory and spoofing detection, and reference information on suspicious behavior from opt-in passive capture (§6). It only detects and reports; it does not block traffic.

Outbound-traffic policy (no device data or audit results sent by default)
Sensor is not “Zero Telemetry”. (1) Fetching detection data: the CVE map and other data are fetched daily (updates.fetch_cve_map, default true; false for offline). They contain no device or audit data. (2) Notification and aggregation to destinations set by the operator: sent only when configured.

Self-defense is intentionally not implemented (a deliberate design decision). If you need to protect the Sensor host itself from attack, we recommend separately installing RoamSwitch for Linux Server Edition on the same machine. The two run as fully independent processes and coexist without conflict.

2. Current Verification Environment

3. Installation & Startup

Install the roamswitch-sensor package from the official, signed package repository. After installation, roamswitch-sensor.service (systemd) is automatically enabled and started.

3.1 APT (Ubuntu / Debian)

# 1. Register the repository signing key
curl -fsSL https://lafine.net/apt/roamswitch-archive-keyring.asc \
  | sudo gpg --dearmor -o /usr/share/keyrings/roamswitch-archive-keyring.gpg

# 2. Add the repository
echo "deb [signed-by=/usr/share/keyrings/roamswitch-archive-keyring.gpg] https://lafine.net/apt stable main" \
  | sudo tee /etc/apt/sources.list.d/roamswitch.list

# 3. Install
sudo apt update && sudo apt install roamswitch-sensor

3.2 DNF / RPM (Fedora / RHEL)

# 1. Import the GPG key
sudo rpm --import https://lafine.net/rpm/RPM-GPG-KEY-roamswitch

# 2. Add the repository config file
sudo curl -fsSL -o /etc/yum.repos.d/roamswitch.repo https://lafine.net/rpm/fedora/roamswitch.repo

# 3. Install
sudo dnf install roamswitch-sensor

3.3 Verifying It Started

systemctl status roamswitch-sensor.service
sudo roamswitch-sensor status

3.4 Running the CLI / TUI

The CLI (roamswitch-sensor) and the interactive TUI (roamswitch-sensor-tui) can be run directly after installation.

sudo roamswitch-sensor status
sudo roamswitch-sensor-tui
Opt-in: Passive LAN Visibility Extension
For use with a switch mirror-port (SPAN) receiver or an inline transparent bridge, specify the target interface name in the ROAMSWITCH_SENSOR_PASSIVE_CAPTURE_IFACE environment variable (set via systemctl edit roamswitch-sensor.service) to observe Ethernet/IPv4/IPv6 headers on that interface and detect new devices or contact with known-malicious IPs (see §6.1). Off by default.

4. Pairing (Pairing-Code Method)

Out of the box, Sensor trusts nothing. Pairing is done with a single-use pairing code the Sensor operator issues. The trust relationship — “Sensor may run active vulnerability audits against this endpoint” — is established in both directions at once, in a single pairing step (there is no such thing as one-directional trust).

Prerequisite: run Sensor at a fixed IP address (a static assignment, or a DHCP reservation). After pairing, the endpoint always connects directly to the IP address it saw at pairing time (there is no automatic discovery via mDNS or anything else), so if Sensor’s IP later changes you’ll need to re-pair. The endpoint side can keep a dynamic IP.

4.1 Issuing a pairing code (Sensor side)

# Run on the Sensor side (or press c in the TUI)
sudo roamswitch-sensor issue-code

An 8-character one-time code appears (0/O/1/I/L are excluded). It expires 10 minutes after it is issued. Tell the operator on the endpoint side right away, together with the TLS certificate fingerprint (SHA-256) to pin on the endpoint.

4.2 Pairing with the code (endpoint side)

# Endpoint side (roamswitch-linux)
sudo roamswitch sensor pair --addr <SENSOR_IP> --code <CODE> --fingerprint <SHA256_FINGERPRINT>

On the Mac edition you can do the same in the GUI from the menu bar item “🔍 RoamSwitch Sensor Pairing…” by entering the Sensor’s IP address, the pairing code and the certificate fingerprint.

Once paired, every later active audit and result retrieval is authenticated with Ed25519 signatures. A Linux endpoint talks over TLS 1.3 only to a Sensor whose certificate matches the fingerprint you entered, and never falls back to plaintext automatically (§4.4). At this point the endpoint that knew the code and the Sensor that issued it treat each other as trusted.

If a pairing code has expired
A pairing code automatically expires 10 minutes after issuance and can never be redeemed twice. Pairing after it has expired is rejected. If that happens, ask the Sensor’s operator to issue a new one with issue-code.

4.3 Manual pairing (registering a known public key directly)

If the Sensor operator already knows an endpoint’s public key and address out-of-band, it can be registered directly on the Sensor side without exchanging a pairing code (normally, use the code-based method in §4.2 and let the endpoint pair itself instead). You can look up your own public key and address with the following commands.

# Check your own public key/address on the endpoint side
sudo roamswitch sensor key

# Check the Sensor's own public key/address/MAC address
sudo roamswitch-sensor status
# Sensor side
sudo roamswitch-sensor pair <full public key> --addr <IP address> --confirm

4.4 Security of the control API (TCP 50543) (TLS, fingerprint, lockout)

Pairing, audit requests and result retrieval go through the Sensor’s control API (TCP 50543). The following protections are built in.

sudo roamswitch-sensor pairing show                       # mode, fingerprint, warnings
sudo roamswitch-sensor tls rotate                         # regenerate the certificate
sudo roamswitch sensor repin <PUBLIC_KEY> --fingerprint <NEW_FINGERPRINT>   # on each endpoint
Switching control.tls to required
(1) Update every endpoint to a TLS-capable version and complete TLS pairing (or re-pin) on each → (2) confirm that roamswitch-sensor status no longer shows a plaintext-connection warning → (3) run sudo roamswitch-sensor config set control.tls required → restart the daemon. off is normally not used, because Linux endpoints require TLS and could no longer connect.

5. Active Vulnerability Audit

Sensor runs non-destructive, proof-based vulnerability diagnostics against paired endpoints. It never performs destructive operations (writing or deleting data, stopping services).

sudo roamswitch-sensor scan <public key or its prefix>

The audit consists of four phases.

  1. Full port scan: exhaustively detects every open TCP port on the target host.
  2. Known-signature diagnostics: non-destructive, proof-based checks against known vulnerability patterns — unauthenticated exposure of Redis / dockerd / Memcached / MongoDB / Elasticsearch / CouchDB / Jenkins / VNC, SMTP open-relay diagnostics (a safe method that sends only MAIL FROM/RCPT TO, never DATA), and dev-server CORS misconfiguration, path traversal, and open-redirect diagnostics, among others.
  3. Generic banner grab: for open ports not covered by the signatures above, retrieves the banner string by connecting only — no data is sent. To an open port that shows no banner it sends a single GET / HTTP/1.0 to tell the service apart (at most 32 ports per audit).
  4. Supplementary nmap NSE diagnostics: broad, wide-protocol supplementary diagnostics via nmap --script safe. Runs automatically whenever nmap is installed on the host (a no-op otherwise).

Services on non-standard ports are also checked. The same read-only checks are applied to, for example, Redis on port 6380 or SSH on port 2222. Services are identified from the initial banner and the response to a single GET / HTTP/1.0. An endpoint's self-reported list (up to 64 entries at a time) is outside the signature, so it never widens the scope and is used only to choose the checks.

Every audit run is recorded to /var/lib/roamswitch-sensor/scan_history.json — regardless of whether anything was found, since a clean result at that point in time also has record value — and can be viewed from the CLI or TUI.

roamswitch-sensor history
sudo roamswitch-sensor report <public key or its prefix> --out /tmp/report.md

When it shows “Open ports: none” and there is no ARP response either, it displays “It may not be reaching the device.” This does not mean “no problem.” “nmap NSE: not run (nmap is not installed)” and “not applicable” mean different things.

5.1 Requesting an audit from the client side (pull model)

From a paired endpoint, you can also request an active vulnerability audit from the Sensor. On the Mac version, use “Request Audit from Sensor” in the menu bar; on the Linux version, use the following command.

sudo roamswitch sensor request-audit

After Sensor runs the audit, the endpoint polls for the result starting 5 minutes after the request, then every 5 minutes for up to 5 attempts (so up to 25 minutes total). Whatever result is retrieved is also saved locally on the endpoint.

roamswitch sensor results

On the Mac edition, results also appear in the settings window’s “Audit Results” list, or can be read through the MCP tool get_sensor_audit_results as input for an AI agent planning a remediation. Result retrieval can also be explicitly rejected — for example, if the pairing was revoked on the Sensor’s side (see §10 Q6).

5.2 Specification gaps, boundary values and AI leads (optional)

Spec diff and boundary-value check (design_flaw.enabled; off by default, opt-in) Applies only to paired, consenting endpoints. It looks for OpenAPI / Swagger documents and reports mismatches between what is declared and the actual responses. It supplies fixed safe values for query parameters and reports anomalies such as 5xx. It sends only GET, at most 20 requests per device. The order is fixed; the AI does not choose it (the summary masks secrets, up to 240 characters per item).
Have an AI write hypotheses (optional) roamswitch-sensor design-hypotheses passes only the summary of the records to the AI tool you choose and has it write unconfirmed hypotheses. It runs with the privileges of the user who runs it, and the summary may be sent to the provider. Nothing is sent to devices.

6. Passive ARP Monitoring & LAN Visibility

Sensor keeps track of LAN devices in two ways. (1) Monitoring the ARP table: it reads the table about every 10 seconds and detects new IP/MAC pairs and MAC changes for known IPs (a sign of spoofing). (2) Active ARP sweep: every hour it checks the directly connected subnet (up to /22) with nmap -sn -PR and saves the result to the inventory. Without nmap, only (1) applies.

roamswitch-sensor arp-events

Detected events are shown by roamswitch-sensor arp-events and on the TUI “ARP Events” tab (Enter for details). Each event carries its time, a severity (critical to info; a MAC change of the gateway IP is “critical”), the reasoning, the identity of the devices involved and concrete next steps.

6.1 Passive LAN Visibility Extension (Opt-in)

While the ARP monitoring above only covers devices Sensor has itself communicated with, setting the ROAMSWITCH_SENSOR_PASSIVE_CAPTURE_IFACE environment variable to a target interface observes only the Ethernet/IPv4/IPv6 headers on it and what devices announce about themselves (no data content is read except for DNS, DHCP, mDNS, SSDP, WS-Discovery and LLDP), and does the following.

sudo systemctl edit roamswitch-sensor.service
# [Service]
# Environment=ROAMSWITCH_SENSOR_PASSIVE_CAPTURE_IFACE=eth0

sudo systemctl restart roamswitch-sensor.service
roamswitch-sensor passive-events

After adding an environment variable, restart with sudo systemctl restart roamswitch-sensor. systemctl edit alone does not apply to the running daemon. To check that it was applied, look at “Passive capture: receiving on eth0” in roamswitch-sensor status. If it still says “Passive capture is disabled”, it has not been restarted.

The receive buffer is changed with capture.rcvbuf_mb (MiB; default 4, 0 for the system default). Because the only privilege is CAP_NET_RAW, anything above net.core.rmem_max is cut off. If kernel_drops appears, raise rmem_max (for example: sudo sysctl -w net.core.rmem_max=8388608; to make it persistent, use /etc/sysctl.d/) and raise capture.rcvbuf_mb as well.

A Regular NIC vs. a Mirror Port
Even a single ordinary NIC works for detecting new devices within the scope of ARP/broadcast/multicast traffic (verified on real hardware on a physical LAN). However, observing general unicast traffic between two other hosts on the LAN requires a switch mirror-port (SPAN) receiver, or setting up Sensor as an inline transparent bridge.

6.2 Device Ledger and Device Notes

View the inventory with roamswitch-sensor device-inventory. Devices for which you registered a note with device-note are "known"; unregistered ones are "needs review". Observed VLAN IDs also appear in the vlans column of exports and elsewhere.

sudo roamswitch-sensor refresh
roamswitch-sensor device-inventory
sudo roamswitch-sensor device-note aa:bb:cc:dd:ee:ff "3F copier"

6.3 Reference Information on Suspicious Behaviour (Detection Only)

With passive capture (§6.1, opt-in) enabled, the following reference information is presented. All of it is detection and display only; the Sensor never blocks traffic.

6.4 Showing what the Sensor cannot see (coverage)

Passive monitoring cannot, by itself, tell hearing nothing from a quiet network. The Sensor counts only what it could observe itself and does not mistake what it cannot see for "no events". It opens no new connection and no new socket. It is on by default.

Examples of causes that are counted: the passive capture cannot be opened, a stall of 30 seconds or more, 5 consecutive receive failures, no frames for 5 minutes with the link also down, kernel drops (last 10 minutes), frames over 2048 bytes, and frames whose header cannot be read. A run in which the ARP table cannot be read is counted without clearing the baseline.

What it cannot do It counts only what the Sensor itself can observe. It cannot tell apart a case where reception is fine but the frames that arrive are skewed, such as a mirror port set up wrongly. When there have been no frames for 5 minutes but the link is up (capture_silent, info), it says plainly that "quiet" and "not hearing" cannot be told apart.

7. CLI Command Reference

Command Description
roamswitch-sensor status Show the Sensor’s own public key, IP and MAC address, the number of paired endpoints, ARP events and pending audit requests, and the control-API TLS state
roamswitch-sensor issue-code Issue a single-use pairing code (valid for 10 minutes); also shows the Sensor’s certificate fingerprint
roamswitch-sensor list Lists all paired endpoints
roamswitch-sensor pair <public-key> [--addr <IP>] [--name <name>] --confirm Manually pairs an endpoint by specifying its public key and address directly (normally, use issue-code and let the endpoint pair itself instead — it’s simpler)
roamswitch-sensor unpair <public-key> Removes a pairing
roamswitch-sensor scan <public-key> Runs an active vulnerability audit against a paired endpoint
roamswitch-sensor history [public-key] Shows audit history (omit the public key to see all endpoints)
roamswitch-sensor report <public-key> [--out <file>] Outputs the most recent audit result as a Markdown report
roamswitch-sensor arp-events Shows detected ARP events (new devices, suspected spoofing)
roamswitch-sensor pairing show / tls show Show the control-API TLS state (mode, fingerprint, plaintext-connection warning, listen IP, whether legacy v1 signatures are accepted); pairing show and tls show are equivalent
roamswitch-sensor tls rotate Regenerate the TLS certificate (every pin of the old fingerprint becomes invalid; endpoints must re-pin)
roamswitch-sensor refresh Rescan the LAN now (ARP sweep) and update the device ledger
roamswitch-sensor device-inventory Show the device ledger (every device observed on the LAN, its online state and note)
roamswitch-sensor device-note <MAC> [note] Register a note for a device (omit the note to delete it)
roamswitch-sensor passive-events / iot-events / network-threats / iot-advisories Show the events from passive capture (new devices and connections to malicious IPs / IoT behaviour / suspicious traffic / IoT advisories)
roamswitch-sensor lan-overview [--json]
roamswitch-sensor network-threats --json [--limit N] [--min-severity …]
Shows the overall state of the LAN (device count, VLANs, number of threats, etc.) and a list of threats. --json outputs JSON (--limit is at most 500). Both are read-only and can be run by non-root users. PersonalSOC and the Linux version of MCP read it.
roamswitch-sensor config [show | set <key> <value>] Show or change settings (scheduled audits, notifications, retention, collector, control API, detection-data fetching, language). control.bind_addr and control.tls take effect on daemon restart; the others need no restart (§11.8)
roamswitch-sensor diff [public key] Show what changed since the previous audit (new findings, resolved ones, newly open ports, suspected unreachable)
roamswitch-sensor export <scans|inventory|audit-log|unmanaged|all> … Write audit evidence as CSV / JSON / printable HTML
roamswitch-sensor audit-log [verify] Show the operation and approval log; verify detects tampering with the hash chain
roamswitch-sensor notify-test Send a test notification to the configured destinations (webhook / syslog) to verify connectivity
roamswitch-sensor audit-unmanaged <IP|MAC> --confirm
roamswitch-sensor unmanaged-audits
Light audit of devices without RoamSwitch (connect checks only). audit-unmanaged <IP or MAC> --confirm runs one by hand, unmanaged-audits [--detail] lists the results (§13)
roamswitch-sensor design-hypotheses [鍵] --llm 名前 Have the chosen AI tool write unverified leads from the latest design_flaw result (§5.2). --llm, --model, --timeout, --show-prompt
roamswitch-sensor lockdown [status | on | off] Show whether the Sensor is locked down (status), lock it down (on --reason TEXT) or release it (off). Locked down, it stops pairing, audits, uploads and notifications (§14)
roamswitch-sensor decommission --confirm Erase this Sensor's keys and stored data and lock it down (cannot be undone). The audit log is kept, and the endpoints that were paired with it are listed with how to unpair them (§14)

The CLI supports only Japanese and English (it follows the LANG environment variable).

8. TUI Operation Guide

The interactive TUI (roamswitch-sensor-tui) is available in 10 languages and can operate everything the CLI and settings can (m shows the feature list). The 6 main tabs (Paired, Network configuration, ARP events, Audit history, Diff, Operation log) are switched with Tab. The diff shows new items in red, resolved ones in green, and suspected unreachable ones in yellow.

Key Action
TabSwitches tabs
↑↓ / j kSelects an item
cIssue a pairing code (valid for 10 minutes). The screen shows the command to run on the endpoint, sudo roamswitch sensor pair --addr <this Sensor’s IP> --code <code> --fingerprint <fingerprint>, with the real values filled in
uRemoves a pairing
sRuns an active vulnerability audit against the selected endpoint
a(Network devices tab) Light-audit the selected device, after a confirmation screen (§13). Results are in the "Unmanaged audits" tab of the menu
KLock down or release this Sensor, after a confirmation screen; a red notice stays at the bottom of every screen while locked down. Decommissioning is in the menu (§14)
n(Network tab) Add a note — name, purpose, location — to the selected device; a device with a note counts as accounted for
rRe-scan the LAN now (ARP sweep; it otherwise runs automatically every hour)
eExport audit evidence (CSV of scan results, the device ledger and the audit log; an HTML report; JSON). A form lets you choose the content, format, endpoint, start date and destination; files are produced in the display language (10 languages). The default destination is ~/.local/state/roamswitch-sensor/; files are created new and readable only by the owner (an existing file is never overwritten), and the export itself is recorded in the audit log
pManual pairing (enter the public key and address, then a confirmation screen, then run). The form shows the Sensor’s TLS fingerprint that the endpoint pins
TTLS and pairing state (mode, fingerprint, plaintext-connection warning, listen IP, whether legacy v1 signatures are accepted). R regenerates the certificate (with a confirmation screen that explains the impact)
CConfig editor (shows and changes every configuration key; webhook URLs are always masked; keys that need a restart are marked)
NNotification test (shows success or failure per destination; URLs are masked)
mFeature menu (passive monitoring, IoT behaviour, suspicious traffic, IoT advisories, status i, collector management and more)
OCollector management (only on a host that has the collector’s data directory): enroll, revoke and list Sensors, the read token, and clearing an audit-log anomaly. n sets where the collector’s own alerts go
f / l / v(Scan History tab) filter by endpoint. (Audit Log tab) l changes how many rows are shown and v re-verifies the hash chain
EnterShow details for the selected row (audit history, changes, ARP events, devices, audit log)
w(In a detail view) write the report to a file at a destination you choose (produced in the display language)
LChoose the display language (saved to the language setting, so it also applies to notifications and logs produced by the daemon)
qQuits

9. Trust Model & Security Design

10. Troubleshooting & FAQ

Q1. Entering a pairing code gets rejected.

There are four possible causes. (1) More than 10 minutes have passed since issue (reissue with issue-code). (2) A typo. (3) The IP in --addr differs from the Sensor's fixed IP. (4) --fingerprint differs from the certificate (check with roamswitch-sensor pairing show). Repeated errors lead to a rate_limited lockout.

Q2. The NSE supplementary diagnostic result is empty.

There are two possible causes. (1) nmap is not installed in the container. (2) It ran, but there was actually no output from a safe script matching the target ports. The nmap NSE supplementary diagnostic runs automatically if nmap is installed on the host.

Q3. How long does an audit take to complete?

A full port scan alone takes about tens of seconds. If nmap is installed on the host, the NSE supplementary diagnostic is added automatically and can take up to about 2 minutes, depending on the number of open ports on the target. The TUI keeps showing the elapsed seconds while it runs, so you can follow progress.

Q4. I paired, but I still can't run an audit.

There are four possible causes. (1) sensor_pairing_enabled: true is not set on the endpoint (off by default). (2) The Sensor's fixed IP has changed (re-pairing is needed). (3) The Sensor was unpaired on its side. (4) The certificate was regenerated, so the endpoint's pin is stale (roamswitch sensor repin). Check each side's list for the other's registration.

Q5. Can Sensor itself be used alongside RoamSwitch proper (Client/Server Edition)?

Yes. Because Sensor is designed without self-defense features, we recommend running RoamSwitch for Linux Server Edition alongside it on the same machine. The two operate as completely independent processes and data stores, with no conflicts.

Q6. roamswitch sensor results says the pairing was revoked.

This endpoint’s pairing was removed on the Sensor side with unpair. Ask the Sensor’s operator to issue a new pairing code, then pair again with roamswitch sensor pair --addr <ip> --code <code> --fingerprint <SHA-256>.

11. Organization-Scale Audit Features (Opt-In)

A set of features for security teams in large organizations who need audit evidence and a clear picture of what changed. Every one of them is off by default, and nothing is ever sent to Lafine or any third party — every notification or aggregation destination is one your organization configures. Settings are changed with sudo roamswitch-sensor config set <key> <value> (no daemon restart needed; each change is recorded in the operation log); config show prints the current values.

11.1 Scheduled Audits and Change Detection

Setting schedule.enabled to true audits all paired endpoints periodically (every 24 hours by default). The difference from the previous run can be checked with roamswitch-sensor diff. When all previously open ports become invisible, this cannot be told apart from the endpoint being down, so it is treated as suspected unreachable.

Even unattended audits do not break the guarantee to audit only endpoints that have agreed. The MAC at the time the endpoint last authenticated is saved, and before and after the audit, nmap ARP checks whether the same MAC answers at that IP. If it differs, the audit is not performed (or its result is discarded) and a notification is sent.

Endpoints on another VLAN are excluded by default. With schedule.allow_routed_endpoints (off by default), this is verified, for example, by a signed request having arrived from the same address within schedule.routed_proof_minutes (default 30 minutes, 5 to 1440).

The reasons it does not run (no nmap, a device with no address, a device with no identity binding) appear as a warning under “Visible range” in status. If a notification destination is set, one coverage_gap is delivered, and coverage_restored is delivered once it is fixed. During lockdown and outside the time window, it does not raise a warning and shows one line in status.

11.2 Notifications (Webhook and syslog)

Sends regressions, new devices, ARP spoofing and so on to notify.webhook_urls and notify.syslog.host (RFC 5424, UDP or TCP). They can be narrowed with notify.min_severity and the resend interval, and connectivity can be checked with roamswitch-sensor notify-test.

status shows the notification channels and the result of the last delivery. While delivery is failing, a warning appears, so check with roamswitch-sensor notify-test. When it succeeds, the warning goes away.

11.3 Exporting Audit Evidence

roamswitch-sensor export <scans|inventory|audit-log|all> --format csv|json|html [--out file] [--endpoint start-of-public-key] [--since date]. html can be saved as PDF in a browser. CSV is protected against formula injection. Output is 0600, and the export itself is also recorded in the operation log. In the TUI, the e key gives the same options.

11.4 Operation and Approval Log (Tamper-Evident)

Pairing, audits, configuration changes and denied access are recorded together with who performed them. Each line is a hash chain that includes the SHA-256 of the previous line, and tampering can be detected with roamswitch-sensor audit-log verify (exit code 2 if abnormal). Webhook URL values are not kept. To guard against deletion of the tail, the head is also sent to the collector (§11.6).

11.5 Retention

Set retention.scan_history_days, retention.audit_log_days and retention.inventory_stale_days to have old audit history, operation-log entries and long-unseen devices deleted automatically (0 = never delete by age, the default). Devices that have a note are never removed from the inventory.

11.6 Aggregating Several Sensors (Central Collector, Optional)

When several Sensors run at several sites, run roamswitch-sensor-collector (shipped in the package, disabled by default) on a separate host to collect signed summaries from each of them.

# On the collector host (a separate host from the Sensor is recommended)
sudo systemctl enable --now roamswitch-sensor-collector   # listens on 127.0.0.1:8443 by default
sudo roamswitch-sensor-collector token                     # read token for the dashboard
sudo roamswitch-sensor-collector enroll <Sensor public key> --name Tokyo --site Tokyo

# On each Sensor
sudo roamswitch-sensor config set collector.url https://collector.example.org:8443
sudo roamswitch-sensor config set collector.enabled true
# On the collector host: where the collector's own alerts go
echo 'https://hooks.example.org/…' | sudo roamswitch-sensor-collector notify set --add-webhook - --min-severity high
sudo roamswitch-sensor-collector notify set --syslog-host 192.0.2.10 --syslog-protocol tcp
sudo roamswitch-sensor-collector notify show   # a Webhook URL is shown up to its host only
sudo roamswitch-sensor-collector notify test

When the collector could not read its history (scans.jsonl, events.jsonl), it counts what could not be read so that this is not mistaken for “no data”. A corrupted line is skipped on its own, and lines whose date cannot be read are not deleted by cleanup. The result appears in storage_health of /api/overview, in the dashboard, and in the startup log. No new communication is made.

11.7 Fetching Detection Data (updates.fetch_cve_map)

The Sensor fetches the signed CVE map (the known-vulnerability data used by active checks) and the nmap NSE database from the update service every day. This traffic carries no device or audit data. To run fully offline, run sudo roamswitch-sensor config set updates.fetch_cve_map false (the change takes effect from the next cycle without a restart, and only the bundled data is used from then on).

11.8 Configuration Key Reference

Check current values with roamswitch-sensor config show and change them with config set <key> <value> [<key> <value> …] (several keys are saved atomically; the TUI C config editor also changes them). Only keys marked “Yes” in the Restart column need a daemon restart (sudo systemctl restart roamswitch-sensor).

Key Type / values Default Restart
sitestring(empty)No
languageja | en | ko | zh-Hans | zh-Hant | de | fr | es | it | pt-PT(empty = system locale)No
schedule.enabledboolfalseNo
schedule.interval_hoursint24No
schedule.window_start_hourint 0–23(unset = always)No
schedule.window_end_hourint 0–23(unset = always)No
schedule.max_parallelint 1–81No
schedule.allow_routed_endpointsboolfalseNo
schedule.routed_proof_minutesint 5–144030No
notify.webhook_urlsURL list(empty)No
notify.min_severityinfo | medium | high | criticalmediumNo
notify.cooldown_minutesint30No
notify.syslog.hoststring(empty = off)No
notify.syslog.portint514No
notify.syslog.protocoludp | tcpudpNo
retention.scan_history_daysint (0 = never prune)0No
retention.audit_log_daysint (0 = never prune)0No
retention.inventory_stale_daysint (0 = never prune)0No
collector.enabledboolfalseNo
collector.urlURL(empty)No
collector.push_interval_minutesint15No
collector.send_unmanaged_devicesbooltrueNo
collector.send_unmanaged_auditsboolfalseNo
collector.probe_control_portboolfalseNo
control.bind_addrIP address0.0.0.0Yes
control.tlsoff | optional | requiredoptionalYes
control.allow_legacy_signaturesbooltrueNo
updates.fetch_cve_mapbooltrueNo
control.listen_ipv6boolfalseYes
capture.rcvbuf_mbint 0–256 (MiB, 0 = system default)4Yes
dhcp.active_probebooltrueNo
dhcp.allowed_serversMAC / IP list(empty = learn the first)No
ipv6.enabledbooltrueNo
ipv6.active_probebooltrueNo
ipv6.allowed_routersMAC / IP list(empty = trust the IPv4 gateway)No
unmanaged_audit.enabledbool (needs authorization + allowed_cidrs first)falseNo
unmanaged_audit.authorizationstring(empty)No
unmanaged_audit.allowed_cidrsCIDR list (IPv4 ≤ /16 and IPv6 ≤ /48 refused)(empty)No
unmanaged_audit.excludeIP / CIDR / MAC list(empty)No
unmanaged_audit.interval_hoursint168No
unmanaged_audit.max_parallelint 1–42No
unmanaged_audit.product_checkbool (needs unmanaged_audit.enabled)falseNo
unmanaged_audit.noauth_checkbool (needs unmanaged_audit.enabled)falseNo
design_flaw.enabledboolfalseNo
design_flaw.llm.toolclaude | opencode | codex | agy | (empty)(empty)No
design_flaw.llm.modelstring(empty)No
design_flaw.llm.timeout_secsint (0 or 5–600)0No
security.on_revokedlockdown | wipe | nonelockdownNo
security.lockdown_after_offline_daysint (0 = off)0No

12. Rogue DHCP and IPv6 Detection

Detects attacks in which a rogue router or similar device poses as legitimate and hijacks the communication path of endpoints. It only detects and notifies; it does not block traffic. Enabled by default, and passive capture is not required. Results appear in roamswitch-sensor network-threats, the TUI, notifications, logs and exports.

12.1 Rogue DHCP Servers (IPv4 and DHCPv6)

Every hour, it sends just one DHCP discover from a random MAC and counts all servers that respond. It does not send a REQUEST and does not lease an address. It learns the first server as legitimate and reports servers that appear later. Anything handing out a different gateway or DNS is critical.

12.2 IPv6 (Rogue Router Advertisements, NDP Spoofing, IPv6-Only Devices)

Rogue router advertisements: if a device other than the IPv4 gateway acts as an IPv6 router, it notifies you (register it in ipv6.allowed_routers if the setup is legitimate). Advertisements whose hop limit is not 255 are ignored. NDP spoofing: it reports when the MAC of an IPv6 address is swapped (high if it is a router). Devices visible only over IPv6: it reports devices that appear only in the neighbor table.

12.3 Who Counts as Legitimate, and the Settings

When dhcp.allowed_servers and ipv6.allowed_routers are set, every response from anything else is reported (if empty, the first one is learned). ipv6.enabled can turn off IPv6 monitoring. IPv6 listening of the control API (50543) is added with control.listen_ipv6 (default false). Global IPv6 can be reachable from the internet, so it is disabled by default.

13. Light Audit of Devices Without RoamSwitch (Opt-In)

The active vulnerability audit in §5 targets only endpoints that have been paired and agreed. If you want to check “what is open to the outside” on unpaired printers, cameras, NAS and similar devices, you can use a much more limited, separate check. Deep diagnostics like OpenVAS, login attempts, exploiting vulnerabilities, nmap NSE and full-port scans are performed only on endpoints that have agreed.

13.1 What It Does

It consists only of TCP connection checks to a fixed set of 55 ports, reading the banner that an open port sends by itself (one HEAD / for web services), and notes on already published vulnerabilities. The result means “reachable from the LAN”, not “vulnerable”. Product identification and authentication checks are separate opt-ins (off by default).

13.2 Turning It On

Before enabling, set unmanaged_audit.authorization (the approver) and unmanaged_audit.allowed_cidrs (the range; anything wider than /16 for IPv4 or /48 for IPv6 is rejected). Scheduled runs default to every 168 hours; manual runs require --confirm.

sudo roamswitch-sensor config set unmanaged_audit.authorization "IT policy 2026-07, approved by A. Suzuki"
sudo roamswitch-sensor config set unmanaged_audit.allowed_cidrs 192.168.10.0/24
sudo roamswitch-sensor config set unmanaged_audit.exclude 192.168.10.1
sudo roamswitch-sensor config set unmanaged_audit.enabled true
sudo roamswitch-sensor audit-unmanaged 192.168.10.40 --confirm
roamswitch-sensor unmanaged-audits --detail

13.3 Safeguards

Hosts outside allowed_cidrs, devices in unmanaged_audit.exclude, paired endpoints, and the Sensor itself are never examined, under any circumstances. The MAC is checked before and after; if it belongs to a different device, the check is aborted or the result discarded. The text of authorization is written to the log on every run.

13.4 Product check (is it a product with CISA KEV vulnerabilities? Opt-in)

unmanaged_audit.product_check (off by default) reads the product name from a device's web interface and reports whether it has a CISA KEV vulnerability. It sends only GET / and redirects (at most 2) to web ports (80, 8080, 8181, 443, 8443, 10443). By design it sends no logins, no password attempts, no guessed paths, and no exploit input. At most 12 requests per device, 150 ms apart.

A product is named only when its markers all appear in the same response. If the version the device reports has a CVE in an NVD affected range, it is reported as "affected" (high); if the version cannot be read, as an "unconfirmed" notice (medium), and the device is not called vulnerable. Only MikroTik RouterOS exposes a readable version. Supported products include Fortinet FortiGate, Ivanti Connect Secure, and Citrix NetScaler. The markers are based on public detection signatures and have not been verified on real devices.

The KEV copy is bundled. Only when both product_check and updates.fetch_cve_map are enabled, one public CISA feed file is fetched every 24 hours (no LAN information is sent).

Check whether a service answers without authentication (unmanaged_audit.noauth_check; off by default, opt-in) Sends one read-only request each, and only to the following ports found open: Redis (6379, PING), Memcached (11211), Docker API (2375), Elasticsearch (9200), etcd (2379), CouchDB (5984), kubelet (10250), ZooKeeper (2181), Ollama (11434). It does no writes, no configuration changes, no AUTH, no sending or guessing of passwords, and no logins.

MongoDB, MySQL, and similar are not checked, because an attempt could amount to a login. The result is one of "answered without authentication", "authentication required", "refused", or "could not determine". It runs only under the same consent as the light audit. Use it only on devices you manage.

14. When a Sensor Is Lost, Stolen or Retired

A Sensor holds the list of vulnerabilities found on each endpoint, the addresses of the paired endpoints and its signing key. The endpoints that paired with it also treat it as an approved scanner, so a stolen Sensor plugged into the same LAN could act as one. The following stops that.

14.1 Revoking at the Collector, and Lockdown

When a Sensor is revoked with roamswitch-sensor-collector revoke <public key> --reason reason, its submissions are rejected with 403 sensor_revoked. A Sensor that learns of the revocation stops itself (lockdown), halting auditing, sending, notifications, and probing. The lockdown persists across restarts, and the data remains. Only when you are certain the Sensor is in its owner's hands can you lift it with roamswitch-sensor lockdown off.

14.2 Erasing, Decommissioning, and Offline Detection

With security.on_revoked set to wipe, revocation overwrites the keys, TLS key, configuration (including the Webhook URL), device list, audit results, and device inventory with zeros and deletes them. Only the operation and approval logs are kept, as evidence. The default, lockdown, only stops the Sensor. With security.lockdown_after_offline_days (default 0 = disabled), a Sensor that cannot send for a long time also stops itself.

14.3 What This Cannot Do

Endpoints keep trusting this Sensor until each one removes it, and the Sensor cannot notify them. On each endpoint listed, run roamswitch sensor unpair <this Sensor's public key> on Linux, or Settings > Sensor > Unpair on Mac. A Sensor carried off while powered down never receives the stop instruction, so disk encryption (LUKS, etc.) is the real defense. Overwrite-erasure does not guarantee complete erasure on flash or CoW storage.

← Server Edition Operations Manual To the Linux Edition Setup Page →