Adding SPAMHAUS DROP support

Post Reply
mbrando
Junior Member
Posts: 15
Joined: 16 Oct 2009, 02:55

Adding SPAMHAUS DROP support

Post by mbrando »

Hello,

I spoke with my Data center about adding SPAMHAUS DROP support to my CSF for my server. They added the following to my /etc/csf/csf.conf

Placed after GLOBAL_DYNDNS_IGNORE

Code: Select all

# Enable IP range blocking using the Spamhaus DROP List at
# [You are not currently authorised to post url links]
# To enable this feature, set the following to the interval in seconds that you
# want the block list updated. The list is reasonably static during the length
# of a day, so it would be appropriate to only update once every 24 hours, so
# a value of "86400" is recommended
LF_SPAMHAUS = "86400"

# The Spamhaus DROP List URL. If you change this to something else be sure it
# is in the same format as the drop list
LF_SPAMHAUS_URL = "[You are not currently authorised to post url links]"
Restart CSF+LFD via WHM

It shows up, however, It does not survive CSF updates. After updating CSF this entry in the /etc/csf/csf.conf is no longer there. Yes I see CSF backups the previous conf file.

However, one, how can I confirm this is working once entered into the /etc/csf/csf.conf and two why does it now survive updates?

- Mike
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: Adding SPAMHAUS DROP support

Post by ForumAdmin »

Those settings no longer work in csf. To add drop lists you need to edit /etc/csf/csf.blocklists and comment out which lists you want and then restart csf and then lfd.
mbrando
Junior Member
Posts: 15
Joined: 16 Oct 2009, 02:55

Re: Adding SPAMHAUS DROP support

Post by mbrando »

Hello,

Ah ha! old directives. Thank you.

- Mike
Post Reply