Solved

Cisco router - check for open ports

Posted on 2011-09-13
9
935 Views
Last Modified: 2012-05-12
Hi There,

We currently have a Cisco 1841 router and it only accessible via telnet and we are in the process of upgrading this router and was wanting to know if anyone was able to tell me the entire command line commands to run on this router in order to find all currently open ports?


Thanks in advance
Adrian
0
Comment
Question by:Adma1
9 Comments
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36528826
Well you should be able to see that in the config. So use show run or show start. All ports not explicitly defined in the access lists should be closed.
0
 
LVL 10

Assisted Solution

by:SuperTaco
SuperTaco earned 166 total points
ID: 36528831
I third party tool is an easier bet for you try using NMAP (ZenMap GUI) it will give you a readout of all open ports on your network.

http://nmap.org/zenmap/
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36528844
You can always double check by using something like shields up : https://www.grc.com/x/ne.dll?bh0bkyd2
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 34

Accepted Solution

by:
Istvan Kalmar earned 167 total points
ID: 36529019
server#sh ip sockets


Proto    Remote      Port      Local       Port  In Out Stat TTY OutputIF
 17 192.168.212.1     514 10.150.0.3      53786   0   0 100010   0
 17   --listen--          10.150.0.3       1975   0   0   11   0
 17 0.0.0.0             0 10.150.0.3       2228   0   0  211   0
 17 10.155.12.44       68 10.150.0.3         67   0   0 2211   0
 17 10.155.0.110    61731 10.155.0.1        161   0   0    1   0
 17   --listen--          10.150.0.3        162   0   0   11   0
 17   --listen--          10.150.0.3      57131   0   0    1   0
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36529812
@ikalmar: it that just like a netstat -an ?
0
 
LVL 10

Expert Comment

by:SuperTaco
ID: 36529819
yes, very similar.  I didn't recommend it, because i usually like using scanning tools.  either way will work though.
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36529856
Cool, didn't know that one. Had my learning experience for today :)
0
 

Author Comment

by:Adma1
ID: 36533577
Thanks everyone for your responses,

Ikalmar: when I run the sh ip sockets command I receive the following error

'xxxx'-GW0#sh ip sockets
                     ^
% Invalid input detected at '^' marker.

is there a series of commands that I need to run prior to the sh ip sockets command?

Thanks,
Adrian
0
 
LVL 2

Assisted Solution

by:tirabytes
tirabytes earned 167 total points
ID: 37091240
Try: sh control-plane host open-ports

Or you can do it by checking both inbound nat and accesslist on your internet facing interface (if there is any).

sh conf | inc ip nat inside
or
sh ip nat trans

&

sh access-list



0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

820 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