- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/inetd.conf and /etc/services
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
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
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
тАО07-20-2005 08:09 AM
тАО07-20-2005 08:09 AM
/etc/inetd.conf and /etc/services
As far as I know, inetd.conf is the daemon started by inetd, if comment out, then inetd would not listen to it. How about if start the services directly via /etc/services?
And /etc/services will disable the services definetly because the port is close if the line is comment out?
Can someone clarify, thanks a lot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:19 AM
тАО07-20-2005 08:19 AM
Re: /etc/inetd.conf and /etc/services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:28 AM
тАО07-20-2005 08:28 AM
Re: /etc/inetd.conf and /etc/services
instead of running a daemon process for each port listening function, there is one process listening to all inbound requests which is inetd. When a tcp or udp request comes in at a certain port, lets say another server is sending a telnet request to your server at port 23, inetd fields this request, understands that it is for port 23 and it is a tcp packet, refers to /etc/services file and finds the service definition of a tcp request coming in at port 23 as such
telnet 23/tcp # Virtual Terminal Protocol
so it understands that this is a telnet request. Then it goes to (MAKE A POINT HERE FOR FUTURE REFERENCE) /etc/inetd.conf and finds the action it needs to take for telnet, as such:
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
then launches/forks a process as :
telnetd -b /etc/issue
and hands the socket to this process and leaves the communication.
Coming back to our "POINT HERE" above: there is an additional inetd security check, which is referenced inside file /var/adm/inetd.conf
so, before it checks the inetd.conf file, it looks for the restrictions for telnet depending on the incoming IP address of the packet. If it is allowed per inetd.sec, rules it continues as I explained above, if not, other side will see a "connection refused" message and connection terminates.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:31 AM
тАО07-20-2005 08:31 AM
Re: /etc/inetd.conf and /etc/services
re-reading the files happen via running
/usr/sbin/inetd -c
but this sometimes does not yield effective results.
Best bet is killing and restarting inetd as follows
/usr/sbin/inetd -k
/usr/sbin/inetd -l
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:32 AM
тАО07-20-2005 08:32 AM
Re: /etc/inetd.conf and /etc/services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 03:10 AM
тАО07-28-2005 03:10 AM
Re: /etc/inetd.conf and /etc/services
You are off to a good start. Disabling services not in use, closes vulnerabilities and can improve processing speed of a server.
I wanted to send you a list of services I recommend closing.
Please note you need direct console access if you shut down telnet.
I recommend loading SSH and using that to replace telnet and ftp.
The format in the services file should look like this (using ftp as an example):
Service not shut down:
ftp 21/tcp # ARPA file transfer protocol
Services shut down:
#ftp 21/tcp # ARPA file transfer protocol
^shell #
^login #
^exec #
^comsat #
^biff #
^talk #
^discard #
^daytime #
^systat #
^dtspc #
^printer #
^uucp #
^echo #
^chargen #
^imap #
^pop #
^finger #
^rpc.*rpc.rexd #
^rpc.*rpc.rstatd #
^rpc.*rpc.rwalld #
^rpc.*rpc.sprayd #
^rpc.*rpc.rusersd #
^rpc.*rpc.rquotad #
^rpc #
^http #
^nfsd #
^lockd #
^mountd #
^pcnfsd #
^rwalld #
^swat #
^ident #
^smtp #
If you have installed OpenSSH, you should consider disabling telnet and ftp with the following entries:
^telnet #
^ftp #
^tftp #
^sftp #
^bftp #
Here are some discriptions of these services: