/etc/hosts.deny file

  • Hosts Deny File
      # hosts.deny    This file describes the names of the hosts which are
      #               *not* allowed to use the local INET services, as decided
      #               by the '/usr/sbin/tcpd' server.
      #
      # deny all by default, only allowing hosts or domains listed in hosts.allow.

      ALL: ALL: deny
  •  Hosts Allow File
      # hosts.allow   This file describes the names of the hosts which are
      #               allowed to use the local INET services, as decided
      #               by the '/usr/sbin/tcpd' server.
      #
      # Only allow ssh connections from 123.456 domain.
       sshd: 123.456. :allow
       All: All: deny

		
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s