summaryrefslogtreecommitdiffstats
path: root/etc/hosts.allow
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1999-04-08 19:08:53 +0000
committermarkm <markm@FreeBSD.org>1999-04-08 19:08:53 +0000
commitdbf9f08c56b2396ca30e53bddc5ed25b05b79690 (patch)
treef6500dad8cb08cf48fc02a06e49345d664c657f1 /etc/hosts.allow
parentf50a876b16737306b39c1cf6c825dcc14866d321 (diff)
downloadFreeBSD-src-dbf9f08c56b2396ca30e53bddc5ed25b05b79690.zip
FreeBSD-src-dbf9f08c56b2396ca30e53bddc5ed25b05b79690.tar.gz
Use more politically correct examples, and expand the examples a bit.
Diffstat (limited to 'etc/hosts.allow')
-rw-r--r--etc/hosts.allow20
1 files changed, 15 insertions, 5 deletions
diff --git a/etc/hosts.allow b/etc/hosts.allow
index b421ab1..529175f 100644
--- a/etc/hosts.allow
+++ b/etc/hosts.allow
@@ -1,6 +1,6 @@
#
# hosts.allow access control file for "tcp wrapped" apps.
-# $Id$
+# $Id: hosts.allow,v 1.1 1999/03/28 10:47:26 markm Exp $
#
# NOTE: The hosts.deny file is not longer used. Instead, put both 'allow'
# and 'deny' rules in the hosts.allow file.
@@ -12,26 +12,36 @@
# Start by allowing everything (this prevents the rest of the file
# from working, so remove it when you need protection).
+# The rules here work on a "First match wins" basis.
ALL : ALL : allow
# Wrapping sshd(8) is not normally a good idea, but if you
# need to do it, here's how
-#sshd : .evil.hacker.org : deny
+#sshd : .evil.cracker.example.com : deny
# Prevent those with no reverse DNS from connecting.
ALL : PARANOID : RFC931 20 : deny
# Allow anything from localhost
ALL : localhost : allow
+ALL : my.machine.example.com : allow
# Sendmail can help protect you against spammers and relay-rapers
sendmail : localhost : allow
-sendmail : .mydomain.com : allow
-sendmail : .evil.spamnest.org : deny
+sendmail : .nice.guy.example.com : allow
+sendmail : .evil.cracker.example.com : deny
sendmail : ALL : allow
+# Portmapper is used for all RPC services; protect your NFS!
+portmap : localhost : allow
+portmap : .nice.guy.example.com : allow
+portmap : .evil.cracker.example.com : deny
+portmap : ALL : allow
+
# Provide a small amount of protection for ftpd
-ftpd : .warez.d00d.org : deny
+ftpd : localhost : allow
+ftpd : .nice.guy.example.com : allow
+ftpd : .evil.cracker.example.com : deny
ftpd : ALL : allow
# You need to be clever with finger; do _not_ backfinger!! You can easily
OpenPOWER on IntegriCloud