Multi-blade Traffic Capture (tcpdump)

Description

Use the "tcpdump" commands in Gaia gClishClosed The name of the global command line shell in Check Point Gaia operating system for Security Gateway Modules. Commands you run in this shell apply to all Security Gateway Module in the Security Group. to capture and show traffic that is sent and received by Security GroupClosed A logical group of Security Gateway Modules that provides Active/Active cluster functionality. A Security Group can contain one or more Security Gateway Modules. Security Groups work separately and independently from each other. To the production networks, a Security Group appears a single Security Gateway. Members in the Security Group.

These commands are enhancements to the standard tcpdump utility:

Command

Description

tcpdump -mcap

Saves packets from specified Security Group Members to a capture file.

tcpdump -view

Shows packets from the specified capture file, including the Security Group Member ID.

Note - Use the "g_tcpdump" command in the Expert mode.

Syntax

tcpdump [-b <SGM IDs>] -mcap -w <Output File> [<tcpdump Options>]

tcpdump -view -r <Input File> [<tcpdump Options>]

Note - To stop the capture and save the data to the capture file, press CTRL+C at the prompt.

Parameters

Parameter

Description

-b <SGM IDs>

Applies to Security Group Members as specified by the <SGM IDs>.

<SGM IDs> can be:

  • No <SGM IDs> specified, or all

    Applies to all Security Group Members and all Chassis

  • One Security Group Member (for example, 1_1)

  • A comma-separated list of Security Group Members (for example, 1_1,1_4)

  • A range of Security Group Members (for example, 1_1-1_4)

  • In Dual Chassis, one Chassis (chassis1, or chassis2)

  • In Dual Chassis, the Active Chassis (chassis_active)

-w <Output File>

Saves the captured packets at the specified path in a file with the specified the name.

This output file contains captured packets from all specified Security Group Members.

In the same directory, the command saves additional output files for each Security Group Member.

The names of these additional files are: <SGM ID>_<Specified Name of Output File>

Example:

  • The specified full path is:

    /tmp/capture.cap

  • The additional capture files are:

    /tmp/1_1_capture.cap

    /tmp/1_2_capture.cap

    /tmp/1_3_capture.cap

    and so on

-r <Input File>

Reads the captured packets (in the tcpdump format) from the specified path from a file with the specified the name.

<tcpdump Options>

Standard tcpdump parameters.

See the tcpdump manual page - https://linux.die.net/man/8/tcpdump.

Examples