![Juniper JUNOS OS 10.3 - SOFTWARE Manual Download Page 3161](http://html.mh-extra.com/html/juniper/junos-os-10-3-software/junos-os-10-3-software_manual_20327933161.webp)
NOTE:
For EX2200 switches, the maximum number of terms allowed per
firewall filter is 512. For EX3200 and EX4200 switches, the maximum
number of terms allowed per firewall filter is 2048. For EX8200 switches,
the maximum number of terms allowed per firewall filter is 32768. If you
attempt to configure a firewall filter that exceeds these limits, the switch
returns an error message when you commit the configuration.
5.
In each firewall filter term, specify the match conditions to use to match components
of a packet.
To specify match conditions to match on packets that contain a specific
source-address and source-port—for example:
[edit firewall family ethernet-switching filter ingress-port-filter term
term-one]
user@switch#
set
from
source-address 192.0.2.14
user@switch#
set from source-port 80
You can specify one or more match conditions in a single
from
statement. For a match
to occur, the packet must match all the conditions in the term.
The
from
statement is optional, but if included in a term, the
from
statement cannot
be empty. If you omit the
from
statement, all packets are considered to match.
6.
In each firewall filter term, specify the actions to take if the packet matches all the
conditions in that term.
You can specify an action and/or action modifiers:
•
To specify a filter action, for example, to discard packets that match the conditions
of the filter term:
[edit firewall family ethernet-switching filter ingress-port-filter term
term-one]
user@switch#
set then discard
You can specify no more than one action (
accept
,
discard
, or
routing-instance
) per
filter term.
•
To specify action modifiers, for example, to count and classify packets in a forwarding
class:
[edit firewall family ethernet-switching filter ingress-port-filter term
term-one]
user@switch#
set
then
count counter-one
user@switch#
set then forwarding-class expedited-forwarding
3065
Copyright © 2010, Juniper Networks, Inc.
Chapter 102: Configuring Firewall Filters
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...