Lion Cipher Lab

Set up CrowdSec, the collaborative successor to Fail2Ban

Why it matters

Fail2Ban proved a durable pattern: watch a log, match a failure signature, ban the source. CrowdSec is the current-generation take on that idea, and it is worth learning because of three deliberate changes. First, it splits the job in two — a local engine parses logs and decides who is malicious, while separate 'bouncers' do the actual blocking (at the firewall, in a web server, at a CDN). That separation lets one detection brain drive many different enforcement points. Second, its detection logic ('scenarios') and log parsers ship as versioned, community-maintained packages from a central…

What you'll learn

Steps in this lab

  1. What CrowdSec is, and how it differs from Fail2Ban
  2. Install CrowdSec
  3. The vocabulary: parsers, scenarios, collections, bouncers, and the Hub
  4. See what is already watching your logs
  5. Enable the SSH collection from the Hub
  6. Add a bouncer so decisions actually block traffic
  7. Read decisions and metrics with cscli
  8. CrowdSec or Fail2Ban? My take

Open the full interactive lab →