.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Way to blacklist an IP range?
Sergio
post Mar 14 2006, 01:17 AM
Post #1


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



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


--------------------
Go to the top of the page
 
+Quote Post
pairote
post Mar 14 2006, 01:54 PM
Post #2


Administrator
***

Group: Admin
Posts: 4,252
Joined: 13-June 03
Member No.: 1



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".
Go to the top of the page
 
+Quote Post
Sergio
post Mar 16 2006, 10:24 PM
Post #3


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



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


--------------------
Go to the top of the page
 
+Quote Post
pairote
post Mar 16 2006, 11:25 PM
Post #4


Administrator
***

Group: Admin
Posts: 4,252
Joined: 13-June 03
Member No.: 1



Yes.
Go to the top of the page
 
+Quote Post
Sergio
post Mar 17 2006, 03:58 AM
Post #5


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



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

Thanks!


--------------------
Go to the top of the page
 
+Quote Post
Sergio
post Mar 18 2006, 11:53 AM
Post #6


Advanced Member
***

Group: Members
Posts: 274
Joined: 12-March 06
Member No.: 946



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!


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 3rd September 2010 - 12:04 AM