I am trying to change the remediation for crowdsecurity/nextcloud-bf from ban to captcha for certain IPs. I have HAProxy set up as a bouncer in front of NextCloud. I know captcha is working because I do sudo cscli decisions add --ip x.x.x.x --duration 5m --type captcha and get a captcha
To start with I'm trying a blanket ban > captcha. In my profiles.yaml.local I have
`---
name: nextcloud_bf
filters:
- Alert.Remediation == true && Alert.GetScope() == "IP" && Alert.GetScenario() in ["crowdsecurity/nextcloud-bf"]
decisions: - type: captcha
duration: 1h
notifications:- email_default
on_success: break
---`
- email_default
Then I try and test with:
sudo cscli decisions add --ip x.x.x.x --duration 5m --reason crowdsecurity/nextcloud-bf
I get banned and don't see a captcha. What am I doing wrong?