BotScanner

Deterministic Firewall Management for Linux Systems

BotScanner is a deterministic, backend‑agnostic firewall manager designed for engineers who demand reproducible behavior, audit‑transparent enforcement, and clean architectural boundaries.
It replaces ad‑hoc firewall scripts with a structured, policy‑driven system that produces the same output every time — no drift, no hidden state, no surprises.

Overview

BotScanner enforces firewall policy using a declarative configuration model and a deterministic execution pipeline.
It supports multiple backends (nftables, firewalld, iptables, ufw) and provides a unified abstraction layer so the same policy can be applied consistently across distributions.
The system is built around three principles:

  1. Determinism — same input → same output
  2. Reproducibility— full state can be rebuilt from configuration
  3. Audit Transparency— every action is logged, every change is explicit
BotScanner v3 is a complete architectural redesign focused on clarity, reproducibility, and backend‑agnostic enforcement.

Key Features

  1. Deterministic Enforcement
  2. Declarative configuration model
  3. Reproducible state transitions
  4. No hidden state or implicit behavior
  5. Drift detection between desired and actual firewall state

Backend‑Agnostic Architecture

Zone‑Based Policy Model

Enforcement Modes

Deterministic Logging

Reproducible Helpers

Architecture Overview

1. Configuration Layer

BotScanner reads a structured configuration file (YAML) defining zones, services, applications, backend selection, and enforcement mode.
Services are defined by name only; BotScanner maps them to ports internally for consistency.

2. Transformation Layer

Configuration is transformed into deterministic internal structures: sets, chains, rules, and backend‑specific objects.
This layer ensures reproducibility and removes ambiguity.

3. Backend Abstraction Layer

A unified interface that normalizes nftables, firewalld, iptables, and ufw.
Each backend implements the same deterministic contract.

4. Enforcement Pipeline

5. Logging Layer

Current Status

Roadmap

Near‑Term

Mid‑Term

Long‑Term

Why BotScanner Exists

Traditional firewall tools are inconsistent across distributions, prone to drift, difficult to audit, full of implicit behavior, and hard to reproduce.
BotScanner solves this by applying deterministic engineering principles:

  1. explicit state
  2. reproducible workflows
  3. audit‑transparent logs
  4. backend‑agnostic design
  5. clean architectural boundaries
It’s not just a firewall manager — it’s a deterministic enforcement engine.

Links