firewall bouncer stops grabbing new decisions after a while
I've been having some intermittent issues with the CrowdSec iptables bouncer where it'll stop bouncing after a few days. When I restart the bouncer everything works fine, but after a while it just stops bouncing. I don't see any errors in the log files that give a hint as to what might be the problem and I can clearly see that it's querying the LAPI with no problem, so the issue has to be with the bouncer itself.
this is my config file:
8 Replies
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command
/resolve
or press the green resolve button below.Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
© Created By WhyAydan for CrowdSec ❤️
CrowdSec LAPI version:
Bouncer version:
OS: Ubuntu 24.04 LTS
I do have some hardened kernel parameters but I doubt this is the issue as I've had them hardened for a long time, the firewall bouncer used to work fine but I guess something has changed. Posting them here just in case:
Any messages in kernel log or dmesg?
no
Do you have anything that would flush/remove/update/.... the firewall rules ?
Do you still see the rules when the bouncer seems to be broken ?
no, the only thing touching iptables is the firewall bouncer. I manage my custom firewall rules within the hypervisor which doesn't touch anything inside the VM
I'm pretty sure it's still there but I'll have to double check. I think the issue is somehow related to adding new decisions if I go by what's in the logs
If we cannot add an ip to the set, you should have errors in your logs (the most common way this can happen is if you have more decisions than the configured set size).
But If you don't see anything in your logs, I fear you'll need to run the bouncer in debug mode until it happens again
ugh, couldn't reproduce for 5 days. I think it's fixed and then this issue pops up a bit later
After a bit of testing, and reproducing the issue. I can find absolutely nothing of interest in the debug log, I can see the bouncer is able to query the LAPI just fine.
I'm wondering if this could happen if the LAPI is being overloaded, I'm currently experiencing issues because of the performance issues when importing too many blocklists. I'm looking at ways to reduce the load atm