Operating System - HP-UX
1827459 Members
4552 Online
109965 Solutions
New Discussion

how to make user telnet from specific ip address!

 
leyearn
Regular Advisor

how to make user telnet from specific ip address!

how to make user telnet from specific ipAddresses?
from other IpAddresses are not allowed!

system hp-ux 11i
4 REPLIES 4
Mel Burslan
Honored Contributor

Re: how to make user telnet from specific ip address!

you can not set this on user-by-user basis but you can set telnet protocol packets to be accepted if they are coming from certain IP address or addresses.

see the /var/adm/inetd.sec file for examples at the beginning of this file or just do

man inetd.sec

hope this helps
________________________________
UNIX because I majored in cryptology...
Darrel Louis
Honored Contributor

Re: how to make user telnet from specific ip address!

Hi,

You can either use /var/adm/inetd.sec or IPFilter and set a rule that only from a particular ip-address or subnet telnet is allowed.

Darrel
spex
Honored Contributor

Re: how to make user telnet from specific ip address!

leyearn,

Add the following to /var/adm/inetd.sec:

telnet deny *
telnet allow

The order of these lines is very important. Also keep in mind that if you have any 'telnet allow's which follow where you inserted these lines, they will caused the 'telnet deny *' to be overridden.

PCS
Ivan Ferreira
Honored Contributor

Re: how to make user telnet from specific ip address!

See my answer here:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1037056
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?