alsoallow - is there an alsodeny

Post Reply
Antonmo
Junior Member
Posts: 3
Joined: 11 Jul 2014, 15:57

alsoallow - is there an alsodeny

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

Re: alsoallow - is there an alsodeny

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