- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- disabling ports
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
тАО11-07-2006 11:22 AM
тАО11-07-2006 11:22 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 11:43 AM
тАО11-07-2006 11:43 AM
Re: disabling ports
To see what ports are open in the system you can either look at /etc/services file or do netstat -an|grep LISTEN these are the ports that are open by the system for listening and netstat -an|grep ESTABLISHED will give the list of ports that the system is using and are etablished (dont remove these ports as they are being used and might affect the system)
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 11:49 AM
тАО11-07-2006 11:49 AM
Re: disabling ports
To disable active ports you need to do 1 of 2 things:
1) If the port is activated via inetd, then comment out the appropriate service line in /etc/inetd.conf. When that is done, have inetd re-read the file by doing an 'inetd -c'.
2) If the port is opened by some specific application, then you need to stop that application to close the port.
As mentioned, 'netstat -a' will show you which ports are listening for connections. Another useful tool is lsof. lsof can show the same type of information, plus a whole lot else. lsof can be very useful for what you want to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 08:00 PM
тАО11-08-2006 08:00 PM
Re: disabling ports
I don't think there is a way of 'disabling' ports on HPUX. You can edit the /var/adm/inetd.sec file - but this is only for hosts trying to get To your machine. It does not stop a local user from starting a daemon on a local port.
All ports are enabled by default - you can only check which ones are currently being used. As mentioned 'netstat -na | grep LISTEN' will give you ports on which daemons have been started, but a local user can start a daemon at any time. First come, first served.
Regards,
David.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 02:11 AM
тАО11-09-2006 02:11 AM
SolutionAs others have already pointed out, commenting
entries in /etc/services will NOT do what you
want. Others have also suggested how to achieve
what you want.
It appears to me that you want to block a lot of
ports that you don;t use. If so, you should
seriously consider using IPFilter system firewall
to block all the ports and open only the ones you
want to use. It's very easy to configure (only
takes a minutes) and you are sure that
everything blocked except for the ones you
explicitely leave open. For 11.11, the free IPFilter
software is available at software.hp.com.
- Biswajit