Solved

Packet capture on ASA 7.x cli

Posted on 2013-05-26
3
619 Views
Last Modified: 2013-05-28
Hi,

How can I initiate a capture packet on an ASA 7x firewall using the CLI? I'm struggling with this for hours now and I seem to be lost somewhere.

I need to capture data that originates from inside host 10.31.3.103 to outside host 213.55.147.20 > TCP/2000.

Any help would be very appreciated!
0
Comment
Question by:OrcaGroup
3 Comments
 
LVL 16

Assisted Solution

by:max_the_king
max_the_king earned 100 total points
ID: 39198924
Hi,

try the following, create an access-list that permits that traffic, e.g.:

access-list capture_list permit tcp host 10.31.3.103 host 213.55.147.20 eq 2000
access-list capture_list permit tcp host  213.55.147.20 eq 2000 host 10.31.3.103

capture  capture_list access-list  capture_list interface inside

hope this helps
max
0
 
LVL 57

Assisted Solution

by:Pete Long
Pete Long earned 200 total points
ID: 39199365
Is this the problem you are trying to troubleshoot?

Cannot Connect to TCP Port 2000 (Even over VPN)
Pete
0
 
LVL 17

Accepted Solution

by:
Garry-G earned 200 total points
ID: 39200580
Just an addendum to Max' comment ...  I'd always run the capture on both sides of the firewall, also adding a buffer size and increasing the packet size in case you need to look into what actually is happening inside the packets can occasionally help, so:

capture INSIDEDATA access capture_list int inside buf 1024000 packet-length 1500
capture OUTSIDEDATA access capture_list int outside buf 1024000 packet-length 1500

Please note that you may need to extend the access list to match the outside NAT IP of the internal box.

Once you have the capture running, check with "show capture" to see whether any packets have been captured, or "show capture INSIDEDATA" to see what packets have been transfered ... or use the web interface with "https://ASA_IP/capture/INSIDEDATA/pcap" to download a Wireshark-compatible PCAP dump for further analysis ...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WLC 5508 controller configuration 4 98
ASA Tunnel 18 42
Cisco Prime 2.2 7 33
Poll Active Directory user information 11 41
There are many useful and sometimes not well documented or forgotten IOS or ASA/PIX commands. See IPE article here , there was also one on PacketU and on Cisco Tips & Tricks. Below are my favorites. I give also a few most often used for Cisco IPS an…
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

840 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