Solved

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

Posted on 2006-06-23
6
478 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
6 Comments
 

Accepted Solution

by:
Gyanendra_Chandra earned 100 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 200 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 100 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 200 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 50 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 50 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now