Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show firewall

    Syntax

    show firewall<filter filter-name><counter counter-name><log><logical-system (all | logical-system-name)><terse>

    Syntax (EX Series Switches)

    show firewall<counter counter-name><filter filter-name><log <(detail | interface interface-name)>><policer counters <(detail | counter-id counter-index <detail>)>><terse>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    logical-system option introduced in Junos OS Release 9.3.

    terse option introduced in Junos OS Release 9.4.

    Option policer counters introduced in Junos OS Release 12.2 for EX Series switches.

    Description

    Display statistics about configured firewall filters.

    Options

    none
    —

    (Optional) Display statistics about all configured firewall filters and counters. For EX Series switches, this command also displays statistics about all configured policers.

    counter counter-name
    —

    (Optional) Name of a filter counter.

    filter filter-name
    —

    (Optional) Name of a configured filter.

    logical-system (all | logical-system-name)
    —

    (Optional) Perform this operation on all logical systems or on a particular system.

    log
    —

    (Optional) Display log entries for firewall filters.

    log <(detail | interface interface-name)>
    —

    (EX Series switches only) (Optional) Display detailed log entries of firewall activity or log information about a specific interface.

    policer counters <(detail | counter-id counter-index <detail>)>
    —

    (EX8200 switches only) (Optional) Display policer counter statistics in brief or in detail.

    terse
    —

    (Optional) Display firewall filter names only.

    Required Privilege Level

    view

    List of Sample Output

    show firewall filter
    show firewall filter (Dynamic Input Filter)
    show firewall (Logical Systems)
    show firewall (counter counter-name)
    show firewall log
    show firewall policer counters (EX8200 Switch)
    show firewall policer counters (detail) (EX8200 Switch)
    show firewall policer counters (counter-id counter-index) (EX8200 Switch)
    show firewall policer counters (counter-id counter-index detail) (EX8200 Switch)

    Output Fields

    Table 1 lists the output fields for the show firewall command. Output fields are listed in the approximate order in which they appear.

    Table 1: show firewall Output Fields

    Field Name

    Field Description

    Filter

    Name of a filter that has been configured with the filter statement at the [edit firewall] hierarchy level.

    Except on EX Series switches:

    • When an interface-specific filter is displayed, the name of the filter is followed by the full interface name and by either -i for an input filter or -o for an output filter.

    • When dynamic filters are displayed, the name of the filter is followed by the full interface name and by either -in for an input filter or -out for an output filter. When a logical system–specific filter is displayed, the name of the filter is prefixed with two underscore (__) characters and the name of the logical system (for example, __ls1/filter1).

    Counters

    Display filter counter information:

    • Name—Name of a filter counter that has been configured with the counter firewall filter action.
    • Bytes—Number of bytes that match the filter term under which the counter action is specified.
    • Packets—Number of packets that matched the filter term under which the counter action is specified.

    Note: On M and T series routers, firewall filters cannot count ip-options packets on a per option type and per interface basis. A limited work around is to use the show pfe statistics ip options command to see ip-options statistics on a per Packet Forwarding Engine (PFE) basis. See show pfe statistics ip for sample output.

    Policers

    Display policer information:

    • Name—Name of policer.
    • Bytes—(I-chip DPCs only) Number of bytes that match the filter term under which the policer action is specified. This is only the number out-of-specification (out-of-spec) byte counts, not all the bytes in all packets policed by the policer.
    • Packets—Number of packets that matched the filter term under which the policer action is specified. This is only the number of out-of-specification (out-of-spec) packet counts, not all packets policed by the policer.

    Policer Counter Index

    (EX8200 switch only) Global management counter ID. The counter ID value (counter-index) can be 0, 1, or 2.

    Green

    (EX8200 switch only) Number of packets within the limits. The number of packets is smaller than the committed information rate (CIR).

    Yellow

    (EX8200 switch only) Number of packets partially within the limits. The number of packets is greater than the CIR, but the burst size is within the excess burst size (EBS) limit.

    Discard

    (EX8200 switch only) Number of discarded packets.

    Bytes

    (EX8200 switch only) Number of green, yellow, red, or discarded packets in bytes.

    Packets

    (EX8200 switch only) Number of green, yellow, red, or discarded packets.

    Filter name

    (EX8200 switch only) Name of the filter with a term associated to a policer.

    Term name

    (EX8200 switch only) Name of the term associated with a policer.

    Policer name

    (EX8200 switch only) Name of the policer that is associated with a global management counter.

    Sample Output

    show firewall filter

    user@host> show firewall filter test
    Filter: test                                                   
    Counters:
    Name                            Bytes             Packets
    Counter-1                           0                   0
    Counter-2                           0                   0
    Policers:
    Name                            Bytes             Packets
    Policer-1                        2770                  70
    

    show firewall filter (Dynamic Input Filter)

    user@host> show firewall filter dfwd-ge-5/0/0.1-in
    Filter: dfwd-ge-5/0/0.1-in                                     
    Counters:
    Name                                                Bytes              Packets
    c1-ge-5/0/0.1-in                                        0                    0
    
    

    show firewall (Logical Systems)

    user@host>show firewall
    Filter: __lr1/test                                            
    Counters:
    Name                                                Bytes              Packets
    icmp                                                  420                    5
    Filter: __default_bpdu_filter__                                
    Filter: __lr1/inet_filter1                                    
    Counters:
    Name                                                Bytes              Packets
    inet_tcp_count                                          0                    0
    inet_udp_count                                          0                    0
    Filter: __lr1/inet_filter2                                    
    Counters:
    Name                                                Bytes              Packets
    inet_icmp_count                                         0                    0
    inet_pim_count                                          0                    0
    Filter: __lr2/inet_filter1                                    
    Counters:
    Name                                                Bytes              Packets
    inet_tcp_count                                          0                    0
    inet_udp_count                                          0                    0
    
    

    show firewall (counter counter-name)

    user@host> show firewall counter icmp-counter
    Filter: ingress-port-voip-class-filter
    Counters:
    Name                                                Bytes              Packets
    icmp-counter                                            0                    0
    

    show firewall log

    user@host> show firewall log
    Log :
    
    Time      Filter    Action Interface     Protocol        Src Addr                         Dest Addr
    08:00:53  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5	                   192.168.3.4
    08:00:52  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    08:00:51  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    08:00:50  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    08:00:49  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    08:00:48  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    08:00:47  pfe       R      ge-1/0/1.0    ICMP            192.168.3.5                     192.168.3.4
    
    

    show firewall policer counters (EX8200 Switch)

    user@switch> show firewall policer counters
    Policer Counter Index 0:
                              Bytes            Packets
    Green:                       73              15914
    Yellow:                       9               1962
    Discard:                    119              25942
    
    Policer Counter Index 1:
                               Bytes            Packets
    Green:                         0                  0
    Yellow:                        0                  0
    Discard:                       0                  0
    
    Policer Counter Index 2:
                               Bytes            Packets
    Green:                         0                  0
    Yellow:                        0                  0
    Discard:                       0                  0

    show firewall policer counters (detail) (EX8200 Switch)

    user@switch> show firewall policer counters detail
    Policer Counter Index 0:
                              Bytes            Packets
    Green:                       73              15914
    Yellow:                       9               1962
    Discard:                    119              25942
    
    Filter name                Term name           Policer name
    myfilter                   polcr-term-1        myfilter-polcr-1
    inet-filter-ae             ae-snmp             policer-1
    inet-filter-ae             ae-ssh              policer-2
    
    Policer Counter Index 1:
                              Bytes            Packets
    Green:                        0                  0
    Yellow:                       0                  0
    Discard:                      0                  0
    
    Filter name                Term name           Policer name
    
    Policer Counter Index 2:
                              Bytes            Packets
    Green:                        0                  0
    Yellow:                       0                  0
    Discard:                      0                  0
    
    Filter name                Term name           Policer name

    show firewall policer counters (counter-id counter-index) (EX8200 Switch)

    user@switch> show firewall policer counters counter-id 0
    Policer Counter Index 0:
                              Bytes            Packets
    Green:                       73              15914
    Yellow:                       9               1962
    Discard:                    119              25942

    show firewall policer counters (counter-id counter-index detail) (EX8200 Switch)

    user@switch> show firewall policer counters counter-id 0 detail
    Policer Counter Index 0:
                              Bytes            Packets
    Green:                       73              15914
    Yellow:                       9               1962
    Discard:                    119              25942
    
    Filter name                Term name           Policer name
    myfilter                   polcr-term-1        myfilter-polcr-1
    inet-filter-ae             ae-snmp             policer-1
    inet-filter-ae             ae-ssh              policer-2

    Published: 2013-07-12