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