- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tcp history.
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
07-10-2005 10:30 PM
07-10-2005 10:30 PM
How can I know what was running on a TCP port in the past or at least get the ip address of the connection which was using a particular port ?
Many Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2005 11:05 PM
07-10-2005 11:05 PM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 02:57 AM
07-12-2005 02:57 AM
Re: tcp history.
The only way you could know about "past" TCP would be if the connection was still in TIME_WAIT, which will last all of 60 seconds under HP-UX, and only if the HP-UX system was the one to initiate TCP connection shutdown.
If you need logs of TCP connections, you may want to look into the ipfilter functionality - it may have a way to log connections, but as Bill points-out, if you have a lot of what I would call "connection churn" that could be quite a lot of data.
Now, if the application accepting the TCP connections happens to log already, you could consider looking at that. Inetd has a way to log for example, but not everything runs as a child of inetd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 05:40 PM
07-12-2005 05:40 PM
Re: tcp history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 07:29 PM
07-12-2005 07:29 PM
Re: tcp history.
IPFilter can log IP packets to the extent you
want it to log. That could mean loging just
the IP addresses and port numbers in the
first connection initiation (SYN) packet of a
TCP connection or log the entire contents of
all the IP packets of a connection from
start to finish. As you might guess, the
second configuration would take a whole lot
of disk space.
Let me know if you are interested in using
IPFilter to log IP packets and I could help
you on how to configure it.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 01:22 AM
07-14-2005 01:22 AM
Re: tcp history.
Yes, I am interested in using IPFilter to log IP packets. Could you please let me know how to do it.
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 06:50 PM
07-17-2005 06:50 PM
Re: tcp history.
1) Install IPFilter. If you are on HP-UX
11.23 (or HP-UX 11i v2), then IPFilter must
already be installed on your system. If you
are on HP-UX 11.00 or 11.11, then pick up the
IPFilter bits for free from:
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=B9901AA
2) Create a file (edit if already present)
named /etc/opt/ipf/ipf.conf with the
following content:
# Start /etc/opt/ipf/ipf.conf
pass in log first quick proto tcp from any to any flags S keep state
pass out log first quick proto tcp from any to any flags S keep state
pass in log first quick proto udp from any to any keep state
pass out log first quick proto udp from any to any keep state
pass in from any to any
pass out from any to any
# ------- End -----
Load the above rules using following command:
# /sbin/ipf -f /etc/opt/ipf/ipf.conf
Now everytimes a TCP or UDP connection is
created, connection will be logged in
/var/adm/syslog/syslog.log file (grep for
logs by "ipmon" daemon).
Configuration for logging entire packet
content of all the in/out packets is a little
more complicated. If you really need to do
that, let me know and I can help you with
that.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 10:18 PM
08-04-2005 10:18 PM