RHCE 题目及答案 1、 对 sshd 做访问控制, 要求只能来自 ex ample
com 域的用户可以访问你的 ssh 服务器,其他的不可以访问 步骤: rpm –qa |grep openssh vi /etc/hosts
deny >sshd: 192
wq service sshd restart chkconfig sshd on 或者 iptables -F iptables –A INPUT –s
0/24 –p tcp –dport 22 –j REJECT iptables –A INPUT –s
0/24 –p udp –dport 22 –j REJECT service iptables save service iptables restart 2、 开启 pop3 服务,要求来自 ex ample
com 域的主机上的用户 tom可以收取你的 pop3 服务器上 tom 的 mail
cracker
org 的成员不可以访问你的 pop3 服务器 步骤; yum install sendmail* yum install dovecot* chkconfig sendmail on chkconfig dovecot on service sendmail start service dovecot start cd /etc/mail vi local-host-names >example
com stationX
example
com wq vi sendmail
mc > wq m4 sendmail
mc > sendmail
cf vi access >192
0 RELAY 192
1 REJECT wq makemap hash acces