Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Add a Rule

 

You are here: Security Policies & Objects > Security Policies.

Note

To reference UTM policies and AppQoS profiles in a security policy rules, you can create them before creating or editing security policy rules if required. To create UTM policies, go to Security Services > UTM > UTM Policies and to create AppQoS profiles, go to Network > Application QoS.

To add a rule:

  1. Click the add icon (+) on the upper right side of the Security Policies page.

    The inline editable fields will appear.

  2. Complete the configuration according to the guidelines provided in Table 1.
  3. Click the tick icon on the right-side of the row once done with the configuration.Note

    Scroll back the horizontal bar if the inline tick and cancel icons are not available when creating a new rule.

  4. Click Save to save the changes or click Discard to discard the changes.Note

    You must perform Step3 and Step4 before performing any further actions in the J-Web UI.

Table 1: Fields on the Security Policies Page

Field

Action

Rule Name

Enter a name for the new rule or policy.

Rule Description

Enter a description for the security policy.

Global Policy

Enable this option to specify that the policy defined is a global policy and zones are not required.

Source Zone

To add sources:

  1. Click +.

    The Select Sources page appears.

  2. Enter the following details:
    • Zone—Select the source zone from the list to which you want the rule to be associated.

    • Addresses—Select any or Specific.

      To select a specific address, select the addresses from the Available column and then click the right arrow to move it to the Selected column. You can select Exclude Selected to exclude the selected address from the list.

      To create a new address, click +. The Create Address page appears. For more information on fields, see Table 2.

    • Source Identity—Select the user identity from the Available column and then click the right arrow to move it to the Selected column.

      To create a new source identity, click +. Enter a new user name or identity in the Create Source Identity page and click OK.

Destination Zone

To add a destination:

  1. Click +.

    The Select Destination page appears.

  2. Enter the following details:
    • Zone—Select the destination zone from the list to which you want the rule to be associated.

    • Addresses—Select any or Specific.

      To select a specific address, select the addresses from the Available column and then click the right arrow to move it to the Selected column. You can select Exclude Selected to exclude the selected address from the list.

      To create a new address, click +. For more information on fields, see Table 2.

      Note:

    • Dynamic Applications—Select Any, Specific, or None.

      Note: The Dynamic Applications option is not supported for tenants.

      To select a specific application, select the application from the Available column and then click the right arrow to move it to the Selected column.

      Note: The select all check box is only available when you search for specific dynamic applications.

      To create a new application, click +. The Create Application Signature page appears. For more information on fields, see Add Application Signatures.

      Note: For logical systems, you cannot create a new dynamic application inline.

    • Services—Select Any, Specific, or None.

      To select a specific service, select the service from the Available column and then click the right arrow to move it to the Selected column.

      To create a new service, click +. The Create Service page appears. For more information on fields, see Table 3.

    • URL Category—Select any, Specific, or None to match criteria for web filtering category.

      To select a specific URL category, select the URL category from the Available column and then click the right arrow to move it to the Selected column.

      Note: This option is not available for logical systems and tenants.

Action

Select an option to specify the action to be taken when traffic matches the criteria:

  • Permit—Allows packet to pass through the firewall.

  • Deny—Block and drop the packet, but do not send notification back to the source.

  • Reject—Block and drop the packet and send a notice to the source host.

Advanced Security

Click +. The Select Advanced Security page appears.

Note:

  • When the action is Reject:

    • You can configure only the SSL Proxy and Redirect Profile options.

    • You can configure only the SSL Proxy option if the dynamic application is None.

    • Advanced Security option will not be supported for logical systems and tenants.

  • When the action is Permit:

    • For logical systems, only IPS, IPS policy, UTM, threat prevention policy, and ICAP redirect profile and AppQOS options are supported.

    • For tenant systems, only threat prevention policy and AppQOS are supported.

IPS

Select Off or On from the list. If you select On, the IPS Policy field will be disabled.

Note: If IPS policy is already configured for rules, ensure you do not select On for IPS. If you select the IPS as On, the commit will fail.

IPS Policy

Select the IPS policy from the list.

Note: If IPS is On and the IPS policy is not already configured for rules, ensure you do not select for IPS policy from the list. If you select the IPS policy from the list, the commit will fail.

UTM

Select the UTM policy you want to associate with this rule from the list. The list displays all the UTM policies available.

If you want to create a new UTM policy, click Add New. The Create UTM Policies page appears. For more information on creating a new UTM policy, see Add a UTM Policy.

SSL Proxy

Select the SSL proxy policy to associate with this rule from the list.

IPsec VPN

Select the IPsec VPN tunnel from the list.

Note: If you select Dynamic applications in the destination, IPsec VPN option will not be supported.

Pair Policy Name

Enter the name of the policy with the same IPsec VPN in the opposite direction to create a pair policy.

Note: If you select Dynamic applications in the destination, Pair Policy Name option will not be supported.

Threat Prevention Policy

Select the configured threat prevention policy from the list.

ICAP Redirect Profile

Select the configured ICAP redirect profile name from the list.

Application QoS Profile

Select the configured AppQoS profile from the list.

If you want to create a new AppQoS profile, click Add New. The Add AppQoS Profile page appears. For more information on creating a new AppQoS profile, see Add an Application QoS Profile.

Rule Options

Click on Rule Options. The SELECT RULE OPTIONS page appears.

Logging

Session Initiate

Enable this option to log an event when a session is created.

Session Close

Enable this option to log an event when the session closes.

Count

Enable this option to collect statistics of the number of packets, bytes, and sessions that pass through the firewall with this policy.

Specifies statistical counts. An alarm is triggered whenever traffic exceeds specified packet and byte thresholds.

Note: Alarm threshold fields are disabled if Enable Count is not enabled.

Authentication

Note:

  • If you select Dynamic applications in the destination, Authentication option will not be supported.

  • This option is not supported for logical systems and tenant systems.

Push Auth Entry to JIMS

Enable this option to push authentication entries from firewall authentication, that are in auth-success state, to Juniper Identity Management Server (JIMS). This will enable the SRX device to query JIMS to get IP/user mapping and device information.

Type

Select the firewall authentication type from the list. The options available are: None, Pass-through, User-firewall, and Web-authentication.

Access Profile

Select an access profile from the list.

Note: This option is not supported if you select the authentication type as Web-authentication.

Client Name

Enter the client username or client user group name.

Note: This option is not supported if you select the authentication type as User-firewall.

Domain

Select a domain name that must be in a client name from the list.

Note: This option is supported only if you select the authentication type as User-firewall.

Web Redirect

Enable this option to redirect HTTP requests to the device’s internal webserver by sending a redirect HTTP response to the client system to reconnect to the webserver for user authentication.

Note: This option is not supported if you select the authentication type as Web-authentication.

Web Redirect Https

Enable this option to redirect unauthenticated HTTP requests to the internal HTTPS webserver of the device.

Note: This option is not supported if you select the authentication type as Web-authentication.

Auth Only Browser

Enable this option to drop non-browser HTTP traffic to allow for captive portal to be presented to unauthenticated users who request access using a browser.

Note: This option is not supported if you select the authentication type as Web-authentication.

User Agents

Enter a user-agent value which is used to verify that the user’s browser traffic is HTTP/HTTPS traffic.

Note: This option is not supported if you select the authentication type as Web-authentication.

Advanced Settings

Destination Address Translation

Select the action to be taken on a destination address translation from the list. The options available are: None, Drop Translated, and Drop Untranslated.

Redirect Options

Select a redirect action from the list. The options available are: None, Redirect Wx, and Reverse Redirect Wx.

Note: This option is not supported for SRX5000 line of devices.

TCP Session Options

Sequence number check

Enable or disable checking of sequence numbers in TCP segments during stateful inspections at policy rule level. By default, the check happens at the global level. To avoid commit failure, turn off Sequence number check under Global Options > Flow > TCP Session.

SYN flag check

Enable or disable the checking of the TCP SYN bit before creating a session at policy rule level. By default, the check happens at the global level. To avoid commit failure, turn off SYN flag check under Global Options > Flow > TCP Session.

Schedule

Schedule

Click Schedule and select one of the configured schedules from the list.

To add a new schedule, click Add New Schedule. The Add New Schedule page appears. For more information on creating a new schedule, see Table 4.

Table 2: Fields on the Create Address Page

Field

Action

Name

Enter a name for the address. The name must be a unique string that must begin with an alphanumeric character and can include colons, periods, dashes, and underscores; no spaces allowed; 63-character maximum.

IP Type

Select IPv4 or IPv6.

IPv4

IPv4 Address

Enter a valid IPv4 address.

Subnet

Enter a subnet mask for the IPv4 address.

IPv6

IPv6 Address

Enter a valid IPv6 address.

Subnet Prefix

Enter a subnet prefix for the IPv6 address.

Table 3: Fields on the Create Service Page

Field

Action

Global Settings

Name

Enter a unique name for the application.

Description

Enter description of the application.

Application Protocol

Select an option from the list for application protocol.

Match IP protocol

Select an option from the list to match IP protocol.

Source Port

Select an option from the list for source port.

Destination Port

Select an option from the list for destination port.

ICMP Type

Select an option from the list for ICMP message type.

ICMP Code

Select an option from the list for ICMP message code.

RPC program numbers

Enter a value for RPC program numbers.

The format of the value must be W or X-Y. Where, W, X, and Y are integers between 0 and 65535.

Inactivity Timeout

Select an option from the list for application specific inactivity timeout.

UUID

Enter a value for DCE RPC objects.

Note: The format of the value must be 12345678-1234-1234-1234-123456789012.

Custom Application Group

Select an application set name from the list.

Terms

Click +. The Create Term page appears.

Name

Enter a name for the term.

ALG

Select an option from the list for ALG.

Match IP protocol

Select an option from the list to match IP protocol.

Source Port

Select an option from the list for source port.

Destination Port

Select an option from the list for destination port.

ICMP Type

Select an option from the list for ICMP message type.

ICMP Code

Select an option from the list for ICMP message code.

RPC program numbers

Enter a value for RPC program numbers.

Note: The format of the value must be W or X-Y. Where, W, X, and Y are integers between 0 and 65535.

Inactivity Timeout

Select an option from the list for application specific inactivity timeout.

UUID

Enter a value for DCE RPC objects.

Note: The format of the value must be 12345678-1234-1234-1234-123456789012.

Table 4: Fields on the Add New Schedule Page

Field

Action

Name

Enter the name for the schedule.

Description

Enter a description for the schedule.

Repeats

Select an option from the list to repeat the schedule:

  • Never

  • Daily

  • Weekly

All Day

Enable this option to schedule an event for an entire day.

This option is available only for Never and Daily repeat type schedule.

Start Date

Select the schedule start date in the YYYY-MM-DD format.

This option is available only for Never repeat type schedule.

Stop Date

Select the schedule stop date in the YYYY-MM-DD format.

This option is available only for Never repeat type schedule.

Start Time

Enter the start time for the schedule in HH:MM:SS 24 hours format.

This option is available only for Daily repeat type schedule.

Stop Time

Enter the end time for the schedule in HH:MM:SS 24 hours format.

This option is available only for Daily repeat type schedule.

Repeat On

Select the days and time on which you want to repeat the schedule.

To set time for the selected day(s):

  1. Click Set Time or Set Time to Selected Days.

    The Set Time to Selected Days page appears.

  2. Enter the following details:
    • Name—Displays the day(s) you have selected.

    • All Day—Enable this option for the event to run for the entire day.

    • Start Time—Enter the start time in HH:MM:SS 24 hours format.

    • Stop Time—Enter the stop time in HH:MM:SS 24 hours format.

  3. Click OK to save changes.

This option is available only for Weekly repeat type schedule.

Schedule Criteria

Select any of the following options:

  • Schedule Never Stops—Schedule can be active forever (recurrent), but only as specified by the daily or weekly schedule.

  • Schedule Specify Window—Schedule can be active during a single time slot, as specified by a start date and a stop date.

    Enter the following details:

    • Schedule Starts—Enter the schedule start date in the YYYY-MM-DD format.

    • Schedule Ends—Enter the schedule start date in the YYYY-MM-DD format.

This option is available only for Daily and Weekly repeat type schedule.

Related Documentation