How to force to reload a blocklist?

Post Reply
geekytone
Junior Member
Posts: 24
Joined: 04 Aug 2020, 13:58

How to force to reload a blocklist?

Post 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.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: How to force to reload a blocklist?

Post 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
geekytone
Junior Member
Posts: 24
Joined: 04 Aug 2020, 13:58

Re: How to force to reload a blocklist?

Post 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.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: How to force to reload a blocklist?

Post by Sergio »

You're welcome.
bulgin23
Junior Member
Posts: 25
Joined: 06 Apr 2018, 01:17

Re: How to force to reload a blocklist?

Post 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!
Post Reply