Searching for a Connection (asg search)

This section describes how to search for a connection in the Connections Table.

Description

Use the "asg search" command 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. or the Expert mode to:

You can run this command directly or in Interactive Mode. In the Interactive Mode, you can enter the parameters in the correct sequence.

The "asg search" command also runs a consistency test between Security Group Members.

This command supports both IPv4 and IPv6 connections.

Searching in the Non-Interactive Mode

Syntax

asg search -help

asg search [-v] [-vs <VS IDs>] [<Source IP Address> <Source Port> <Destination IP Address> <Destination Port> <Protocol>]

Parameters

Parameter

Description

No Parameters

Runs in the interactive mode.

-help

Shows the built-in help.

-vs <VS IDs>

Applies to Virtual Systems as specified by the <VS IDs>.

<VS IDs> can be:

  • No <VS IDs> specified (default) - Applies to the context of the current Virtual System

  • One Virtual System

  • A comma-separated list of Virtual Systems (for example, 1,2,4,5)

  • A range of Virtual Systems (for example, 3-5)

  • all - Shows all Virtual Systems

This parameter is only applicable in a VSXClosed Virtual System Extension. Check Point virtual networking solution, hosted on a computer or cluster with virtual abstractions of Check Point Security Gateways and other network devices. These Virtual Devices provide the same functionality as their physical counterparts. environment.

<Source IP Address>

Specifies the source IPv4 or IPv6 address.

<Source Port>

Specifies the source port number.

See IANA Service Name and Port Number Registry.

<Destination IP Address>

Specifies the destination IPv4 or IPv6 address.

<Destination Port>

Specifies the destination port number.

See IANA Service Name and Port Number Registry.

<Protocol>

Specifies the IP Protocol name or number.

See IANA Protocol Numbers.

-v

Shows connection indicators for:

This is in addition to the indicators for Active and Backup Security Group Members.

Notes:

  • You must enter the all parameters in the sequence as appears in the above syntax.

  • You can enter "\*" as a wildcard parameter (meaning, any value).

  • The "-vs" parameter is only available for a Security Group in VSX mode.

Examples

Searching in the Interactive Mode

In the Interactive Mode, you enter the connection search parameters in the required sequence.

Step

Instructions

1

Connect to the command line on the Security Group.

2

Go to GaiaClosed Check Point security operating system that combines the strengths of both SecurePlatform and IPSO operating systems. gClish: enter gclish and press Enter.

3

Run the command:

> asg search [-vs <VS IDs>] [-v]

4

Enter these parameters in the order below:

  1. Source IPv4 or IPv6 address.

  2. Destination IPv4 or IPv6 address.

  3. Destination port number.

    See IANA Service Name and Port Number Registry.

  4. IP protocol.

    See IANA Protocol Numbers.

  5. Source port number.

    See IANA Service Name and Port Number Registry.

Note - Press the Enter key to enter a wildcard value (meaning, any value).