yum install telnet-server
vi /etc/xinetd.d/telnet
service telnet
{
flags =REUSE
socket_type =stream
wait =no
user =root
server =/usr/sbin/in.telnetd
log_on_failure +=USERID
disable =no
instances =16
}
iptables -I INPUT -p tcp --dport 23 -j ACCEPT
iptables -I INPUT -p udp --dport 23 -j ACCEPT
ip6tables -I INPUT -p tcp --dport 23 -j ACCEPT
ip6tables -I INPUT -p udp --dport 23 -j ACCEPT
#chkconfig iptables off
#chkdonfig ip6tables off
/etc/init.d/xinetd restart