Page 1 of 1

alsoallow - is there an alsodeny

Posted: 11 Jul 2014, 18:40
by Antonmo
Hi,

I can see that there is an option for Include /etc/csf/csf.alsoallow

Is there a similat "alsodeny" or "alsoblock"?

I would like to set up a facility to automatically update a list of blocked IP address (from Wizcrafts).

Perhaps I am going about this the wrong way. Does anybody have any suggestions for a better approach? What is the easiest, most-automated way to add block lists to iptables?

I look forward to hearing people's ideas.

Thanks,

Re: alsoallow - is there an alsodeny

Posted: 17 Jul 2014, 20:09
by Sergio
The easy way of doing this is to save the blocked IPs list in a txt file in your server, then add that file to CSF via "LFD BLOCKLISTS", adding a new line like as an example:

# My Blocked IPs
# IPs downloaded from http://www.wizcrafts.net
MYLIST|86400|0|http://www.YOUR-SERVER.com/myblockedips.txt

Replace YOUR-SERVER for the exact URL where you saved the list.

Sergio