# CrowdSec Mikrotik Bouncer

CrowdSec Mikrotik Bouncer is a CrowdSec bouncer for self-hosters running MikroTik RouterOS that blocks malicious IP addresses by populating a dynamic firewall address list through the MikroTik API; the upstream. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2404/crowdsec-mikrotik-bouncer

## Description

CrowdSec Mikrotik Bouncer is a CrowdSec bouncer for self-hosters running MikroTik RouterOS that blocks malicious IP addresses by populating a dynamic firewall address list through the MikroTik API; the upstream repository is archived and the maintained fork, cs-mikrotik-bouncer-alt, is available.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

37/100 (Low), based on 5 of 5 factors.
- Maintained: 0 (GitHub repository is archived)
- Popular: 37 (67 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 95 (512 MB minimum RAM, runs on ARM)
- Security check: 72 (no serious findings, 3 minor, CI)

## Links

- Docker Hub: https://hub.docker.com/r/funkolab/cs-mikrotik-bouncer
- Unraid: https://ca.unraid.net/apps/crowdsec-mikrotik-bouncer-1vfhg5k0ji7fys?q=crowdsec-mikrotik-bouncer
- GitHub: https://github.com/funkolab/cs-mikrotik-bouncer
- Documentation: https://docs.crowdsec.net

## Common questions

### How do I generate the API key for this MikroTik bouncer?

Run cscli bouncers add mikrotik-bouncer and copy the key that is printed immediately. Set that value as CROWDSEC_BOUNCER_API_KEY because the key will not be shown again.

### What network access does the bouncer container need?

The container must be able to reach both the CrowdSec instance and the MikroTik appliance.

### How do CrowdSec decisions become router firewall blocks?

The bouncer uses the MikroTik API to populate a dynamic firewall address list. You then create IP drop filter rules in the MikroTik firewall.

### How should the bouncer be deployed?

It is primarily intended to run as a Docker container. If building from source, the repository's Dockerfile can be used as a reference.

## Alternatives

- Fail2ban: Fail2ban is a daemon that monitors log files and automatically bans hosts that cause multiple authentication failures, using firewall rules…
- IPBanPro: IPBan is a FREE and open source application that allows auto banning ip addresses from failed login attempts.
- defensia-agent

---
Source: Our Local Host (https://ourlocalhost.com/app/2404/crowdsec-mikrotik-bouncer), the self-hosted and open-source app directory.
