- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Open and closing of 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
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
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
тАО05-22-2001 07:06 AM
тАО05-22-2001 07:06 AM
Open and closing of Ports
I have closed all the unwanted ports in /etc/services by commenting and running "inetd -c". If i run portscan on the server it shows some of the ports that are open which is not listed in /etc/services, for example:
49153/tcp open unknown
49154/tcp open unknown
49155/tcp open unknown
49156/tcp open unknown
49157/tcp open unknown
49158/tcp open unknown
49161/tcp open unknown
49162/tcp open unknown
49167/tcp open unknown
Also the Port 1521/tcp which is used by oracle listener is not listed in /etc/services, but still listerner is working fine and people are able to connect to Oracle Database through Listener.
Can someone please explain the reason why this is happening?
And how to close the Dynamic/Private ports range 49152 to 65535?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2001 07:31 AM
тАО05-22-2001 07:31 AM
Re: Open and closing of Ports
An entry in /etc/services isn't required to use a particular port number. The file only serves to associate a name with a number and in doing so, "declare" that a particular number is "intended" for a particular function.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2001 07:58 AM
тАО05-22-2001 07:58 AM
Re: Open and closing of Ports
Thanks the quick response. I am clear with it now. BTW, how to close the Dynamics ports from 49152 to 65535?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2001 08:22 AM
тАО05-22-2001 08:22 AM
Re: Open and closing of Ports
You can use 'ndd' to set the values of 'tcp_largest_anon_port' and 'udp_largest_anon_port'. These control the automatic assignment of port numbers.
To make this permanent, put the settings in /etc/rc.config.d/nddconf.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:28 AM
тАО05-23-2001 09:28 AM
Re: Open and closing of Ports
even if you change the anonymous port range with ndd, apps can still explicitly select port numbers in the entirety of the port number range.
if you are trying to "harden" your system, you might try the "bastion host" paper at http://people.hp.se/stevesk