16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9: Firewall Filter <strong>Configuration</strong><br />

Configuring Filter-Based Forwarding<br />

}<br />

You can configure filters to classify packets based on source address and specify the<br />

forwarding path the packets take within the router by configuring a filter on the ingress<br />

interface. For example, you can use this filter for applications to differentiate traffic from<br />

two clients that have a common access layer (for example, a Layer 2 switch) but are<br />

connected to different Internet service providers (ISPs). When the filter is applied, the<br />

router can differentiate the two traffic streams and direct each to the appropriate network.<br />

Depending on the media type the client is using, the filter can use the source IP address<br />

to forward the traffic to the corresponding network through a tunnel. You can also<br />

configure filters to classify packets based on IP protocol type or IP precedence bits.<br />

NOTE: Source-class usage filter matching and unicast reverse-path<br />

forwarding checks are not supported on an interface configured with<br />

filter-based forwarding (FBF).<br />

You can also forward packets based on output filters by configuring a filter on the egress<br />

interfaces. In the case of port mirroring, it is useful for port-mirrored packets to be<br />

distributed to multiple monitoring PICs and collection PICs based on patterns in packet<br />

headers. FBF on the port-mirroring egress interface must be configured.<br />

Packets forwarded to the output filter have been through at least one route lookup when<br />

an FBF filter is configured on the egress interface. After the packet is classified at the<br />

egress interface by the FBF filter, it is redirected to another routing table for further route<br />

lookup.<br />

Filter-based forwarding is supported for IPv4 and IPv6.<br />

To direct traffic meeting defined match conditions to a specific routing instance, include<br />

the routing-instance filter action:<br />

routing-instance routing-instance;<br />

For IPv4 traffic, include the action at the [edit firewall family inet filter filter-name term<br />

term-name then] hierarchy level. For IPv6 traffic, include the action at the [edit firewall<br />

family inet6 filter filter-name term term-name then] hierarchy level. For MPLS traffic,<br />

configure the filter terms at the [edit firewall family mpls filter filter-name term term-name<br />

then] hierarchy level.<br />

The routing-instance filter action accepts the traffic meeting the match conditions and<br />

directs it to the routing instance named in routing-instance. For information about<br />

forwarding instances and routing instances, see the Junos OS Routing Protocols<br />

<strong>Configuration</strong> <strong>Guide</strong>.<br />

NOTE: In Junos OS Release 9.0 and later, you can no longer specify a<br />

routing-instance name of default or include special characters within the<br />

name of a routing instance.<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

269

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!