- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- telnet deny
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 02:53 AM
09-20-2004 02:53 AM
could someone tell what the syntax for "telnet deny" in /var/adm/inetd.sec is?
Is it just "telnet deny"? If so, what does it stand for.
Please suggest. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 02:57 AM
09-20-2004 02:57 AM
Re: telnet deny
Try "man inetd.sec" for more info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:00 AM
09-20-2004 03:00 AM
Re: telnet deny
Add the following lines to /var/adm/inetd.sec:
telnet deny
Execute the 'inetd -c' command to re-initialize the inet daemon.
Reagrds,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:03 AM
09-20-2004 03:03 AM
Solutiontelnet deny 1.2.3.4 5.6.7.8 hosta hostb
The above would deny telnet access from machines with ip addresses of 1.2.3.4 and 5.6.7.8 and hosts named hosta and hostb.
As said the inetd.sec man page has good information and the inetd.sec file is documented very well itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:08 AM
09-20-2004 03:08 AM
Re: telnet deny
If all the machines should be denied access, is it just plain "telnet deny" or "telnet deny *"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:10 AM
09-20-2004 03:10 AM
Re: telnet deny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:11 AM
09-20-2004 03:11 AM
Re: telnet deny
In such a situation, you can deny the telnet service by commenting out the telnet entry in the /etc/inetd.conf file and making inetd reread the conf file.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:58 AM
09-20-2004 03:58 AM
Re: telnet deny
Commenting out that line has been done too.
However, I would like to know if it is just
"telnet deny" or "telnet deny *"?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 04:06 AM
09-20-2004 04:06 AM
Re: telnet deny
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 04:07 AM
09-20-2004 04:07 AM
Re: telnet deny
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 04:23 AM
09-20-2004 04:23 AM
Re: telnet deny
The syntax could be
telnet deny
or
telnet deny *
either one works.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 09:23 AM
09-20-2004 09:23 AM
Re: telnet deny
When telnet and ftp are disabled, should tftp be disabled? I know tftp stands for file transfer protocol .. especially in a webserver env where ftp is disabled?
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 01:36 AM
09-21-2004 01:36 AM
Re: telnet deny
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 01:40 AM
09-21-2004 01:40 AM
Re: telnet deny
Thanks for the reply. Should I put "tftp deny" just like "telnet deny" in /var/adm/inetd.sec? Also, the following appears in /etc/inetd.conf
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
#tftp dgram udp wait root /usr/lbin/tftpd tftpd
I don't have a tftp user in /etc/passwd.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 01:43 AM
09-21-2004 01:43 AM
Re: telnet deny
ANother question, what is the quick way to find whether the system has "legitimate need" of it? How to find if the system is already depending on it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 01:59 AM
09-21-2004 01:59 AM
Re: telnet deny
It is not in ready to service the requests there. If you want to start the service and use the one then create user for tftp as in tftpd man page there.
As
tftp:*:510:101:tftp server:/home/tftpdir:/usr/bin/false
If you don't want that service then don't care on inetd.sec file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:08 AM
09-21-2004 02:08 AM
Re: telnet deny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:19 AM
09-21-2004 02:19 AM
Re: telnet deny
tftp 69/udp # Trivial File Transfer Protocol
See
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=650197
for lsof there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:29 AM
09-21-2004 02:29 AM
Re: telnet deny
There is no sure way of knowing whether a service is required or not on the system. The only way to verify whether a service is needed or not is to shutdown / diable the service and see if someone complains. You can also try and see if you want to put a tcp wrapper around the service which will over a period tell you who had been using the service. You can download tcp wrapper from this location,
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcp_wrappers-7.6/
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:32 AM
09-21-2004 02:32 AM
Re: telnet deny
However, lsof command doesn't work here. I am thinking to leave it commented and not worry about inetd.sec. However, is there any other way to check if it is currently active or supposed to be active?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:50 AM
09-21-2004 02:50 AM
Re: telnet deny
netstat -na | grep -w '69'
or
netstat -na | grep '69'
If it is having as LISTEN there then it is running.
Else we can know the service startup by syslog file more.
grep tftp /var/adm/syslog/syslog.log
If it is having some entries there, then it is started.
We can know the current usage with ps itself as,
ps -ef | grep -v grep | grep tftpd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 06:12 AM
09-21-2004 06:12 AM
Re: telnet deny
netstat -na | grep listen didn't show any tftp entry. similarily, netstat -na | grep 69. However, on the webservers, tftp is enabled.
Syslog has:
Dec 11 12:43:30 do34ty inetd[683]: tftp/udp: Added service, server /usr/lbin/t
/etc/inetd.conf has tftp entry:
tftp dgram udp wait root /usr/lbin/tftpd tftpd\
The system is a webserver. Please confirm if this has to be removed.
Why is tftp enabled here? Could you tell what could be the possible reason?
Also, please suggest if there are any things that i need to care for (other than tftp, ftp, telnet)
Many thanks for all the help so far.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 06:21 AM
09-21-2004 06:21 AM
Re: telnet deny
tftp is a service which is not used except by ignite servers. If this is not an ignite server you can comment out tftp in /etc/inetd.conf or deny access to tftp using the inetd.sec file.
You can also look into the Bastille software available from hp software site.
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA
Take a look at this thread too,
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-2216/5187-2216_top.html&con=/hpux/onlinedocs/5187-2216/00/01/113-con.html&toc=/hpux/onlinedocs/5187-2216/00/01/113-toc.html&searchterms=bastille&queryid=20040921-122040
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 06:38 AM
09-21-2004 06:38 AM
Re: telnet deny
Thanks, could you please tell what "ignite servers" are? Ours is 11.00.
Also, any other things that I have to check on a machine or web server?
I've already looked into telnet, ftp, tftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 06:38 AM
09-21-2004 06:38 AM
Re: telnet deny
Thanks, could you please tell what "ignite servers" are? Ours is 11.00.
Also, any other things that I have to check on a machine or web server?
I've already looked into telnet, ftp, tftp.