See the following sections:
- simple-filter {
- input filter-name;
- }
- [edit interfaces interface-name unit logical-unit-number family inet],
- [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family inet]
Statement introduced in JUNOS Release 7.6.
Apply a simple filter to an interface. You can apply simple filters to the family inet only, and only in the input direction.
input filter-name—Name of one filter to evaluate when packets are received on the interface.
See Classifying Packets Based on Multiple Fields; for a general discussion of this statement, see the JUNOS Network Interfaces Configuration Guide.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- simple-filter filter-name {
-
-
term term-name {
-
-
from {
-
match-conditions;
- }
-
-
then {
-
forwarding-class class-name;
-
loss-priority (high | low | medium);
- }
- }
- }
- [edit firewall family inet filter filter-name]
Statement introduced in JUNOS Release 7.6.
Define a simple filter. Simple filters are recommended for metropolitan Ethernet applications.
from—Match packet fields to values. If the from option is not included, all packets are considered to match and the actions and action modifiers in the then statement are taken.
match-conditions—One or more conditions to use to make a match. The conditions are described in the JUNOS Policy Framework Configuration Guide.
term-name—Name that identifies the term. The name can contain letters, numbers, and hyphens (-), and can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (" " ).
then—Actions to take on matching packets. If the then option is not included and a packet matches all the conditions in the from statement, the packet is accepted.
The remaining statements are explained separately. Only forwarding-class and loss-priority are valid in a simple filter configuration.
See Classifying Packets Based on Multiple Fields; for a general discussion of this statement, see the JUNOS Policy Framework Configuration Guide.
firewall—To view this statement in the configuration.
firewall-control—To add this statement to the configuration.
filter, simple-filter (Applying to an Interface)