crowdsec
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.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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
curl -s https://install.crowdsec.net | sudo bash
sudo apt install crowdsec crowdsec-firewall-bouncer-iptables
Step 2: Configure Collections
# 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
sudo cscli decisions list # blocked IPs
sudo cscli alerts list # alerts
sudo cscli metrics # statistics
Step 4: Docker Deployment
# 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.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!