Help needed for setting up CrowdSec on Proxmox LXCs

Well it is working. I used that one: Setting up A Multi-Server Security Engine Installation

First, there are missing commands:

sudo -u postgres psql -c 'GRANT all ON SCHEMA public TO db_user' db_name

at least on debian 12.8.

and this one:

mv /etc/crowdsec/local_api_credentials.yaml /etc/crowdsec/local_api_credentials.yaml.bak

before evoking:

cscli machines add -a --force

Second, it should be indeed

cscli machines add -a --force

and not

cscli machines add -a –force

I have now installed:

  • LAPI (Proxmox LXC Container)
  • Caddy parser and bouncer (Proxmox LXC Container)
  • Vaultwarden parser (Proxmox LXC Container)
  • NextcloudPi parser (Proxmox LXC Container)
  • postfix parser and firewall bouncer (Proxmox LXC Container MTA)
  • dovecot parcer and firewall bouncer (Proxmox LXC Container MTA)
  • opnsense wireguard parser and opnsense bouncer on n100 native
  • wordpress parser and bouncer (external VPS)

All native w/o docker or so. Now testing and evaluating…

BTW.
Caddy compiled with:

xcaddy build \
    --with github.com/hslatman/caddy-crowdsec-bouncer/crowdsec