📡 Palo Alto Firewall Packet Captures: Data Plane & Management Plane

This guide provides detailed instructions on performing packet captures on Palo Alto Networks firewalls, covering both the data plane and management plane. It includes CLI and GUI methods, best practices, and key considerations for the PCNSE exam.

🔹 Data Plane Packet Capture

CLI Method:

  1. Set Filters:
    debug dataplane packet-diag set filter match source <source_ip> destination <destination_ip> destination-port <port>
  2. Specify Capture Stages:
    debug dataplane packet-diag set capture stage receive file rx.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 drop file drop.pcap
  3. Enable Capture:
    debug dataplane packet-diag set capture on
  4. Reproduce the Issue: Initiate the traffic you want to capture.
  5. Disable Capture:
    debug dataplane packet-diag set capture off
  6. Export Captures: Use SCP or TFTP to export the .pcap files for analysis in tools like Wireshark.

GUI Method:

  1. Navigate to: Monitor > Packet Capture
  2. Configure Filters: Define the traffic filters (e.g., source/destination IP, port).
  3. Set Capture Stages: Enable desired stages (Receive, Transmit, Firewall, Drop).
  4. Start Capture: Click "Start" to begin capturing.
  5. Reproduce the Issue: Initiate the traffic you want to capture.
  6. Stop Capture: Click "Stop" once done.
  7. Download Captures: Download the .pcap files for analysis.

Best Practices:

🔹 Management Plane Packet Capture

CLI Method:

  1. Access CLI: SSH into the firewall.
  2. Start Capture:
    tcpdump filter "host <ip_address>" snaplen 0
    Replace <ip_address> with the target IP. snaplen 0 captures full packets.
  3. Stop Capture: Press Ctrl + C to stop.
  4. View Capture:
    view-pcap mgmt-pcap mgmt.pcap

Note: Management interface captures are CLI-only due to architectural design.

🧠 PCNSE Exam Considerations

📚 Additional Resources