Skip to content

Setting up Pangolin on a VPS

Follow the setup instructions and run the installer which will set up the docker project for you

https://docs.fossorial.io/Getting%20Started/quick-install#1-downloading-and-running-the-installer

To view the list of current bouncers:

docker exec -it crowdsec cscli bouncers list

To view the metrics

docker exec crowdsec cscli metrics

View current bans

docker exec crowdsec cscli decisions list

View alerts

docker exec crowdsec cscli alerts list

Ban your IP temporarily

sudo docker exec crowdsec cscli decisions add --ip 100.77.47.82 --duration 1m --reason "test"

If you get banned and need to unban

sudo docker exec -it crowdsec cscli decisions delete --ip 100.77.47.82

List available scenarios

docker exec crowdsec cscli scenarios list
docker exec crowdsec cscli collections list

Inspect a scenario

docker exec crowdsec cscli scenarios inspect crowdsecurity/traefik-bf

Metrics Dashboard

You have two options

  • Leverage the Crowdsec Console and send data to your account (app.crowdsec.net)
  • Self host a dashboard stack including Prometheus and Metabase

After creating an account, you'll see instructions to Connect with the Console

docker exec -it crowdsec cscli console enroll -e context cmd...

Go to the Crowdsec console and accept. Now restart the container

docker compose restart crowdsec

Metabase Dashboard

To setup the meta base Dashboard, find the dashboard container from the docs: https://github.com/crowdsecurity/example-docker-compose/blob/main/basic/docker-compose.yml. You'll also need the Dockerfile from the crowdsec/dashboard directory. The default username and password can be found at the bottom of the readme here: https://github.com/crowdsecurity/example-docker-compose/blob/main/basic/README.md.

Comments