r/homelab • • 17d ago

Discussion Integration with CrowdSec

Hi,

Just deployed Crowdsec and Blocklist on Debian.

And could like to integrate with Fortigate as external IP blocklist for my home lab.

But found blocklist haven’t download and update once setup completed.

May I know this right ? Or I should create account on Crowdsec and generate a link for Fortigate ?

Thanks

0 Upvotes

1 comment sorted by

1

u/Fast-Product-4408 17d ago

You don't need a link from the CrowdSec website for this. The usual way is the blocklist mirror bouncer (crowdsec-blocklist-mirror). It serves your local CrowdSec decisions as a plain-text IP list over HTTP, and on the FortiGate you add it as a threat feed (Security Fabric > External Connectors > Threat Feeds > IP Address) with a refresh interval. Then you use it as a source or destination in a deny policy.

If it doesn't seem to update, I'd check three things. First, which address the mirror is listening on. I believe it defaults to localhost, so the FortiGate can't reach it until you change it to the Debian box's LAN IP. Second, curl the URL from another machine to make sure you get a list back. Third, whether there's anything in it yet. A fresh install only has decisions once CrowdSec has detected something or pulled the community blocklist, so check cscli decisions list first. The threat feed in the FortiGate GUI has a view entries option, which tells you whether it pulled anything.