Mac OS X Netinfo Config?


Is anyone familiar with configuring IP host baring/allowing using Netinfo?

Normally under GNU linux there is a etc/hosts.allow and etc/hosts.deny files that can be manually tweaked to
improve security, but I'm not sure how this is configured under MacOSX/Darwin/BSD netinfo.

I know that there is the Netinfo app, but I'm not sure where to look and which config files to modify.

I've looked at the man pages, but as usual they make no sense until you've actually worked out what you have to do.


As it happens, OS X does support /etc/hosts.allow and /etc/hosts.deny (since TCP wrappers is installed). If you have a look at /etc/inetd.conf, you'll see most things go through /usr/libexec/tcpd first. You just need to uncomment the proper line and HUP inetd.