How block some IP´s

This is the area for a general support questions, discussions and information that you can read and share. Post your experiences, stats and tricks and tips that are not covered elsewhere. Remember, for questions please search the FAQ first, as your question may already be answered.

Moderators: wizard, magicspam

Post Reply
m0rpheu5
Posts: 22
Joined: Mon Mar 29, 2010 7:14 am

How block some IP´s

Post by m0rpheu5 » Thu Sep 02, 2010 7:18 am

Hello guys, i need to block the IP´s 66.151.129.* how can i do that without add one per one.

Thanks

magicspam
Posts: 1563
Joined: Tue Oct 28, 2008 2:27 pm

Re: How block some IP´s

Post by magicspam » Thu Sep 02, 2010 11:51 am

At this time bulk IP blocking (or exemption) support is not supported. The core reason is that there are many ways to specify ranges (be it CIDR notation, netmasks, dash dot ranges...etc) and is very very easy for one to make a wrong entry that could cause damage / harm to production services.

This stated... there are several 'IP' address generator scripts available out there. You could use one of these scripts to generate a file with the individual IP's. From there, simply append the contents of said file to the MagicSpam control file which is handily stored in plain text for these exact purposes:

/etc/magic-spam/blocked_ips
-- MagicSpam Support Team --

Post Reply

Return to “General Discussions and Support Questions”

Who is online

Users browsing this forum: No registered users and 11 guests