Page 1 of 1

How to force to reload a blocklist?

Posted: 06 Sep 2023, 10:06
by geekytone
Good morning,

We currently have a custom blocklist and we managed to implement a webui for asking an unblock. But as the blocklist can only be reloaded each 3600s, the user have to wait a maximum time of 3600s to get unblocked.

Is there a way to trigger a blocklist reload within CSF/LFD from SSH? In this way we'll be able to unblock instantly an user.

Re: How to force to reload a blocklist?

Posted: 06 Sep 2023, 15:00
by Sergio
yes, in CSF are the instructions for this:
# After making any changes to this file you must restart csf and then lfd
#
# If you want to redownload a blocklist you must first delete
# /var/lib/csf/csf.block.NAME and then restart csf and then lfd

Re: How to force to reload a blocklist?

Posted: 07 Sep 2023, 13:45
by geekytone
Sergio wrote: 06 Sep 2023, 15:00 yes, in CSF are the instructions for this:
Hello,

Thank you for your help, it works.

Re: How to force to reload a blocklist?

Posted: 07 Sep 2023, 16:56
by Sergio
You're welcome.

Re: How to force to reload a blocklist?

Posted: 31 Mar 2024, 22:10
by bulgin23
Confused could use some help.

The instructions state:
# After making any changes to this file you must restart csf and then lfd
#
# If you want to redownload a blocklist you must first delete
# /var/lib/csf/csf.block.NAME and then restart csf and then lfd
That's easy enough to understand but when I simply re-start csf/lfd without deleting anything beforehand, I'm seeing new timestampts on the files.

Does that mean they were or were not upgraded/reloaded?

I simply want to automate new lists downloads and it's hard fo find out how to this specific task.

Thank you!