fw ctl conntab

Description

Shows formatted list of current connections from the Connections kernel table (ID 8158).

Use this command if you want to see the simplified information about the current connections.

Best Practices:

  • Use the "fw ctl conntab" command to see the simplified information about the current connections.

  • Use the "fw tab -t connections -f" command (fw tab) to see the detailed (and more technical) information about the current connections.

Important:

Syntax

Important - You can specify many parameters at the same time.

fw ctl conntab {-h | -help}

fw [-d] ctl conntab [-x]

      -sip=<Source IP Address in Decimal Format>

      -sport=<Port Number in Decimal Format>

      -dip=<Destination IP Address>

      -dport=<Port Number in Decimal Format>

      -proto=<Protocol Number in Decimal Format>

      -service=<Name of Service>

      -rule=<Rule Number in Decimal Format>

      -state=<State>

      -type=<Type>

      -flags=<Flags>

Parameters

Parameter

Description

-h

-help}

Shows the built-in usage.

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

Best Practice - If you use this parameter, then redirect the output to a file, or use the script command to save the entire CLI session.

-x

Deletes entries that match the specified filters.

Without this parameter, the command only shows entries that match the specified filters.

-sip=<Source IP Address in Decimal Format>

Filters the output by the specified Source IP address.

Note - The value can be a range of IP addresses:

<IP_address_1>-<IP_address_2>

Examples:

-sip=192.168.3.57

-sip=192.168.3.55-192.168.3.66

-sport=<Port Number in Decimal Format>

Filters the output by the specified Source Port number.

See IANA Service Name and Port Number Registry.

Note - The value can be a range of port numbers:

<port_1>-<port_2>

Examples:

  • -sport=35598

  • -sport=33000-33320

-dip=<Destination IP Address in Decimal Format>

Filters the output by the specified Destination IP address.

Note - The value can be a range of IP addresses:

<IP_address_1>-<IP_address_2>

Examples:

  • -dip=192.168.3.57

  • -dip=192.168.3.55-192.168.3.66

-dport=<Port Number in Decimal Format>

Filters the output by the specified Destination Port number.

See IANA Service Name and Port Number Registry.

Note - The value can be a range of port numbers:

<port_1>-<port_2>

Examples:

  • -dport=80

  • -dport=80-88

-proto=<Protocol Number in Decimal Format>

Filters the output by the specified Protocol number.

See IANA Protocol Numbers.

Notes:

  • For the protocols TCP, UDP, and ICMP, you can also specify the protocol name in all lowercase letters (tcp, udp, icmp) or all uppercase letters (TCP, UDP, ICMP).

  • For protocols other than TCP, UDP, and ICMP, you must specify the protocol number.

Examples:

  • -proto=6

    -proto=TCP

    Filters the output for TCP.

  • -proto=11

    -proto=UDP

    Filters the output for UDP.

  • -proto=1

    -proto=ICMP

    Filters the output for ICMP.

-service=<Name of Service>

Filters the output by the specified Service name.

Notes:

Examples:

  • -service=http

  • -service=https

  • -service=391

-rule=<Rule Number in Decimal Format>

See your Access Control Policy in SmartConsole, or in the output of the command.

Note - The value can be a range of ruleClosed Set of traffic parameters and other conditions in a Rule Base (Security Policy) that cause specified actions to be taken for a communication session. numbers:

<rule_1>-<rule_2>

Examples:

  • -rule=1

  • -rule=5-8

-state=<State>

Filters the output by the specified TCP State:

  • -state=SYN_SENT

    Filters the output for TCP connections with SYN.

  • -state=SYN_ACK

    Filters the output for TCP connections with SYN-ACK.

  • -state=ESTABLISHED

    Filters the output for established TCP connections.

  • -state=SRC_FIN

    Filters the output for TCP connections with SYN-FIN from a source.

  • -state=DST_FIN

    Filters the output for TCP connections with SYN-FIN from a destination.

  • -state=BOTH_FIN

    Filters the output for TCP connections with SYN-FIN from both a source and a destination.

Notes:

  • You can specify the value in all lowercase letters or all uppercase letters.

  • The parameter "-state" is not supported together with the parameters "-type" or "-flags".

-type=<Type>

Filters the output by the specified Connection Type bitmask.

Note - The parameter "-type" is not supported together with the parameter "-state".

To see the Connection Type bitmask value of a connection entry:

  1. Run:

    fw tab -u -t connections

  2. Immediately after the tuple, after the semi-colon, refer to the first value.

    In sk65133, this value is denoted as "R_CTYPE".

You must specify Type bitmask in this format:

-type=0x<Bits to Select>/0x<Value of 'R_CTYPE'>

Where:

  • 0x<Value of 'R_CTYPE'>

    Specifies the "r_ctype" value of a connection entry.

  • 0x<Bits to Select>

    Specifies the bits that should be selected out of the "R_CTYPE" value.

-type=<Flags>

Filters the output by the specified Connection Flag bitmask.

Note - The parameter "-flags" is not supported together with the parameter "-state".

To see the Connection Flag bitmask value of a connection entry:

  1. Run:

    fw tab -u -t connections

  2. Immediately after the tuple, after the semi-colon, refer to the second value.

    In sk65133, this value is denoted as "R_CFLAGS".

You must specify Type bitmask in this format:

-type=0x<Bits to Select>/0x<Value of 'R_CFLAGS'>

Where:

  • 0x<Value of 'R_CFLAGS'>

    Specifies the "R_CFLAGS" value of a connection entry.

  • 0x<Bits to Select>

    Specifies the bits that should be selected out of the "r_ctype" value

Examples