Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > EX Series > Understanding How Firewall Filters Are Evaluated
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

EX Series Search

Advanced Search |  Search Tips
 

Supported Platforms

  • EX Series
 
 

Related Documentation

  • EX Series
  • Firewall Filters for EX Series Switches Overview
  • Understanding Firewall Filter Match Conditions
  • Understanding the Use of Policers in Firewall Filters
  • Example: Configuring Firewall Filters for Port, VLAN, and Router Traffic on EX Series Switches
 
Recent Community Posts
Show All Show Fewer 
 
 
Related Links
EX Series Product Literature
  • Junos Central
  • Junos Technotes
  • Junos Day One Books
Enterprise Routing and Switching Certification Track
  • Fast Track Certification Program
  • Certification Study Guides
Junos Technical Education Courses (Free)
  • Networking Fundamentals
  • Junos As A Second Language
  • Junos As A Scripting Language
  • Junos As A Switching Language
  • Juniper Networks Books
Support
  • Junos Software (Canada & US)  Login required
  • Junos Software (Worldwide) Login required
  • Knowledge Base - Browse EX Series Articles  Login required
  • Technical Bulletins for EX Series Login required
  • IOS to Junos Migration Tool Login required
Show All Show Fewer 
 
 

Understanding How Firewall Filters Are Evaluated

A firewall filter consists of one or more terms, and the order of the terms within a firewall filter is important. Before you configure firewall filters, you should understand how Juniper Networks EX Series Ethernet Switches evaluate the terms within a firewall filter and how packets are evaluated against the terms.

When a firewall filter consists of a single term, the filter is evaluated as follows:

  • If the packet matches all the conditions, the action in the then statement is taken.
  • If the packet matches all the conditions, and no action is specified in the then statement, the default action accept is taken.

When a firewall filter consists of more than one term, the firewall filter is evaluated sequentially:

  1. The packet is evaluated against the conditions in the from statement in the first term.
  2. If the packet matches all the conditions in the term, the action in the then statement is taken and the evaluation ends. Subsequent terms in the filter are not evaluated.
  3. If the packet does not match all the conditions in the term, the packet is evaluated against the conditions in the from statement in the second term.

    This process continues until either the packet matches the conditions in the from statement in one of the subsequent terms or there are no more terms in the filter.

  4. If a packet passes through all the terms in the filter without a match, the packet is discarded.

Figure 1 shows how an EX Series switch evaluates the terms within a firewall filter.

Figure 1: Evaluation of Terms Within a Firewall Filter

Image g020035-175.gif

If a term does not contain a from statement, the packet is considered to match and the action in the then statement of the term is taken.

If a term does not contain a then statement, or if an action has not been configured in the then statement, and the packet matches the conditions in the from statement of the term, the packet is accepted.

Every firewall filter contains an implicit deny statement at the end of the filter, which is equivalent to the following explicit filter term:

term implicit-rule {then discard;}

Consequently, if a packet passes through all the terms in a filter without matching any conditions, the packet is discarded. If you configure a firewall filter that has no terms, all packets that pass through the filter are discarded.

Note: Firewall filtering is supported on packets that are at least 48 bytes long.

 

Related Documentation

  • EX Series
  • Firewall Filters for EX Series Switches Overview
  • Understanding Firewall Filter Match Conditions
  • Understanding the Use of Policers in Firewall Filters
  • Example: Configuring Firewall Filters for Port, VLAN, and Router Traffic on EX Series Switches
 

Published: 2011-01-30

 
  • About Juniper
  • The New Network
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out