home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120305.etc.tar.gz / bradford.20120305.etc.tar / etc / hosts.allow < prev    next >
Text File  |  2006-04-22  |  3KB  |  64 lines

  1. # /etc/hosts.allow
  2. # See 'man tcpd' and 'man 5 hosts_access' for a detailed description
  3. # of /etc/hosts.allow and /etc/hosts.deny.
  4. #
  5. # short overview about daemons and servers that are built with
  6. # tcp_wrappers support:
  7. # package name  |       daemon path     |       token
  8. # ----------------------------------------------------------------------------
  9. # ssh, openssh  |  /usr/sbin/sshd       |  sshd, sshd-fwd-x11, sshd-fwd-<port>
  10. # quota         | /usr/sbin/rpc.rquotad |  rquotad
  11. # tftpd         | /usr/sbin/in.tftpd    |  in.tftpd
  12. # portmap       |  /sbin/portmap        |  portmap
  13. #                       The portmapper does not verify against hostnames
  14. #                       to prevent hangs. It only checks non-local addresses.
  15. # (kernel nfs server)
  16. # nfs-utils     |  /usr/sbin/rpc.mountd |  mountd
  17. # nfs-utils     |  /sbin/rpc.statd      |  statd
  18. #
  19. # (unfsd, userspace nfs server)
  20. # nfs-server    |  /usr/sbin/rpc.mountd |  rpc.mountd
  21. # nfs-server    |  /usr/sbin/rpc.ugidd  |  rpc.ugidd
  22. #
  23. # (printing services)
  24. # lprng         |  /usr/sbin/lpd        |  lpd
  25. # cups          |  /usr/sbin/cupsd      |  cupsd
  26. #                       The cupsd server daemon reports to the cups
  27. #                       error logs, not to the syslog(3) facility.
  28. #
  29. # (Uniterrupted Power Supply Software)
  30. # apcupsd       |  /sbin/apcupsd        |  apcupsd
  31. # apcupsd       |  /sbin/apcnisd        |  apcnisd
  32. # All of the other network servers such as samba, apache or X, have their own
  33. # access control scheme that should be used instead.
  34. #
  35. # In addition to the services above, the services that are started on request 
  36. # by inetd or xinetd use tcpd to "wrap" the network connection. tcpd uses
  37. # the last component of the server pathname as a token to match a service in
  38. # /etc/hosts.{allow,deny}. See the file /etc/inetd.conf for the token names.
  39. # The following examples work when uncommented:
  40. #
  41. #
  42. # Example 1: Fire up a mail to the admin if a connection to the printer daemon
  43. # has been made from host foo.bar.com, but simply deny all others:
  44. # lpd : foo.bar.com : spawn /bin/echo "%h printer access" | \
  45. #                               mail -s "tcp_wrappers on %H" root
  46. #
  47. # Example 2: grant access from local net, reject with message from elsewhere.
  48. # in.telnetd : ALL EXCEPT LOCAL : ALLOW
  49. # in.telnetd : ALL : \
  50. #    twist /bin/echo -e "\n\raccess from %h declined.\n\rGo away.";sleep 2
  51. #
  52. #
  53. # Example 3: run a different instance of rsyncd if the connection comes 
  54. #            from network 172.20.0.0/24, but regular for others:
  55. # rsyncd : 172.20.0.0/255.255.255.0 : twist /usr/local/sbin/my_rsyncd-script
  56. # rsyncd : ALL : ALLOW
  57. #
  58.  
  59.  
  60.