permanent deny list?

Post Reply
robm
Junior Member
Posts: 33
Joined: 20 Jan 2007, 20:44

permanent deny list?

Post by robm »

Currently, after XXX entries in the deny file, csf automatically starts removing the oldest entries. Is there a way to have a list of permanent deny entries that never get auto removed? Is this the global deny list, or would this be a new feature?

Rob
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

Post by ckh »

DENY_IP_LIMIT
# Limit the number of IP's kept in the /etc/csf/csf.deny file. This can be
# important as a large number of IP addresses create a large number of iptables
# rules (4 times the number of IP's) which can cause problems on some systems
# where either the the number of iptables entries has been limited (esp VPS's)
# or where resources are limited. This can result in slow network performance,
# or, in the case of iptables entry limits, can prevent your server from
# booting as not all the required iptables chain settings will be correctly
# configured. The value set here is the maximum number of IPs/CIDRs allowed
# if the limit is reached, the entries will be rotated so that the oldest
# entries (i.e. the ones at the top) will be removed and the latest is added.
# The limit is only checked when using csf -d (which is what lfd also uses)
# Set to 0 to disable limiting
Is that what you are looking for?
robm
Junior Member
Posts: 33
Joined: 20 Jan 2007, 20:44

Post by robm »

Not exactly. I understand that setting, and use it as well. But we have a list of permanent deny rules we need loaded and never deleted even when the limit is reached. I guess the global deny is the solution, but I'm just confirming that is true, that a global deny list will never be removed even if the deny_ip_limit is reached. Thanks.

Rob
Sergio
Junior Member
Posts: 1720
Joined: 12 Dec 2006, 14:56

Post by Sergio »

robm wrote:Not exactly. I understand that setting, and use it as well. But we have a list of permanent deny rules we need loaded and never deleted even when the limit is reached. I guess the global deny is the solution, but I'm just confirming that is true, that a global deny list will never be removed even if the deny_ip_limit is reached. Thanks.

Rob
Yes, use the GLOBAL DENY option and that IPs will not be delisted until you erase them from the file.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

That's the only way at present. Lines are automatically rotated off the list by DENY_IP_LIMIT
Post Reply