Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2007
  • Last Modified:

Hosts.allow allow an IP range

i would like to open a range in my hosts.allow but i don't know how to do it.
i know you can specify a single adress with

ALL: 192.168.0.1

but i would like to have the whole range of

192.168.0.1 to 19.168.0.127

how do i do that in hosts.allow
0
Mr-sark
Asked:
Mr-sark
1 Solution
 
jlevieCommented:
The syntax of the hosts.allow/hosts.deny files allows subnet declarations to be used, but not a range. In this case the desired IP range is a subnet and you could use:

ALL:  192.168.0.0/255.255.255.128
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now