#1  
Old 18th June 2007, 13:58
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 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 | Managed Hosting
Reply With Quote
Sponsored Links
  #2  
Old 18th June 2007, 14:17
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,042
Thanks: 269
Thanked 154 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, 14:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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, 20:23
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
 
Default

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

MrHostman | 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 14:47
how to block client mail access? Ovidiu General 2 9th October 2006 00:28
group block limit reached. main3 Server Operation 1 21st August 2006 17:37
How to block website and it's mail krishol Installation/Configuration 6 24th July 2006 00:26
How do I block an IP address from SSH? Jcorrea920 Installation/Configuration 2 19th March 2006 06:05


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


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