Way to blacklist an IP range? |
![]() ![]() |
Way to blacklist an IP range? |
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 -------------------- |
|
|
|
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". |
|
|
|
Mar 16 2006, 10:24 PM
Post
#3
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Members Posts: 274 Joined: 12-March 06 Member No.: 946 |
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 -------------------- |
|
|
|
Mar 16 2006, 11:25 PM
Post
#4
|
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 4,252 Joined: 13-June 03 Member No.: 1 |
Yes.
|
|
|
|
Mar 17 2006, 03:58 AM
Post
#5
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Members Posts: 274 Joined: 12-March 06 Member No.: 946 |
-------------------- |
|
|
|
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! -------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 3rd September 2010 - 12:04 AM |