Page 1 of 1
including additional external lists into csf.deny?
Posted: 16 Dec 2014, 06:34
by aww+
Is there any way currently to include additional ip blocklists into csf.deny via external files?
I know csf.blocklists can download lists, but I am talking about local files that csf would not touch other than to import them when csf.deny is loaded
Such lists would be treated as "do not delete" by default.
Wondering if I missed a feature somewhere or have to request it.
Re: including additional external lists into csf.deny?
Posted: 16 Dec 2014, 07:34
by aww+
Could I abuse the /etc/csf/csf.block.NAME files for this purpose?
If I make a /etc/csf/csf.block.example file will csf import it even if there isn't a rule in csf.blocklists for it?
Will it leave the file alone and never delete it?
Oh I see they moved to /var/lib/csf/csf.block.NAME
Re: including additional external lists into csf.deny?
Posted: 16 Dec 2014, 08:15
by ForumAdmin
If you use the following format in /etc/csf/csf.deny:
You can then list using the same format as for csf.deny in that file and they will never be cleared down.
Re: including additional external lists into csf.deny?
Posted: 17 Dec 2014, 05:38
by aww+
Oh that is absolutely perfect. Somehow missed that in the documentation. Thanks!
So to be clear they do NOT need the "do not delete" and that include line will never be removed and those external lists will never be trimmed.
It would probably be greedy to wish for them to support wildcards, ie.
Include /some/other/*.blocklists
Re: including additional external lists into csf.deny?
Posted: 17 Dec 2014, 08:13
by ForumAdmin
You do not need "do not delete". It does not do wildcards.
Re: including additional external lists into csf.deny?
Posted: 18 Dec 2014, 19:07
by aww+
One last question on this (sorry) do included files count against DENY_IP_LIMIT ?
I suspect not, but want to be certain.
Also discovered you can do includes inside included files, nice.
Re: including additional external lists into csf.deny?
Posted: 18 Dec 2014, 21:00
by ForumAdmin
They do not count against that limit.