Skip to content

Protect your MikroTik router with CrowdSec

Automatically block malicious IPs on your MikroTik router using CrowdSec threat intelligence. Zero manual configuration, real-time updates, full observability.
🛡️
CrowdSec detects
LAPI receives threat intelligence and community decisions
🔄
Bouncer syncs
Polls LAPI for new and expired decisions in real-time
🔥
RouterOS blocks
Firewall rules are created or removed via the RouterOS API
📊
You monitor
Prometheus metrics and Grafana dashboards for full visibility

Why cs-routeros-bouncer? 1.0

Section titled “Why cs-routeros-bouncer? ”

Zero Manual Configuration

Auto-creates and auto-removes firewall filter/raw rules on start/stop — no manual router setup needed.

Real-time IP Management

Adds IPs on ban, removes on unban. No bulk re-upload, no duplicates. ~1–3 ms per operation.

Self-Healing State

On start or restart, syncs CrowdSec decisions with MikroTik state — adds missing, removes stale entries automatically.

Full Observability

Prometheus metrics, structured logging, health endpoint, and a ready-to-use Grafana dashboard.

Featurefunkolab archivednvtkaszpir-altcs-routeros-bouncer
Auto-create firewall rules
Individual IP add/remove
No duplicate IPs
State reconciliation on restart
Remove rules on shutdown
IPv6 support
Output blocking
Origin filtering (local-only mode)
Prometheus metrics
Health endpoint
Go (compiled, low resource)
  • CrowdSec 1.5+ with LAPI accessible from the bouncer host
  • MikroTik RouterOS 7.x with API enabled (port 8728 or 8729 for TLS)
  • A dedicated RouterOS API user with appropriate permissions