- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Port usage
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
тАО07-24-2001 01:14 PM
тАО07-24-2001 01:14 PM
Port usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 08:23 PM
тАО07-24-2001 08:23 PM
Re: Port usage
Unfortunately I don't have my linux system in front of me to test this, but the following script should tell you which processes are listening on a port.
#!/bin/sh
for pid in `ps -ef|grep -v UID|awk '{ print $2 }'| sort -rn`; do
/usr/sbin/lsof -p $pid|grep LISTEN
done
Hope this helps
Shane Hjorth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 12:35 AM
тАО07-25-2001 12:35 AM
Re: Port usage
If this sounds like what you need, check out Nessus or Courtney to see if they are suitable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 07:16 AM
тАО07-25-2001 07:16 AM
Re: Port usage
The following is the output from your script. There doesn't seem to be anything other than pptpd using 1723, but maybe this will help.
pptpd 582 root 4u IPv4 743 TCP *:1723 (LISTEN)
sshd 537 root 3u IPv4 687 TCP *:ssh (LISTEN)
xinetd 522 root 3u IPv4 671 TCP *:telnet (LISTEN)
xinetd 522 root 4u IPv4 672 TCP *:ftp (LISTEN)
identd 490 root 3u IPv4 637 TCP *:auth (LISTEN)
identd 489 root 3u IPv4 637 TCP *:auth (LISTEN)
identd 487 root 3u IPv4 637 TCP *:auth (LISTEN)
identd 485 root 3u IPv4 637 TCP *:auth (LISTEN)
identd 483 root 3u IPv4 637 TCP *:auth (LISTEN)
And as far as using a port scanner, to my knowledge they only show what ports are open, I already know 1723 is open, I just want to know what programs are trying to use it.
Thanks and hope this helps to find a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2001 12:02 PM
тАО08-05-2001 12:02 PM
Re: Port usage
Try this:
fuser 1723/tcp
to see what program is using that port using tcp and,
fuser 1723/udp
to see what program is using that port using udp.