Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] How to perform a packet capture for traffic destined to or sourced from the routing-engine of a SRX

0

0

Article ID: KB35651 KB Last Updated: 31 Mar 2020Version: 1.0
Summary:
This article explains a way for taking a packet-capture (tcpdump) on a SRX firewall for traffic destined to or sourced from the routing-engine of the device. Note that with this method you cannot capture transit traffic, only self traffic.

For packet-captures of transit traffic see the following articles:
Solution:

The monitor traffic tool can be leveraged for this packet-capture purposes by using the write-file statement. An example of the command is the following:

root@srx> monitor traffic interface ge-0/0/0.0 write-file CAPTURE.pcap <-- write-file is a hidden command so it will not auto-complete and must be typed out

With the above command all traffic to or from the Routing Engine that is forwarded over interface ge-0/0/0.0 will be saved to a file named CAPTURE with a file extension type of pcap. After this, you can download the file from the SRX and open it in a traffic analyzer tool such as Wireshark.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search