New to crowdsec - conntrack full after installing crowdsec
Uh, hi. I'm pretty new to crowdsec in general, so please pardon me if this is a stupid question. I recently just installed crowdsec replacing fail2ban on my 2 servers, after installing it, I seem to be starting to get some alert from netdata that the conntrack limit is at 100%, which I presume is a bad thing. I'm wondering if there's any config from crowdsec that I can use to help with this? Thanks
6 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 ❤️
I suggest bumping conntrack limit and decreasing some tcp settings especially for closing connections due to timeout, because defaults are pretty low for current hardware capabilities
Uh, can I know what limit I should set and what settings I should change..? I'm pretty new to this 😅
https://gist.github.com/bouroo/bc52ad58a6e75d44e5235b229e9ca988#file-80-k8s-conf for a start of reading more about those settings
generally just increate conntrack max and buckets and see how it goes
https://gist.github.com/hrchu/2eb6388408de3df59962#file-99-network-tuning-conf-L74 and this section about tcp timeouts
anything else can be left as is and see how it goes
Uh, for this, what section should I use? I see that there's section for Kernel 2.4 or Kernel 3, I'm all the way up Kernel 6.x so, I should use the section for Kernel 3.x right?
uname -r
should return kernel version
you don't need to adjust all of it
also you can check it via systctl -a |grep conntrack
to see which values you can set, it's probably net.netfilter unless you are on some ultra ancient hardware/os