Skip to main content

Crate fail2ban_rs

Crate fail2ban_rs 

Source
Expand description

fail2ban-rs — A pure-Rust replacement for fail2ban.

Single static binary, fast two-phase matching, nftables/iptables firewall backends.

Modules§

config
TOML configuration loading and validation.
control
Unix socket control listener for CLI commands.
detect
Detection pipeline — read logs, find attackers.
duration
Human-friendly duration parsing for configuration values.
enforce
Enforcement — receives firewall commands and executes them.
error
Error types for fail2ban-rs.
logging
Structured logging via the Tell SDK.
regex_tool
CLI regex testing tool — test patterns against log lines.
server
Daemon lifecycle — spawns all tasks, handles signals and config reload.
track
Tracking — failure counting, ban/unban decisions, and state persistence.
webhook
Webhook notification on ban events.