[LUAU] hosts.allow/deny

Myles Uyema myles at uyema.net
Mon Feb 1 11:04:48 PST 1999


On Mon, 1 Feb 1999, Dave Eason wrote:

> Can someone plz attach (or place it in the email) a sample hosts.allow and
> hosts.deny, I can't seem to get it working right.  One with several entries
> would be fine, thanks.

You can also read the hosts_options(5) and the hosts_access(5) man
pages for some of the explanations of the keywords and syntax.
-------------- next part --------------
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/netbase/portmapper.txt.gz for further information.
#
#
# 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.
#

# newly spawned processes get 'niced at level 4'
# SENDMAIL        ALLOW  *** COMPILED with -DTCPWRAPPERS
# FTP             ALLOW
# TALK            ALLOW
sendmail, in.proftpd, in.talkd, in.ntalkd: ALL: rfc931: nice 4:\
	banners /etc/banners: ALLOW

# TELNET          ALLOW
# IMAP            ALLOW
# POP3            ALLOW
in.telnetd, in.imapd, in.pop3d:\
	.uyema.net, 127.0.0., 10.0.0., .nether.net, .usfca.edu,\
	.aloha.net, .ucla.edu, .pixi.net, .amazon.com, .washington.edu,\
	.hawaii.edu:\
	banners /etc/banners: ALLOW

# RPC.MOUNTD      ALLOW
rpc.mountd: 10.0.0.,.uyema.net,127.0.0.1,localhost:\
	banners /etc/banners: keepalive: ALLOW

# RPC.MOUNTD       DENY
# POP3             DENY
# IMAP             DENY
rpc.mountd, in.pop3d, in.imapd, in.telnetd: ALL: rfc931 10\
	: banners /etc/banners/deny: DENY

portmap: ALL: DENY

sshd: .uyema.net: rfc931: keepalive: ALLOW
sshd: ALL: rfc931: nice 4: keepalive: ALLOW


More information about the LUAU mailing list