Page 1 of 1

Make LFD deny IP with multi ports in one line

Posted: 10 Oct 2018, 16:07
by karnz
Hello,

Is it good to automatically deny IP with multi ports on the same service in one line instead of separate to two or three lines in case of LF_SELECT=1.

For example,
Normal:
tcp|in|d=25|s=1.1.1.1
tcp|in|d=465|s=1.1.1.1
tcp|in|d=587|s=1.1.1.1

To be:
tcp|in|d=25,465,587|s=1.1.1.1

This will help decrease number of line in csf.deny and not reach DENY_IP_LIMIT too fast.

Thanks.

Re: Make LFD deny IP with multi ports in one line

Posted: 18 Oct 2018, 09:57
by ForumAdmin
This functionality is already supported in csf. See the "Advanced Allow/Deny Filters" section of readme.txt (it's the last example).

Re: Make LFD deny IP with multi ports in one line

Posted: 19 Oct 2018, 07:28
by karnz
Yes it's supported but from my understanding it must be manually added.
Does it support for LFD when adding an IP?