- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: starting and closing tcp 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
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
тАО03-01-2008 01:33 PM
тАО03-01-2008 01:33 PM
close a port
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2008 04:40 PM
тАО03-01-2008 04:40 PM
Re: starting and closing tcp ports
Your question is very generic. For lot
of applications, you already have ready-made
programs.
Let's take a simple example, Apachhe
httpd server is started and typically
listens on port 80...
I would suggest you read more about
Unix sockets in the first instance.
One of the references is:
http://www.unixguide.net/network/socketfaq/
STREAMS is an alternative to the Berkeley
sockets API.
STREAMS is a modular architecture for
implementing full-duplex, bidirectional
character I/O between kernel or user space
processes and device drivers.
Its most frequent uses have been in
developing terminal I/O and networking
subsystems.
All modern systems that provide STREAMS
provide sockets (Stream Sockets) too.
STREAMS is more complex than sockets, but it
provides more flexibility than sockets.
However, it is little used in modern software.
You need to learn more about programming. C,
C++, Java, Python, Perl and typically used
to write new applications that use
sockets and/or STREAMS.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2008 07:28 PM
тАО03-01-2008 07:28 PM
Re: starting and closing tcp ports
basically all port numbers are defined in /etc/services file. You can enable or disable the ports from this file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2008 12:03 AM
тАО03-02-2008 12:03 AM
Re: starting and closing tcp ports
to make TCP port listenning you need to start daemon/application which listen to that port, once started port will be opened, when you stop the application it will be closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2008 12:43 AM
тАО03-02-2008 12:43 AM
Re: starting and closing tcp ports
With "netstat -af net" or "lsof -i" you can check for ports listening(open).
First of all you can start with /etc/inetd.conf.
Second you can start with disabling some startup scripts from starting when a server boots.
But if you want to harden your server check for Bastille, which will do all the work for you.
The /etc/services file is just a list of known ports.
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2008 08:56 PM
тАО03-02-2008 08:56 PM
Re: starting and closing tcp ports
> /etc/services file. You can enable or
> disable the ports from this file.
Basically, this is wrong, although it does
seem to be a common misconception. A program
can easily listen on a port which does not
appear in /etc/services. Apache, for
example, gets its port number(s) from its own
configuration file, not from anything in
/etc/services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 06:14 AM