Download Enterprise Linux Best Practices - Securing RHEL 5 Installations at
Transcript
Restrict all connections by default comma-separated list of items, or a special keyword like ALL, which matches any service or client. (See the hosts.access(5) manpage for a list of other keywords.) Partial hostnames start at the root domain and are delimited by the . character. So the client machine example1.dept.mcgill.ca, with IP address 10.7.2.3, could be matched by any of the specifications: .mcgill.ca .dept.mcgill.ca 10.7.2. 3.4.2. Restrict all connections by default Restrict all connections to non-public services to localhost only. For example, for a system that has vsftpd accepting incoming connections from everywhere and sshd from your department only, you may want to put the following in /etc/hosts.allow: vsftpd: ALL sshd: .dept.mcgill.ca ALL: localhost And in /etc/hosts.deny: ALL: ALL Warning Note that this is an example only. You will also need to provide network IP ranges for your department in addition to using domain wildcards, unless all hosts in your domain have valid reverse DNS mapping. 16