Find the answer to your Linux question:
Results 1 to 2 of 2
Does anyone know how I can use hosts.deny to block the following two IP ranges from accessing my system? All 10.1.1.15 - 10.1.1.20 All 192.168.1.35 - 192.168.1.45 No theology crusades ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Aug 2011
    Posts
    43

    Blocking IP ranges with host.deny


    Does anyone know how I can use hosts.deny to block the following two IP ranges from accessing my system?

    All 10.1.1.15 - 10.1.1.20
    All 192.168.1.35 - 192.168.1.45
    No theology crusades please.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    It is my understanding that you must list all ip address you want to deny individually either on one line separated by commas or one per line. A range will not work.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •