Advance debug Troubleshooting Palo Alto Firewall
1. Global Counters
2. Packet Filter & Capture
3. Flow Basic
Flow Basic
----------
>Debug dataplane packet-diag clear all
> debug dataplane packet-diag set filter index 1 match source x.x.x.x destination x.x.x.x destination-port 80 protocol 6
> debug dataplane packet-diag set filter index 2 match source x.x.x.x destination x.x.x.x source-port 80 protocol 6
> debug dataplane packet-diag set filter on
> debug dataplane packet-diag show setting
> debug dataplane packet-diag set capture stage drop file dp.pcap
> debug dataplane packet-diag set capture stage firewall file fw.pcap
> debug dataplane packet-diag set capture stage transmit file tx.pcap
> debug dataplane packet-diag set capture stage receive file rx.pcap
> debug dataplane packet-diag set capture on
> debug dataplane packet-diag show setting
you can also see the capture information on GUI Monitor PacketCapture
Initiate the Test from source to destination traffic
>view-pcap filter-pcap fw.pcap
or you can download it from GUI Monitor PacketCapture and open it with wireshark
.pcap file on a Palo Alto firewall, you can use the web interface (Monitor > Packet Capture) or the CLI. Since packet captures are highly CPU-intensive, define specific filters first, enable the capture, generate traffic, and turn it off immediately after gathering the data. [1, 2, 3, 4, 5]- Configure Filters:
- Go to Monitor > Packet Capture.
- Click Manage Filters.
- Click Add and define parameters like Source IP, Destination IP, Ingress Interface, and Protocol to narrow down the traffic. Click OK.
- Configure Capture Options:
- Click Configure Capturing.
- Ensure stages (Drop, Receive, Transmit, and FW-Process) are enabled and define a file name.
- Start and Run:
- Toggle the Packet Capture switch to ON.
- Generate your test traffic to ensure the packets are passing through.
- Toggle the switch to OFF once done.
- Download the File:
- Run TCPDump: Connect to the firewall via SSH and use the tcpdump tool:
tcpdump filter "host <IP_Address>" - View or Export:
- Navigate to Monitor > Logs > Traffic.
- Locate the specific traffic log entry that you want to analyze.
- Click the green arrow icon next to the log entry to download the
.pcapfile associated with that exact connection
No comments:
Post a Comment