Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit telnet

Status
Not open for further replies.

unixkid

IS-IT--Management
May 22, 2001
105
0
0
US
anyone know if you can limit "telnet" via ip or userid?
 
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.

Hope this helps
 
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?

Thanx in advance......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top