Protect servers with CrowdSec collaborative security. Use when a user asks to block malicious IPs, detect brute force attacks, protect web servers, or set up a community-driven firewall and intrusion detection system.
Scanned 5/27/2026
Install via CLI
openskills install TerminalSkills/skills---
name: crowdsec
description: >-
Protect servers with CrowdSec collaborative security. Use when a user asks
to block malicious IPs, detect brute force attacks, protect web servers, or
set up a community-driven firewall and intrusion detection system.
license: Apache-2.0
compatibility: 'Linux, Docker'
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- crowdsec
- firewall
- ids
- brute-force
- community
---
# CrowdSec
## Overview
CrowdSec is an open-source, community-driven security engine. It detects attacks (brute force, DDoS, scans) by analyzing logs and shares threat intelligence with the community. Think fail2ban but collaborative and modern.
## Instructions
### Step 1: Install
```bash
curl -s https://install.crowdsec.net | sudo bash
sudo apt install crowdsec crowdsec-firewall-bouncer-iptables
```
### Step 2: Configure Collections
```bash
# Install detection scenarios
sudo cscli collections install crowdsecurity/nginx
sudo cscli collections install crowdsecurity/sshd
sudo cscli collections install crowdsecurity/linux
sudo cscli collections list
```
### Step 3: Monitor
```bash
sudo cscli decisions list # blocked IPs
sudo cscli alerts list # alerts
sudo cscli metrics # statistics
```
### Step 4: Docker Deployment
```yaml
# docker-compose.yml — CrowdSec with Nginx bouncer
services:
crowdsec:
image: crowdsecurity/crowdsec
volumes:
- /var/log/nginx:/var/log/nginx:ro
- crowdsec_config:/etc/crowdsec
- crowdsec_data:/var/lib/crowdsec/data
environment:
COLLECTIONS: "crowdsecurity/nginx crowdsecurity/http-cve"
bouncer:
image: crowdsecurity/nginx-bouncer
environment:
CROWDSEC_BOUNCER_API_KEY: your-api-key
volumes:
crowdsec_config:
crowdsec_data:
```
## Guidelines
- Free and open-source. Community shares 10M+ threat signals.
- Bouncers enforce decisions — iptables, nginx, Cloudflare, AWS WAF.
- Lower false positives than fail2ban due to community-validated intelligence.
- Console (app.crowdsec.net) provides dashboard and threat visualization.
No comments yet. Be the first to comment!
Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.
Wire a service's OpenTelemetry output to Sematext Cloud. Walks through region, App-type, instrumentation flow (managed OTLP endpoint vs Sematext Agent), and signal selection (traces/metrics/logs), then produces the exact env-var block and points at a runnable reference example in this repo. Invoke when instrumenting a new app for Sematext.
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.
Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.
Publish oh-my-opencode to npm via GitHub Actions workflow. Argument: <patch|minor|major>. Triggers: publish, release, deploy, npm publish.