How to Configure a Schedule for a Security Policy

How to Configure a Schedule for a Security Policy

96533
Created On 09/27/18 11:09 AM - Last Modified 06/15/23 23:01 PM


Environment


PAN-OS 9.1 and above

Resolution


  1. First, create the Schedule either from the GUI or CLI.
    1. GUI: Go to Objects > Schedules then click Add. Choose daily, weekly or non-recurring. To select multiple days during the week, choose weekly, day of week, start time, end time, click OK.
      User-added image
    2. CLI: Use the set schedule command from configure mode

      > configure
      # set schedule schedule-block-youtube recurring daily 09:00-18:00
  2. Attach the Schedule Object from GUI or CLI to a current Security Policy or Create a Security Policy Rule
    1. GUI: Go to POLICIES > Security, select the Security Policy Rule, click Actions tab, click the drop-down box for Schedule, select the created Schedule Object from first step. Click OK
      User-added image
    2. CLI: Use the set rulebase security rules command from configure mode
      > config 
      # set rulebase security rules block-youtube from L3-Trust to L3-Untrust source any destination any application youtube schedule schedule-block-youtube service any log-end yes action deny
  3. Commit the change


Additional Information


  • Note: Time Zone for Schedule is based on system time configured on Device > Setup > Management > General Settings - Time Zone
  • See Policy Object: Schedules for more information


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000CmAxCAK&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language