Help - Search - Members - Calendar
Full Version: Way to blacklist an IP range?
RV Products Forums > Server-Wide Spam and Virus Protection > General
Sergio
Hi,
I am new here and want to say hello to all!

Well, my question is, I have installed the BlackList method on my server, but it says that it only works for IPs 111.111.111.111, now my question is, is there a way to modify this:

CODE
##
# Reject email sent from mail server IP listed in the blacklist
##
[b]deny message = Host $sender_host_address is blocked[/b]
hosts = /usr/local/cpanel/base/eximacl/rv_server_ip_blacklist
delay = 3s

accept

in order for the ACL to look for "111.111.", blocking the full range from "111.111.0.0" to "111.111.255.255".

Thanks a lot for your answer.

Regards,
Sergio
pairote
You may try this ACL. I don't try it yet.

deny message = Host $sender_host_address is blocked[/b]
hosts = net-iplsearch;/usr/local/cpanel/base/eximacl/rv_server_ip_blacklist

And add 111.111.0.0/16 in /usr/local/cpanel/base/eximacl/rv_server_ip_blacklist, it should block the IP range from "111.111.0.0" to "111.111.255.255".
Sergio
QUOTE(pairote @ Mar 14 2006, 12:54 AM) *
You may try this ACL. I don't try it yet.

deny message = Host $sender_host_address is blocked[/b]
hosts = net-iplsearch;/usr/local/cpanel/base/eximacl/rv_server_ip_blacklist

And add 111.111.0.0/16 in /usr/local/cpanel/base/eximacl/rv_server_ip_blacklist, it should block the IP range from "111.111.0.0" to "111.111.255.255".

Thankyou Pairot!

I will add it into my ACL, one last question, if I just want to block the full last octect (from "111.111.111.0" to "111.111.111.255"), what do I have to write in my BlackList IPs for just that octed (111.111.111.0/24)?

Regards,
Sergio
pairote
Yes.
Sergio
QUOTE(pairote @ Mar 16 2006, 10:25 AM) *
Yes.

Thanks!
Sergio
This short note to tell you that the script is working perfectly. I have added some range IPs to my IP Blacklist file and it works.

BIG THANKS!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.