В статье "Limiting Access to tcp wrapped Services With hosts.allow" описаны тонкости ограничения сервисов через /etc/hosts.allow файл в BSD системах.