S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-28

CrowdSec 1.8.2 Ubuntu Install: Auto-Ban Hackers in Minutes

This companion guide follows CrowdSec 1.8.2 Ubuntu Install: Auto-Ban Hackers in Minutes, uploaded 2026-11-28. The video runs 83 seconds and walks the full setup on Ubuntu 24.04: add the official CrowdSec package repo, install the detection engine plus a firewall bouncer, register the bouncer, load the Linux and SSH rules, and prove a ban lands in the firewall with a live two-minute test. Use this page for the step order and the links while you watch.

Video claims and added research are kept separate below. Two disclosures from the video description carry over: the terminal scenes are simulated recreations of a real test run on a disposable Ubuntu 24.04 container that was destroyed after capture (any API key shown is masked), and the test ban targets the documentation address 203.0.113.10 with a two-minute expiry, so nothing routable is ever blocked. There is no channel research folder for this video, so this guide is built from the video description, the inspected video frames, and the official CrowdSec docs. Auto-subs were unavailable, so the description serves as the transcript-equivalent. No install step below was re-executed for this writeup — anything untested is marked as such.

Before you start

The video lists these prerequisites, and they match what the official Linux install docs assume — a machine you control, Ubuntu 24.04, and outbound internet access:

Keep the official install docs open beside this guide, and treat every step below as untested until you confirm it on your own box.

Add the official repo and install the engine

The video starts where the official docs start: the CrowdSec repo hosted on packagecloud. The recreated terminal frame shows the repo setup script being downloaded and executed, then the engine installed and its version confirmed:

curl -fsSL -o /tmp/cs-repo.sh https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh

sudo bash /tmp/cs-repo.sh

sudo apt install -y crowdsec

crowdsec -version

The frame shows the setup script reporting the repository is ready and the version command returning v1.8.2-debian-pragmatic-amd64-3d369d64, confirming the official 1.8.2 build is installed. These four commands are quoted verbatim from the inspected video frame — install noise was trimmed in the edit, so expect real download output on your own run. If your package manager ever offers a stale distro-provided build instead of the official one, check the pinning notes on the official install page rather than forcing anything.

Recreated terminal frame downloading the official packagecloud repo setup script, installing the engine, and confirming version 1.8.2
Recreated terminal frame downloading the official packagecloud repo setup script, installing the engine, and confirming version 1.8.2 (Still from the walkthrough video.)

Install and register the firewall bouncer

The video pairs the engine with a firewall bouncer so decisions become real packet drops. One caution the docs call out explicitly: the engine alone only detects — it bans nothing until a remediation component like this bouncer is installed and registered. The recreated frame shows the bouncer being registered against the engine with a generated API key (masked on screen), then both services confirmed active:

sudo cscli bouncers add homelab-firewall

sudo systemctl start crowdsec-firewall-bouncer

systemctl is-active crowdsec crowdsec-firewall-bouncer

The frame shows both units returning active, meaning the engine and the bouncer daemon are running and the decision stream can flow between them. These commands are quoted verbatim from the inspected video frame; the exact bouncer install package step is not visible in the frames, so install it per the current official Linux install docs and the bouncer notes in the CrowdSec GitHub repo. Untested step: confirm the bouncer service is active and that the engine lists it as registered before moving on — an unregistered bouncer fails silently while the engine keeps detecting with no enforcement.

Recreated terminal frame registering the firewall bouncer with a masked API key and confirming both services active
Recreated terminal frame registering the firewall bouncer with a masked API key and confirming both services active (Still from the walkthrough video.)

Load the Linux and SSH rules

Fresh out of the box the engine watches little, so the video loads the Linux system collection and the SSH collection — these tell CrowdSec which logs to parse and which brute-force patterns to flag. The collections live on the CrowdSec Hub, and the collection install commands are not visible in the inspected frames, so install them per the current official install docs and confirm the engine shows them as installed afterward. Untested step: collection names and install flags change across releases, so copy them from the docs page, not from any third-party snippet.

Prove it with a two-minute test ban

The video's payoff is a live proof round: issue a short-lived manual ban against the documentation address 203.0.113.10, show it appearing in the firewall ruleset as a drop, then let the two-minute expiry clear it. Using a documentation address matters — it can never belong to a real visitor, so the test cannot lock you or anyone else out. The exact decision commands are not visible in the inspected frames, so issue and list the test decision per the official install docs, verify the drop shows in your firewall ruleset, and confirm it disappears after expiry. Untested step: run this proof before exposing SSH to the internet, while you still have console access in case a typo targets the wrong address.

Check it stays working

After the test ban expires, the video verifies both services plus the decision stream so the box is left in a genuinely protecting state. The recreated frame shows the connected-bouncer proof: both units active, and the bouncer list showing a valid localhost registration with a recent pull timestamp:

systemctl is-active crowdsec crowdsec-firewall-bouncer

cscli bouncers list

The frame shows a registered bouncer at 127.0.0.1 marked valid with a last pull timestamp of 2026-11-28, meaning it authenticated with its API key and is pulling decisions. These two commands are quoted verbatim from the inspected video frame (the bouncer name is shortened on screen for privacy). Untested step: the reboot-survival check was not performed for this article, so confirm both units come back active after a reboot rather than assuming it.

Recreated terminal frame showing both services active and the registered bouncer listed as valid with a recent pull
Recreated terminal frame showing both services active and the registered bouncer listed as valid with a recent pull (Still from the walkthrough video.)

Troubleshooting notes

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat