This widget could not be displayed.
Operating System - HP-UX
1845517 Members
3990 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Denying telnet session to certain Clients

 
siddharthC
Occasional Advisor

Denying telnet session to certain Clients

Hi,

I want to deny telnet seesion to certain cleint and allow to certaiin. Pls. help me how to achive this.

Regards,
Siddharth
7 REPLIES 7
Jaime Bolanos Rojas.
Honored Contributor

Re: Denying telnet session to certain Clients

SiddharthC,

I think it's a lot better if you go with SSH instead of telnet, as is more secure and it give you more flexibility to manage these things.

If you persist on using telnet ( which is not recommended now days ) then check this thread that it will point you in the right direction,

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=961308

Regards,

Jaime.
Work hard when the need comes out.
Bill Hassell
Honored Contributor

Re: Denying telnet session to certain Clients

If by the term 'client' you mean a specific computer's IP address, the file is called /var/adm/inetd.sec where you specify deny/allow for specific addresses of address ranges. If you mean a specific user, there is no way to identify a user until after login is complete and /etc/profile is started. So you would test for the user in that file and exit if the user is not allowed.


Bill Hassell, sysadmin
siddharthC
Occasional Advisor

Re: Denying telnet session to certain Clients

There is no file by the name /var/adm/inetd.sec in my system
spex
Honored Contributor

Re: Denying telnet session to certain Clients

Hi Siddharth,

Create this file and add "telnet deny " to it. Optionally, you could put "telnet allow " and then "telnet deny *" to allow only certain hosts and deny all others. 'inetd -c' to restart the dameon and apply changes.

# man inted.sec
for more information.

PCS
Bill Hassell
Honored Contributor

Re: Denying telnet session to certain Clients

You create the file as needed. Use the command man inetd.sec for details.


Bill Hassell, sysadmin
HGN
Honored Contributor

Re: Denying telnet session to certain Clients

Hi

Please asign points to the posts, people are spending their valuable time helping you.
0 out of 16

Rgds

HGN
HGN
Honored Contributor

Re: Denying telnet session to certain Clients

Hi

Please assign points to the posts, people are spending their valuable time helping you.
0 out of 16

Rgds

HGN