[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

show services stateful-firewall flows

Syntax

show services stateful-firewall flows
<brief | extensive | summary | terse>
<application-protocol protocol>
<count>
<destination-port destination-port>
<destination-prefix destination-prefix>
<interface interface-name>
<limit number>
<pgcp>
<protocol protocol>
<service-set service-set>
<source-port source-port>
<source-prefix source-prefix>

Release Information

Command introduced before JUNOS Release 7.4.

pgcp option introduced in JUNOS Release 8.4.

Description

Display stateful firewall flow table entries.

Options

none — Display standard information about all stateful firewall flows.

brief | extensive | summary | terse — (Optional) Display the specified level of output.

application-protocol protocol(Optional) Display information about one of the following application protocols:

count — (Optional) Display a count of the matching entries.

destination-port destination-port(Optional) Display information for a particular destination port. The range of values is from 0 to 65535.

destination-prefix destination-prefix(Optional) Display information for a particular destination prefix.

interface interface-name(Optional) Display information about a particular interface. On M Series and T Series routers, interface-name can be sp-fpc/pic/port or rspnumber. On the J Series routers, interface-name is sp-pim/0/port.

limit number(Optional) Maximum number of entries to display.

pgcp — (Optional) Display stateful firewall information for Packet Gateway Control Protocol (PGCP) flows.

protocol protocol(Optional) Display information about one of the following IP protocol types:

service-set service-set(Optional) Display information for a particular service set.

source-port source-port(Optional) Display information for a particular source port. The range of values is from 0 to 65535.

source-prefix source-prefix(Optional) Display information for a particular source prefix.

Required Privilege Level

view

Related Topics

clear services stateful-firewall flows

List of Sample Output

show services stateful-firewall flows
show services stateful-firewall flows brief
show services stateful-firewall flows extensive
show services stateful-firewall flows count
show services stateful-firewall flows destination port
show services stateful-firewall flows source port
show services stateful-firewall flows (Twice NAT)

Output Fields

Table 283 lists the output fields for the show services stateful-firewall flows command. Output fields are listed in the approximate order in which they appear.

Table 283: show services stateful-firewall flows Output Fields

Field Name

Field Description

Interface

Name of the interface.

Service set

Name of a service set. Individual empty service sets are not displayed. If no service set has any flows, a flow table header is displayed for each service set.

Flow Count

Number of flows in a session.

Flow or Flow Prot

Protocol used for this flow.

Source

Source prefix of the flow in the format source-prefix:port. For ICMP flows, port information is not displayed.

Dest

Destination prefix of the flow. For ICMP flows, port information is not displayed.

State

Status of the flow:

  • Drop—Drop all packets in the flow without response.
  • Forward—Forward the packet in the flow without looking at it.
  • Reject—Drop all packets in the flow with response.
  • Watch—Inspect packets in the flow.

Dir

Direction of the flow: input (I) or output (O).

Frm count

Number of frames in the flow.

Sample Output

show services stateful-firewall flows

user@host> show services stateful-firewall flows
Interface: sp-1/3/0, Service set: green

Flow       
Prot     Source                 Dest               State      Dir     Frm count
TCP     10.58.255.178:23   ->    10.59.16.100:4000 Forward    O               
TCP      10.58.255.50:33005->   10.58.255.178:23   Forward    I              1
  Source NAT    10.58.255.50:33005->    10.59.16.100:4000
  Destin NAT    10.58.255.178:23   ->         0.0.0.0:4000

show services stateful-firewall flows brief

The output for the show services stateful-firewall flows brief command is identical to that for the show services stateful-firewall flows command. For sample output, see show services stateful-firewall flows.

show services stateful-firewall flows extensive

user@host> show services stateful-firewall flows extensive
Interface: sp-0/3/0, Service set: ss_nat
Flow                                                				State    	Dir       Frm count
TCP           16.1.0.1:2330  ->      16.49.0.1:21    				Forward  		I              8
    NAT source        16.1.0.1:2330    ->       16.41.0.1:2330
    NAT dest         16.49.0.1:21      ->       16.99.0.1:21
  Byte count: 455, TCP established, TCP window size: 57344
  TCP acknowledge: 3251737524, TCP tickle enabled, tcp_tickle: 0
  Flow role: Master, Timeout: 720
TCP          16.99.0.1:21    ->      16.41.0.1:2330  				Forward  		O              5
    NAT source       16.99.0.1:21      ->       16.49.0.1:21
    NAT dest         16.41.0.1:2330    ->        16.1.0.1:2330
  Byte count: 480, TCP established, TCP window size: 57344
  TCP acknowledge: 463128048, TCP tickle enabled, tcp_tickle: 0
  Flow role: Responder, Timeout: 720

show services stateful-firewall flows count

user@host> show services stateful-firewall flows count
Interface             Service set                                    Flow Count

sp-1/3/0              green                                                   2

show services stateful-firewall flows destination port

user@router> show services stateful-firewall flows destination-port 21
Interface: sp-0/3/0, Service set: svc_set_trust
Flow
                                                State    Dir       Frm count
Interface: sp-0/3/0, Service set: svc_set_untrust
Flow                                                State    Dir       Frm count
TCP         10.50.10.2:2143  ->     10.50.20.2:21    Watch    O               0

show services stateful-firewall flows source port

user@router> show services stateful-firewall flows source-port 2143
Interface: sp-0/3/0, Service set: svc_set_trust
Flow   
                                             State    Dir       Frm count
Interface: sp-0/3/0, Service set: svc_set_untrust
Flow                                                State    Dir       Frm count
TCP         10.50.10.2:2143  ->     10.50.20.2:21    Watch    O               0

show services stateful-firewall flows (Twice NAT)

user@router> show services stateful-firewall flows
Flow                                               State    Dir       Frm count
UDP          40.0.0.8:23439 ->     80.0.0.1:16485   Watch    I             20
    NAT source        40.0.0.8:23439   ->     172.16.1.10:1028
    NAT dest          80.0.0,1:16485   ->     192.16.1.10:22415
UDP      192.16.1.10:22415  ->  172.16.1.10:1028    Watch    O             20
    NAT source     192.16.1.10:22415   ->        80.0.0.1:16485
    NAT dest       172.16.1.10:1028    ->        40.0.0.8:23439

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]