Skip to content

Administration Guide

Routine operations for a running flowwler deployment: apply config changes with a reload instead of a restart, keep prefix sources fresh, watch history pruning, secure the API, upgrade and remove. For initial setup see the Getting Started guide; for diagnosing problems see the Troubleshooting guide.


Apply config changes with a reload

A reload applies most configuration changes without restarting the process and without dropping active mitigations. Validate first:

flowwler validate /etc/flowwler/config.yaml   # verify before applying
sudo systemctl reload flowwler                # sends SIGHUP
sudo journalctl -u flowwler -f                # confirm

A reload does the following:

  • Invalid config is rejected and flowwler keeps running with the old one.
  • IRR and NetBox prefixes are re-resolved and group subnets updated.
  • BGP peers are updated live without dropping active mitigations.
  • Mitigations for groups or rules removed from the config are withdrawn immediately, and a cleared notification is sent for each affected victim.
  • Notification targets and the log level are updated live; Jira/Zammad ticket tracking for active attacks is kept.

These settings need a restart: netflow.* and sflow.* listener settings (including listen_addr and exporter_allow), http.listen_addr, and storage.path.

A successful reload logs config reloaded successfully.

BGP restart required - changes to gobgp.local_asn, gobgp.router_id, gobgp.listen_port, or gobgp.grpc_addr cannot be applied via reload. flowwler exits and systemd restarts it automatically.

Check the outcome of the most recent reload:

curl -s http://localhost:9731/api/v1/status | jq .last_reload

Prefix sources refresh every 12 hours

IRR, NetBox, URL subnet and whitelist sources refresh automatically every 12 hours; active mitigations and BGP sessions are unaffected. If a refresh returns zero prefixes for a source, the whole refresh is rejected, the previous prefixes stay in place and the warning names the source. Remove or fix any source that is permanently empty, otherwise every refresh fails.

Freshness metrics: flowwler_irr_last_refresh_timestamp_seconds and flowwler_netbox_last_refresh_timestamp_seconds (per group; age is time() - metric).

To refresh immediately without waiting for the timer, call POST /api/v1/reload/sources (the web UI's Config page has a Reload Sources button). A SIGHUP reload also re-resolves the sources, but it is a full config reload, and unlike the scheduled and manual refresh it does not reject a source that returns zero prefixes.


Attack history is pruned after 90 days by default

Cleared attacks older than storage.retention_days (default 90) are pruned once daily; active attacks are never pruned. See retention_days.

To monitor pruning, alert on time() - flowwler_store_last_prune_timestamp_seconds > 90000 (25 hours). flowwler_store_pruned_attacks_total and flowwler_store_prune_errors_total (should stay 0) are also available.


Secure the REST API with a password hash or API key

Authentication is optional. When not configured the API is open. The /metrics and /health endpoints are never gated.

# Generate a bcrypt password hash for HTTP Basic Auth
flowwler hash-password
Password: <type the password; it is echoed>
$2a$10$...

Paste the hash into the config and reload:

http:
  auth:
    username: "admin"
    password_hash: "$2a$10$..."   # bcrypt hash from flowwler hash-password
    # api_key: "..."              # alternatively or additionally: static bearer token
flowwler validate /etc/flowwler/config.yaml
sudo systemctl reload flowwler

See REST API - Authentication for the full reference.


Upgrade with apt

A package upgrade keeps your config and restarts the service.

sudo apt update
sudo apt upgrade flowwler

The existing /etc/flowwler/config.yaml is never overwritten during an upgrade.


Remove flowwler and its data

Removal deletes the config and attack history, so back them up first.

sudo apt remove flowwler

Stops the service and removes the binary, systemd unit, all associated directories, and the system user. This deletes /etc/flowwler/config.yaml and the attack history in /var/lib/flowwler; back them up first.

The package never opens firewall ports. If you opened them by hand (see Getting Started), remove those rules yourself, for example:

sudo ufw delete allow 2055/udp   # NetFlow / IPFIX
sudo ufw delete allow 6343/udp   # sFlow
sudo ufw delete allow 179/tcp    # BGP