Page 1 of 2

temporary block

Posted: 30 Jul 2007, 22:42
by arteryplanet
wondering where csf store the blocked ip´s when you have temporary ban enabled? csf.deny i guess is for the permanent and i thought should be in csf.tempban but i do not see any ip on this one when i receive the blocked email alert.

Any idea?

Thanx!

Posted: 06 Aug 2007, 09:25
by chirpy
Well, /etc/csf/csf.tempban is the file that temporary bans are stored until they've times out, afterwhich time they are removed from the file. Restarting csf and lfd should always clear any temporary banned IP's.

Posted: 06 Aug 2007, 16:33
by arteryplanet
Thanx Chirpy!

Posted: 27 Aug 2007, 13:17
by SevenSages
thanks for the info.
A simple restart of csf will clear temporary blocks on csf and lfd.

Saves me time trying to find those mysterious temp blocks, like when there were too many ftp connections, etc.

Posted: 12 Jan 2008, 14:16
by robocap
Hello
thanks
how may with run one command clean all entry ip in csf?

Thanks

Posted: 12 Jan 2008, 14:39
by robocap
mv -f /etc/csf/csf.deny /etc/csf/csf.deny.old
then
service csf restart

this is true?
or have more command?

Thanks

Posted: 17 Jan 2008, 16:50
by chirpy
That would remove all the permanently denied IP's, though it's not very subtle.

To remove temporary ip blocks, use the new:

csf -tf

add to temporary list from commandline

Posted: 24 Jan 2008, 09:36
by cemper
Hi,

we would need to utilize the temporary ban feature from the CLI,
but judging form our csf 3.02 help output there is no such command
to add it,

we would expect something like

-td [ip] [ttl in seconds]


Would it be possible to add this feature to an upcoming csf version?


Alternatively it'd be great to have a feature to remove from the blacklist,

i.e.


-dr [ip] remove an IP to be no more blocked from the /etc/csf.deny



thanks & best regards
Christoph C. Cemper

Posted: 25 Jan 2008, 17:18
by chirpy
The ability to remove temporary blocks is already in csf. The ability to add them manually is on the dev list.

Re:

Posted: 29 Oct 2013, 23:22
by cPanel
chirpy wrote:To remove temporary ip blocks, use the new:

csf -tf
But when you run

csf -tf

this remove ALL:

ALL temporary IP bans
and
ALL temporary IP allows

How remove only ONE IP from "temporary IP bans" ???

Thanks