[brainstorming] crowdsec bouncer integration ideas #738
-
If you're running behind a cloudflare proxy, a firewall-based crowsec bouncer isn't going to be effective since all it sees are the cloudflare ips, zoraxy can extract the real IP from the request headers which is great. Anyway, I was thinking about ways to integrate a crowdsec bouncer with zoraxy and thought, since https://github.com/fbonalair/traefik-crowdsec-bouncer is apparently just some forwardauth middleware, and zoraxy supports forwardauth, could it be possible to use the traefik crowdsec bouncer with zoraxy? I had another idea as well that would work by editing the
Anyway, if anyone has any other ideas please leave them down below, I think proper crowdsec integration would be very helpful for a lot of people. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
On second thought, I'm going to play around more with using https://github.com/crowdsecurity/go-cs-bouncer to implement a dynamic capture plugin |
Beta Was this translation helpful? Give feedback.
-
potential issue(s):
I'm going to keep working on a prototype, but I foresee these being issues in the future |
Beta Was this translation helpful? Give feedback.
-
Okay, I haven't tested this at all, and it's my first time programming in Go, but here's my prototype: https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer |
Beta Was this translation helpful? Give feedback.
-
Update, after a decent bit of testing and tweaking things, https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer/tree/main is now functional. There are some caveats thought:
But, other than that, it is functional! |
Beta Was this translation helpful? Give feedback.
Update, after a decent bit of testing and tweaking things, https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer/tree/main is now functional.
There are some caveats thought:
LiveBouncer
, meaning it calls your local crowdsec api on every request. I do plan on changing this, but no ETA.