Configuring Simple Filters

Simple filters are recommended for metropolitan Ethernet applications. They are supported on Gigabit Ethernet intelligent queuing (IQ2) and Enhanced Queuing Dense Port Concentrator (EQ DPC) interfaces only. Simple filters are not supported on Modular Port Concentrator (MPC) interfaces, including Enhanced Queuing MPC interfaces. Unlike standard filters, simple filters are for IPv4 traffic only and have the following restrictions:

To configure simple filters, include the simple-filter statement at the [edit firewall family inet] hierarchy level:

[edit firewall family inet]simple-filter filter-name {term term-name {from {match-conditions;}then {action-modifiers;}}}

For more information about Ethernet IQ2 PICs and EQ DPCs and related features, see the JUNOS Services Interfaces Configuration Guide and the JUNOS Class of Service Configuration Guide. For additional information about configuring the MX Series routers, on which EQ DPCs are supported, see the JUNOS MX Series Ethernet Services Routers Layer 2 Configuration Guide.

Example: Configuring a Simple Filter

Configure a simple filter to support Ethernet IQ2 PICs:

[edit]firewall {family inet {simple-filter sf-1 {term 1 {from {source-address 172.16.0.0/16;destination-address 20.16.0.0/16;source-port 1024-9071;}then {forwarding-class fc-be1;loss-priority high;accept;}}term 2 {from {source-address 173.16.0.0/16;destination-address 21.16.0.0/16;}then {forwarding-class fc-ef1;loss-priority low;accept;}}}}}