CrowdSec Integration
Pipe the ipinsights.io blocklist into your local CrowdSec LAPI so every bouncer you have deployed picks it up automatically.
Overview
CrowdSec turns collaborative threat intelligence into local enforcement through its Local API (LAPI) and bouncers. Feeding the ipinsights.io list directly into the LAPI means every bouncer — firewall, NGINX, Cloudflare, Traefik, AWS WAF — automatically inherits the same blocking decisions, with no per-tool configuration.
The recommended approach is a small systemd timer that pulls
https://ipinsights.io/downloads/blocklist.txt every hour and re-imports
it into CrowdSec with a fixed decision origin tag — so the entries can be cleanly removed and
replaced on each refresh.
Prerequisites
- CrowdSec 1.5+ running locally with at least one bouncer attached
curlavailable on the host- Outbound HTTPS to
https://ipinsights.io
Step 1 — Create the Sync Script
Create /usr/local/bin/ipinsights-crowdsec-sync.sh:
Step 2 — Schedule the Sync
Install a systemd timer at /etc/systemd/system/ipinsights-sync.service:
And the timer at /etc/systemd/system/ipinsights-sync.timer:
Step 3 — Verify
Any bouncer attached to this LAPI will now apply the decisions on its next poll (usually within
10 seconds). To remove the feed: sudo cscli decisions delete --origin ipinsights
and disable the timer.
Troubleshooting
- Decisions not appearing — run
journalctl -u ipinsights-sync.servicefor the most recent script output. - Bouncer not applying decisions — confirm the bouncer is attached to the
same LAPI:
cscli bouncers list. - Conflicting decisions — the
--origintag isolates IP Insights decisions from CrowdSec community / scenario-based ones; you can safely run both.
API Key: Not required for this integration — the public blocklist is open. Grab one from your profile page if you want to enrich CrowdSec scenarios via the lookup API as well.
Request Higher API Limit
Running a high-volume CrowdSec deployment? If the default rate limit isn't enough for your environment, submit a request below and we'll review it.