?
Solved

Anyways to find out that Red Hat Linux Server is accepting incoming trafic on a specific port?

Posted on 2006-06-23
6
Medium Priority
?
486 Views
Last Modified: 2013-12-06
Hi,

Does anyone know how to check is a specific port (like 3300) is accepthing incoming traffic on the Redhat Linux server? Thanks.
0
Comment
Question by:huabin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Accepted Solution

by:
Gyanendra_Chandra earned 400 total points
ID: 16972830

Go to console on the same server

telnet server_ip 3300

this should show u a blank screen or a message.

This is a local test that the service is accepting the connection on the server.

But if firewall is running on the server u need to check the port from a different computer in the same ip subnet.

or u can use ethereal or dsniff for capturing packets coming on specific port.


0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 800 total points
ID: 16972999
Type:

netstat -a | grep listen

And you'll get a list of all the ports that have a process listening on, rather than having to try 'telnetting' to every port!

Of course firewall rules could restrict connections from certain ip addresses, in which case the 'telnet test' (mentioned already) is an excellent test.

(   (()
(`-' _\
 ''  ''

0
 
LVL 20

Assisted Solution

by:nedvis
nedvis earned 400 total points
ID: 16973140
Port 330 is used by BMC Software Patrol Agent

PORT 3300 - Information
Port Number:      3300
TCP / UDP:      TCP
Delivery:      Yes
Protocol / Name:      bmcpatrolagent
Port Description:      BMC Patrol Agent
Virus / Trojan:      No

-------------------------------------
pjedmont you were very  close, acctually command huabin will need here is:

netstat -a | grep 3300

if the port is active it will return message:  CONNECTED


0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 800 total points
ID: 16973169
:) Well spotted the deliverate mistake. I meant it to be:

netstat -a | grep -i listen

It does state (like 3300), which can be interpreted as wanting either a specific or general solution. Giving a list of listening ports answers the question in a slightly obtuse manner. The reason for the approach I gave was that the approach

netstat -a | grep 3300

probably works for port 3300, but *does not* work for all ports is because for example port 22 gets replaced by ssh and port 80 by httpd. The approach I gave gives a sensible sized list for browsing.

As always, there are many ways to skin a cat;)

(   (()
(`-' _\
 ''  ''
0
 
LVL 2

Assisted Solution

by:linux2000in
linux2000in earned 200 total points
ID: 16975519
Hi huabin,

Well yes u can see using state of TCP/IP connection at 3300 port , but again if u want to go in more deatils .
you can use tcpdump to sniff traffice u will get TCP/IP in-depth details..so u can get conformation server accept connection and processing them or not ?


regards
niri

www.linux-gujarat.co.in : GLUG: Learn Linux different WAY !!
www.linux-directory.net  : It's all about Open Source & Linux.
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 200 total points
ID: 16976380
> ..  how to check is a specific port (like 3300) is accepthing incoming traffic
how should tcpdump answer this question?
It cannot. Dot Period.
netstat,  as shown before, is one solution.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question