Ban IPs from matching regex with multiple stream support
// momentum
// why it's here
- Active: last commit 13 days ago
// how to help
// readme
A lightweight intrusion prevention system written in Rust.
Banalize tails log files, extracts IP addresses via configurable regex patterns, and blocks offenders using iptables after a configurable number of matches within a time window.
Architecture
apps/
core/ โ Rust binary API + iptables integration โ :6040
ui/ โ Vite + React dashboard (shadcn/ui) โ :6041 (docker) / :5173 (dev)
How it works
log file โ regex match โ IP extracted โ threshold reached โ iptables DROP rule
โ auto-expires after ban_time