修改hosts.allow
#如果telnet服务是standard alone,则:
echo "telnetd:10.126.*.*" >> /etc/hosts.allow
#如果telnet服务是super daemon,则:
echo "in.telnetd:10.126.*.*" >> /etc/hosts.allow
复制代码
修改hosts.deny
#如果telnet服务是standard alone,则:
echo "telnetd:ALL" >> /etc/hosts.deny
#如果telnet服务是super daemon,则:
echo "in.telnetd:ALL" >> /etc/hosts.deny
复制代码