Deleted Added
full compact
hosts.allow (57284) hosts.allow (58750)
1#
2# hosts.allow access control file for "tcp wrapped" applications.
1#
2# hosts.allow access control file for "tcp wrapped" applications.
3# $FreeBSD: head/etc/hosts.allow 57284 2000-02-17 04:52:23Z jkh $
3# $FreeBSD: head/etc/hosts.allow 58750 2000-03-28 17:28:56Z cwt $
4#
4#
5# NOTE: The hosts.deny file is no longer used.
6# Instead, put both 'allow' and 'deny' rules in the hosts.allow file.
5# NOTE: The hosts.deny file is deprecated.
6# Place both 'allow' and 'deny' rules in the hosts.allow file.
7# See hosts_options(5) for the format of this file.
8# hosts_access(5) no longer fully applies.
9
10# _____ _ _
11# | ____| __ __ __ _ _ __ ___ _ __ | | ___ | |
12# | _| \ \/ / / _` | | '_ ` _ \ | '_ \ | | / _ \ | |
13# | |___ > < | (_| | | | | | | | | |_) | | | | __/ |_|
14# |_____| /_/\_\ \__,_| |_| |_| |_| | .__/ |_| \___| (_)

--- 27 unchanged lines hidden (view full) ---

42# Exim is an alternative to sendmail, available in the ports tree
43exim : localhost : allow
44exim : .nice.guy.example.com : allow
45exim : .evil.cracker.example.com : deny
46exim : ALL : allow
47
48# Portmapper is used for all RPC services; protect your NFS!
49# (IP addresses rather than hostnames *MUST* be used here)
7# See hosts_options(5) for the format of this file.
8# hosts_access(5) no longer fully applies.
9
10# _____ _ _
11# | ____| __ __ __ _ _ __ ___ _ __ | | ___ | |
12# | _| \ \/ / / _` | | '_ ` _ \ | '_ \ | | / _ \ | |
13# | |___ > < | (_| | | | | | | | | |_) | | | | __/ |_|
14# |_____| /_/\_\ \__,_| |_| |_| |_| | .__/ |_| \___| (_)

--- 27 unchanged lines hidden (view full) ---

42# Exim is an alternative to sendmail, available in the ports tree
43exim : localhost : allow
44exim : .nice.guy.example.com : allow
45exim : .evil.cracker.example.com : deny
46exim : ALL : allow
47
48# Portmapper is used for all RPC services; protect your NFS!
49# (IP addresses rather than hostnames *MUST* be used here)
50portmap : localhost : allow
51portmap : .nice.guy.example.com : allow
52portmap : .evil.cracker.example.com : deny
53portmap : ALL : allow
50portmap : 192.0.2.32/255.255.255.224 : allow
51portmap : 192.0.2.96/255.255.255.224 : allow
52portmap : ALL : deny
54
55# Provide a small amount of protection for ftpd
56ftpd : localhost : allow
57ftpd : .nice.guy.example.com : allow
58ftpd : .evil.cracker.example.com : deny
59ftpd : ALL : allow
60
61# You need to be clever with finger; do _not_ backfinger!! You can easily
62# start a "finger war".
63fingerd : ALL \
64 : spawn (echo Finger. | \
65 /usr/bin/mail -s "tcpd\: %u@%h[%a] fingered me!" root) & \
66 : deny
67
68# The rest of the daemons are protected.
69ALL : ALL \
70 : severity auth.info \
71 : twist /bin/echo "You are not welcome to use %d from %h."
53
54# Provide a small amount of protection for ftpd
55ftpd : localhost : allow
56ftpd : .nice.guy.example.com : allow
57ftpd : .evil.cracker.example.com : deny
58ftpd : ALL : allow
59
60# You need to be clever with finger; do _not_ backfinger!! You can easily
61# start a "finger war".
62fingerd : ALL \
63 : spawn (echo Finger. | \
64 /usr/bin/mail -s "tcpd\: %u@%h[%a] fingered me!" root) & \
65 : deny
66
67# The rest of the daemons are protected.
68ALL : ALL \
69 : severity auth.info \
70 : twist /bin/echo "You are not welcome to use %d from %h."