You can use the tcp wrapper for this purpose. It is more secure and offers that capablility.
First install the tcp wrapper and then edit inetd.conf to use the wrapper and then create /etc/hosts.allow with an entry like this :
in.telnetd: ??????
where ????? = name of the host you want to have access with telnet.
You can do the same for rsh, rlogin, ftp, etc.
You could also have a .rhosts file in the user directory of the server he wants to connect to.
the format of rhosts is hostname username.
Hi,
I just installed the tcp wrapper.The thing I want is ask is which file(hosts.deny or hosts.allow) is read first?
Secondly,if hosts.deny has entry ALL:ALL and hosts.allow has entry ALL:10.171.0.0 so will any host on 10.171 be able to access the server or not?If not,then what entry should be there in hosts.allow file?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.