hosts.allow Question

I need to add a IP block to my hosts.allow file but can't figure out what I need to enter. Man and a search gives me a lot of information, but none that takes the formats below. They all want the IP/Mask format or wildcards.

How would I convert 198.168.158.1/24 to something that hosts.allow understands.

How would I convert 198.168.0.0/16 to something that hosts.allow understands.


Thanks for the help.

 

 

 

 

Top