> For the complete documentation index, see [llms.txt](https://www.trentbauer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.trentbauer.com/guides/installation-guides/crowdsec/proxmox.md).

# Proxmox

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Total Time Required</td><td>15 minutes</td></tr><tr><td>Difficulty</td><td>Easy</td></tr><tr><td>Required Knowledge</td><td>Crowdsec, Docker Compose</td></tr></tbody></table>

<img src="/files/Wt0dMIOVIApAhM4yPP29" alt="" class="gitbook-drawing">

## Prerequisites

* Crowdsec account
* [You have subscribed to atleast 1 block list](/guides/installation-guides/crowdsec.md#add-blocklists)
* [Your Crowdsec enrollment key](/guides/installation-guides/crowdsec.md#generate-your-enrol-key)

#### This stack monitors...

* SSH logs
* Sudo logs
* Proxmox logs
* Crowdsec blocklists
* Crowdsec whitelists

#### ... And changes

* Host firewall

{% hint style="warning" %}
Blocked IPs do not show in the Proxmox UI
{% endhint %}

## Docker Compose

```dotenv
# --- CrowdSec Engine Settings ---
CROWDSEC_ENROLL_KEY=
BOUNCER_KEY=
CROWDSEC_NAME=
CROWDSEC_PORT=8080

# --- Proxmox API key details ---
PVE_TOKEN_ID=
PVE_TOKEN_SECRET=
```

{% @github-files/github-code-block url="<https://github.com/trentnbauer/HomelabPublic/blob/main/docker-compose/crowdsec-pve.yml>" %}
