IPSET cc_us table getting very large?
Posted: 07 Feb 2022, 15:05
Hello,
Over the weekend my servers all failed to load/reload csf using the csf -r command.
It appears that the cc_us ip table has gotten massive all of the sudden?
It was failing with:
and then just hangs here.
So i went into csf.conf and tried changing:
When i run csf -r now, it gets to the same point, and doesn't error out, but just hangs here. waited 5 minutes which should be long enough to load seeing as previously this took no more than a second or 2.
Can anyone provide guidance here?
Regards,
Dan
Over the weekend my servers all failed to load/reload csf using the csf -r command.
It appears that the cc_us ip table has gotten massive all of the sudden?
It was failing with:
Code: Select all
csf: IPSET loading set cc_us with 79025 entries
IPSET: [ipset v7.1: Error in line 65537: Hash is full, cannot add more elements]
So i went into csf.conf and tried changing:
Code: Select all
# The following sets the hashsize for ipset sets, which must be a power of 2.
#
# Note: Increasing this value will consume more memory for all sets
# Default: "1024"
LF_IPSET_HASHSIZE = "2048" #changed this to 2048
# The following sets the maxelem for ipset sets.
#
# Note: Increasing this value will consume more memory for all sets
# Default: "65536"
LF_IPSET_MAXELEM = "85000" #changed this to 85000
Can anyone provide guidance here?
Regards,
Dan