crowdsec nginx bouncer without IP

Hello CrowSec community, I'm new to CrowdSec. I am running an nginx reverse proxy serving a demo web app in a docker container. My dockerized nginx container is running with ports 80 and 443. I installed crowdsec and related remediation components (bouncers) baremetal. Seems that it is working, however, I noticed after running the command sudo cscli bouncers list See attached image. 1) My crowdsec-nginx-bouncer doesn't have an IP assigned. Is it because I have nginx running in a container ? PS: To install sudo apt install crowdsec-nginx-bouncer, nginx was installed. After I rebooted, it was clashing with my nginx container. So, I disabled baremetal nginx
No description
No description
4 Replies
CrowdSec
CrowdSec2w ago
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type /unresolve
© Created By WhyAydan for CrowdSec ❤️
iiamloz
iiamloz2w ago
If you want to use the remediation within a container, then you have to build a custom nginx image, or simply use openresty as the base image (reason is openresty comes with nginx setup with Lua which is needed for this remediation) Since you disabled the bare metal remediation thats why it doesnt have a IP address since using the apt package doesnt know you want to use it within a container hence you need a custom built image.
freddy
freddyOP7d ago
thanks. i will switch to the container procedure
CrowdSec
CrowdSec7d ago
Resolving crowdsec nginx bouncer without IP This has now been resolved. If you think this is a mistake please run /unresolve

Did you find this page helpful?