Operating System - HP-UX
1825805 Members
2585 Online
109688 Solutions
New Discussion

Allowing telnet from particular IP

 
support_hp
New Member

Allowing telnet from particular IP

Hi, I m using HP-UX 11.2 b.
I want to block telnet access with allowing the same service from some particular IP.
Can anybody help me out???

Somnath
somnathchakrawarty@gmail.com
3 REPLIES 3
Tingli
Esteemed Contributor

Re: Allowing telnet from particular IP

prepare a small script in your .profile to filter out the IP.
Steven E. Protter
Exalted Contributor

Re: Allowing telnet from particular IP

Shalom,

tcpwrappers is the best product for HP-UX to do this.

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=TCPWRAP

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Md. Farhan A Azam
Trusted Contributor

Re: Allowing telnet from particular IP


Hi, You can check.
more /var/adm/inetd.sec

vi /var/adm/inetd.sec


telnet deny 192.23.4.3 193.14
this entry denies a specific host 192.23.4.3, and an entire subnet 193.14.


telnet allow 192.23.4.3 193.14
this entry allows only the host 192.23.4.3, and any hosts on the subnet 193.14.
Everyone else is denied.