Temporary blocks with `csf -t` ignore allow/ignore lists

Post Reply
imorandin
Junior Member
Posts: 3
Joined: 11 Oct 2023, 20:09

Temporary blocks with `csf -t` ignore allow/ignore lists

Post by imorandin »

Hi,

I've noticed a behavior in CSF where temporary blocks issued via `csf -t` do not seem to respect the allow or ignore lists. This led to some unintended blocks of IPs that were explicitly allowed or ignored, which was not expected.

To mitigate this, I implemented a workaround where I first attempt to add a permanent block. If that fails due to the IP being on an allow or ignore list, no block is applied at all. Otherwise, I remove the permanent block and apply a temporary one. This helps prevent false positives from being blocked temporarily.

I couldn't find any documentation confirming whether this behavior is intended or a bug, so I'm opening this discussion to clarify. Any insights would be appreciated.

Thanks!

Ignacio
Post Reply