E.g. = vi /etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
only_from = 192.168.1.0/24
no_access = 192.168.1.200
log_on_failure += USERID
disable = yes
}
#/etc/init.d/xinetd reload
Note :- only_from for allowing ip/iprange ,
no_access for blocking ip/iprange
Regards,
Digambar Warke

