#1  
Old 18th June 2007, 12:58
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default How to block an IP-range

I know there is a way to block a specific IP-address.
It can be done with:

route add -host 12.34.567.89 reject

Is it also possible to block a whole range like for example 12.34.567.** and how can it be done?
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
Sponsored Links
  #2  
Old 18th June 2007, 13:17
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,035
Thanks: 267
Thanked 153 Times in 133 Posts
Default

How about using the hosts.deny?

More info with: man hosts.deny
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
The Following User Says Thank You to edge For This Useful Post:
Hans (18th June 2007)
  #3  
Old 19th June 2007, 13:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I'm not sure about the route command, but did you take a look at
Code:
man route
? Maybe they have some examples there.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 19th June 2007, 19:23
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
 
Default

I will try one and the other. Thanks for your reply.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't make work joomla + sef + .htaccess bochenn General 9 4th April 2007 13:47
how to block client mail access? Ovidiu General 2 8th October 2006 23:28
group block limit reached. main3 Server Operation 1 21st August 2006 16:37
How to block website and it's mail krishol Installation/Configuration 6 23rd July 2006 23:26
How do I block an IP address from SSH? Jcorrea920 Installation/Configuration 2 19th March 2006 05:05


All times are GMT +2. The time now is 13:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.