Security13 min read•Updated November 2026

VPS Hosting for CrowdSec

Quick answer

CrowdSec is an open-source intrusion prevention system: its security engine reads your logs (SSH, Nginx, application logs), detects malicious behaviour with scenarios such as brute force or web scanning, and creates decisions (for example ban this IP for four hours). Bouncers enforce those decisions in the firewall, Nginx or other components. Optionally it shares signals with the CrowdSec community and receives a community blocklist of IPs attacking others. Install the engine, add collections for your services, install a firewall bouncer and, for websites, an Nginx bouncer, then whitelist your own IPs and monitor decisions.

Every public server is scanned and attacked constantly: SSH password guessing, WordPress login floods, vulnerability scanners probing paths. Fail2ban has handled this for years by banning IPs that misbehave. CrowdSec takes a similar idea further with a modular design, a library of community scenarios, and a shared reputation network. This guide explains how it works and how to deploy it on a VPS.

How CrowdSec Works

logs ─▶ Security Engine (parsers ─▶ scenarios) ─▶ decisions (Local API)
                                                       │
                       bouncers ◀──────────────────────┘
       (firewall, Nginx, Cloudflare, application)
optional: share signals with the CrowdSec network, receive community blocklist
  • Acquisition: which log files or sources to read.
  • Parsers and scenarios: grouped in collections (for example Linux, SSH, Nginx, WordPress) that detect behaviours.
  • Decisions: bans or captchas with a duration, stored in the Local API.
  • Bouncers: components that enforce decisions.

Installation Outline

  1. Install the CrowdSec security engine from the official repository.
  2. Let it detect installed services, then install collections for SSH, Nginx and your applications.
  3. Install the firewall bouncer (nftables or iptables) to block decisions at the network level.
  4. For websites, add the Nginx bouncer to block or challenge at the HTTP layer.
  5. Whitelist your office, VPN and monitoring IPs so you never ban yourself.
  6. Optionally enroll in the CrowdSec console to view alerts and use blocklists.

CrowdSec vs Fail2ban

AspectCrowdSecFail2ban
DetectionScenarios with parsers, community libraryRegex filters per jail
EnforcementSeparate bouncers (firewall, web server, CDN)Actions in the same tool
Shared intelligenceOptional community blocklistNo built-in sharing
Multi-serverCentral Local API for several serversPer-server by default
SimplicityMore componentsVery simple for SSH protection

Fail2ban remains a fine choice for simple SSH protection (see our Fail2ban guide). CrowdSec suits servers with web applications and teams running several servers.

Protecting Web Applications

Web collections detect path scanning, brute-force logins, known exploit attempts and bad user agents in Nginx or Apache logs. The Nginx bouncer can show a captcha instead of blocking, which reduces harm from false positives. For sites behind a CDN, configure the real client IP from forwarded headers, or use a CDN bouncer, otherwise CrowdSec will see only CDN IPs.

Several Servers

Run one Local API and connect engines on other servers to it, so a ban triggered on one server applies to all. Bouncers on each server pull decisions from the central API. Protect the API with TLS and authentication and keep it on a private network.

Handling False Positives

  • Whitelist your own IPs, monitoring services and known partners.
  • Review decisions after enabling new collections.
  • Prefer captcha for web traffic where real users might be caught.
  • Use shorter ban durations at first and lengthen them once you trust the scenarios.

What CrowdSec Does Not Do

CrowdSec responds to behaviour visible in logs; it does not absorb volumetric DDoS floods, which need provider mitigation (see our firewall vs DDoS guide), and it is not a full SIEM (see our Wazuh guide).

Resource Use

The engine and bouncers use little CPU and memory, so they run comfortably on the same VPS as your applications. Very busy web servers with large logs need slightly more CPU for parsing.

Monitoring

Use the cscli metrics and decisions commands, or the console, to see what is detected and blocked. Export metrics to Prometheus if you already use it, and alert if the engine or bouncers stop running.

Example: A WordPress Agency

An agency hosting 40 WordPress sites on two VPS servers runs a central CrowdSec Local API with SSH, Nginx and WordPress collections. The firewall bouncer blocks scanners, the Nginx bouncer challenges suspicious login attempts with a captcha, and the agency's office and uptime monitor are whitelisted. Login-flood alerts dropped sharply within the first week.

Common Mistakes

  • Not whitelisting your own IPs.
  • Installing the engine without a bouncer, so nothing is blocked.
  • Seeing only CDN IPs because real client IPs are not configured.
  • Very long bans before checking for false positives.
  • Treating CrowdSec as DDoS protection.

In Short

CrowdSec detects attacks from your logs and blocks them through bouncers, optionally using community intelligence. Install collections for your services, add firewall and web bouncers, whitelist yourself, centralise decisions across servers and watch for false positives.

Custom Scenarios for Your Application

Community collections cover common services, but your own application may have endpoints attackers abuse: a password reset form, an OTP verification route or a coupon checker. Log those events with the client IP in a consistent format, write a parser that extracts the fields, and create a scenario that triggers on bursts (for example ten failed OTP checks in a minute from one IP). Test it against sample logs before enabling it, start with captcha rather than a hard ban, and review decisions for the first week.

Next Steps

Install the engine and firewall bouncer on one server, whitelist your IPs, add collections for SSH and your web server, watch decisions for a week, then add the web bouncer and connect your other servers to a central Local API. Security tools are only as good as the people and routines around them, so assign an owner, schedule regular reviews and record what you change and why. Start small on one server, measure the results for a couple of weeks, and only then roll the same configuration out to the rest of your infrastructure, adjusting it for each server's role. If you are unsure where to begin, protect the services that face the internet first, such as SSH, administrative panels and login pages, because they receive the most automated attacks and give the quickest visible improvement.

SkyRainCloud Plans for This Workload

CrowdSec uses little CPU and memory; it runs alongside your applications on any SkyRainCloud VPS, from 2 vCores / 8 GB upward.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is CrowdSec?
An open-source intrusion prevention system that detects attacks in logs and blocks them through bouncers.
What is a bouncer?
A component that enforces CrowdSec decisions, for example in the firewall or Nginx.
Is CrowdSec better than Fail2ban?
It is more modular and supports shared intelligence and multi-server setups; Fail2ban is simpler for basic SSH protection.
Does CrowdSec share my data?
Sharing signals with the community is optional; check the project's documentation for what is sent.
Can CrowdSec protect WordPress?
Yes, with web and WordPress collections and the Nginx bouncer.
How do I avoid banning myself?
Whitelist your office, VPN and monitoring IPs.
Does CrowdSec stop DDoS attacks?
No, volumetric floods need provider-level DDoS mitigation.
Can CrowdSec protect several servers together?
Yes, connect them to a central Local API so bans apply everywhere.
How much resource does CrowdSec use?
Little; it runs alongside your applications.
Which plan suits CrowdSec?
Any VPS; it adds minimal overhead to your existing plan.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning