How to block an IP-range

Discussion in 'Server Operation' started by Hans, Jun 18, 2007.

  1. Hans

    Hans Moderator Moderator

    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?
     
  2. edge

    edge Active Member Moderator

    How about using the hosts.deny?

    More info with: man hosts.deny
     
  3. falko

    falko Super Moderator Howtoforge Staff

    I'm not sure about the route command, but did you take a look at
    Code:
    man route
    ? Maybe they have some examples there.
     
  4. Hans

    Hans Moderator Moderator

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

Share This Page