RV Products Forums: Way to blacklist an IP range? - RV Products Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Way to blacklist an IP range?

#1 User is offline   Sergio 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 281
  • Joined: 12-March 06

Posted 14 March 2006 - 01:17 AM

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
We do custom RVSB templates,examples at:
www.prueba.biz/motorcycle
www.a-la-venta.com/volvo
0

#2 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 14 March 2006 - 01:54 PM

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".
0

#3 User is offline   Sergio 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 281
  • Joined: 12-March 06

Posted 16 March 2006 - 10:24 PM

QUOTE(pairote @ Mar 14 2006, 12:54 AM) <{POST_SNAPBACK}>
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
We do custom RVSB templates,examples at:
www.prueba.biz/motorcycle
www.a-la-venta.com/volvo
0

#4 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 16 March 2006 - 11:25 PM

Yes.
0

#5 User is offline   Sergio 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 281
  • Joined: 12-March 06

Posted 17 March 2006 - 03:58 AM

QUOTE(pairote @ Mar 16 2006, 10:25 AM) <{POST_SNAPBACK}>
Yes.

Thanks!
We do custom RVSB templates,examples at:
www.prueba.biz/motorcycle
www.a-la-venta.com/volvo
0

#6 User is offline   Sergio 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 281
  • Joined: 12-March 06

Posted 18 March 2006 - 11:53 AM

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!
We do custom RVSB templates,examples at:
www.prueba.biz/motorcycle
www.a-la-venta.com/volvo
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic