- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I stop this listening 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
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
12-16-2004 01:53 AM
12-16-2004 01:53 AM
I am asked to close the following listening services in my server..
printer (515/tcp)
cmsd (704/tcp)
RPC program #805306352 ( 884/tcp)
UDP ports 606,654,919
TCP port 884
I don't know where to do changes. I tried to understand /etc/inetd.conf file.
Here I think I can close port for cmsd port.
But for others I don't know.
Help...
Waiting for reply..
Thanks
-Irfan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 02:04 AM
12-16-2004 02:04 AM
Re: How can I stop this listening services?
the service ports (like telnet 23/tcp )are defined in /etc/services.
just hash it.restart the netservices.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 02:11 AM
12-16-2004 02:11 AM
Re: How can I stop this listening services?
/etc/services is just for mapping. Commenting in this file will not help in any way.
Regards
-Irfan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 02:16 AM
12-16-2004 02:16 AM
Re: How can I stop this listening services?
Application can have port hardcoded into it and can listen on that port.
If you have lsof, you check what process/application is using a port.
lsof -p tcp:"port_no"
lsof -p udp:"port_no"
To disable those ports, you can disable them in firewall. Or you can have a roduct like ipfilter/baston to do that.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 02:18 AM
12-16-2004 02:18 AM
Re: How can I stop this listening services?
Use /sbin/init.d/daemon stop
where daemon=yourdaemon like nfs.server
If you need to disable this services for future
go to /etc/rc.config.d
dir where all daemon have coonfig file and
change 1 with 0
example
export RWHOD=1
to
export RWHOD=0
If you realy want control over your network
? You need IPFILTER and bastion host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 02:23 AM
12-16-2004 02:23 AM
SolutionYou need to find the entries in /etc/inetd.conf and comment them by placing a '#' character as the first character of the line.
Printer and cmsd will be obvious because there are obvious inetd.conf entries for these daemons. The others will require a little more work. Do an rpcinfo -p and an rpcinfo. Your 805306352 entry, for example, is the ttdbserver. Once you know the RPC program then find that entry also in /etc/inetd.conf.
When you have finished your changes to inetd.conf, issue an inetd -c command to reread the configuration file and reconfigure inetd. This will not affect established connections.
Man inetd, rpcinfo for details. Netstat and lsof (if you have installed it) are also useful for tracking down less than obvious daemons. You may also have a few listeners that are started in /sbin/init.d and you could have a few that are started by init so look in /etc/inittab as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 08:20 AM
12-16-2004 08:20 AM
Re: How can I stop this listening services?
/etc/inetd.conf to block the ports you don't
want others to connect. Another way would be to
use IPFilter firewall to block these ports. To block
all the above ports, you need to configure the
following IPFilter rules:
block in quick proto tcp from any to any port = 515
block in quick proto tcp from any to any port = 704
block in quick proto tcp from any to any port = 884
block in quick proto udp from any to any port = 606
... you get the idea.
A much better way to configure the system would be to configure IPFilter to pass only the ports you want others to access and block everything else.
- Biswajit