Ha Proxy Bouncer Setup/Install

Hi All,

I am finding it very difficult to get Ha Proxy Bouncer service working. I have tried via docker compose and also through some other ways recommended by chat gpt. Also found this guide Setup & Configure CrowdSec HAProxy Bouncer | Sifr Moja

I have the agent installed and my haproxy config has been adjusted but I can’t seem to get the actual bouncer to start or even run.

Any guidance or guides to recommend would be appriciated.

Thanks.

Have a feeling it might be because of this HAProxy bouncer - stick-table not working - #4 by timor

going to try rolling back to see if this is just a version issue and will report back

rolled back to the version of lua and haproxy that is supported for the crowdsec bouncer, but still not working. When I add a remote ip into “cscli decisions add -i [ip add] -t ban -d 5m” lists the ip but doesnt block on the remote end and doesnt show up in the haproxy frontend table.

What is it, that is not working?
The table mentioned is only relevant to captcha. Your are using type ban, which should work fine.
Have you checked, that haproxy and crowdsec are connected?
Here a few hints where to check:

  • cscli bouncers list haproxy should appear here
  • Turn on debug log level in haproxy and check /var/log/harpoxy.log for Add decision [ip add]
  • Check the logs at /var/log/crowdsec_api.log and /var/log/crowdsec.log

Edit:
A few things to also consider in gernal:

  • It is helpful if you provide configs e.g. crowdsec-haproxy-bouncer.conf
  • The current haproxy plugin will be replaced because it is known to have a few problems.
  • If you need quick awnsers to your problems consider joining the discord. Usually, people will awnser there a lot faster than here.

Leo