Security Policy Rules Overview
Security policy rules define how traffic is inspected, permitted, denied, or redirected as it traverses the network. Each rule specifies match conditions—such as source and destination zones, addresses, applications, and users—and the action the system takes when traffic matches those conditions.
Security policies apply security policy rules to the network traffic within a context, such as the from-zone to the to-zone. The network traffic is classified by matching the security policy rules. Each security policy is associated with these security policy rule characteristics:
| Context | Element |
|---|---|
|
Source |
|
|
Destination |
|
|
Applications and services |
|
|
Action and handling |
|
|
Time and schedule |
Policies that apply only during specific times or days |
|
Security posture and QoS |
|
These characteristics are called the match criteria. Each policy also has actions associated with it—permit, deny, reject, count, log, and VPN tunnel. You must specify the match condition arguments when you configure a security policy, source address, destination address, and application name.
Security Policy Rule Types
In Juniper Security Director Cloud, rules are classified into two types—zone-based rules and global rules.
| Zone-Based Rules | Global Rules |
|---|---|
|
Zone-based rules apply to traffic flowing between a specific source zone and destination zone.
|
Global rules apply to traffic regardless of zone context.
|
Security Policy Rules Workflow
This workflow shows how to create security policy rules.
| Category | Task | More Information |
|---|---|---|
| Select the security policy rule type | Determine whether the security policy rule is a zone-based rule or a global rule based on the required enforcement scope. | Add and Manage Security Policy Rules |
| Configure source zones | Specify the zones from which traffic originates. Source zones define where the policy is applied. | |
| Configure destination zones | Specify the zones to which traffic is directed. Destination zones help determine traffic flow and policy evaluation. | |
| Define source and destination addresses | Select address objects, address groups, or any predefined addresses that identify the traffic endpoints. | |
| Specify applications and services |
Configure specific applications or application groups to match and control traffic based on application identity. Specify services, ports, or protocols that the rule should match when evaluating traffic. |
|
| Select the rule action | Configure the action to take when traffic matches the rule, such as Permit, Reject, Deny, Redirect, or Tunnel. | |
| Attach security profiles | Associate IPS, Content Security, SSL Proxy, or other security profiles to inspect and protect permitted traffic. | |
| Configure an optional schedule | Apply a schedule to activate the rule only during specified dates or time periods. | |
| Configure logging options | Enable session initiation, session closure, or other logging settings to improve visibility and auditing. | |
| Position the rule in the policy | Arrange the rule appropriately within the rulebase because security policies are evaluated in order. | Reorder a Security Policy Rule |
| Review rule configuration | Verify that zones, addresses, applications, services, actions, and security profiles are configured correctly. | — |
Security Policy Rules Field Descriptions
You can view and manage security policy rules associated with SRX Series Firewalls. To access this page, click and click the security policy rule.
You can filter the security policy rules to get a better understanding of what you want to configure. You can filter security policy rules by fields such as Name, Action, Source Zone, Destination Zone, Applications, Services, and other security policy fields. These filters help you search, review, and audit large policy rule bases.
| Field | Description |
|---|---|
|
Seq |
The order number of the policy. The security policy lookup is performed in the order that the policies are configured. The first policy that matches the traffic is used. |
|
Hit Count |
The number of times a policy is used based on the traffic flow. The hit count is the number of hits since the last reset. For example, the hit count is useful when you are using a large policy set and want to verify which rules are highly used and which ones are rarely used. If you see that some of the rules are not being used, you can verify that the rules are not being shadowed by another policy. This helps you manage devices without having to generate traffic manually. |
|
Name |
The name of the security policy rule. |
|
Sources |
The source endpoint to which a security policy rule applies. A source endpoint consists of zones, addresses, and identities. |
|
Destinations |
The destination endpoint to which a security policy rule applies. A destination endpoint can be zones, addresses, and URL categories. |
|
Applications/Services |
The applications and services associated with the security policy. |
|
Action |
The action that applies to all traffic that matches the specified criteria.
|
|
Security Subscriptions |
The security subscription profiles that are applied to a security policy rule.
|
|
Options |
The scheduling, logging, and rule options applicable to the security policy rule. |
|
Deploy Status |
The deployment status of the security policy rule. |