Creates an allow rule and configures the match criteria based on which packets are filtered and the allow access action applied
allow [app-category [<PURVIEW-APP-CATEGORY-NAME>|all]|application <PURVIEW-APP-NAME>] schedule <SCHEDULE-POLICY-NAME> (precedence <1-256>)
allow [app-category [<PURVIEW-APP-CATEGORY-NAME>|all]|application <PURVIEW-APP-NAME>] schedule <SCHEDULE-POLICY-NAME> (precedence <1-256>)
allow | Creates an allow rule and configures the match criteria. The match criteria options are: app-category and application. |
app-category [<PURVIEW-APP-CATEGORY-NAME>|all] | Uses application category as the match criteria
|
application <PURVIEW-APP-NAME> | Uses application name as the match criteria
|
schedule <SCHEDULE-POLICY-NAME> | Schedules an enforcement time for this allow rule by
associating a schedule policy with it. Use this parameter to apply rule-specific
enforcement time.
|
precedence <1-256> | Assigns a precedence value for this allow rule. The precedence value
differentiates between rules applicable to applications and the application
categories to which they belong. The allow, deny, mark, rate-limit options are
mutually exclusive. In other words, in an application policy, for a specific
application or application category, you can create either an allow rule, or a deny
rule, or a mark and rate-limit rule. Let us consider application Apple_Streaming belonging to app-category streaming. The action required is: Allow Apple_Streaming packets and deny all other applications belonging to app-category streaming. The rules
can be defined
as:
#allow application Apple_Streaming precedence 1 #deny app-category streaming precedence 2 The
following configuration is
incorrect:
#deny app-category streaming precedence 1 #allow application Apple_Streaming precedence 2 Application policy rules are applied in the increasing order of their precedence value. Once the deny app-category streaming precedence 1 rule is hit, all streaming packets, including Apple_Streaming, are dropped. Consequently, there are no packets left to apply the subsequent allow rule. The mark and rate-limit rules are the only two actions that can be combined for a specific application or application category type. |
The following example shows how to view all built-in, system provided Purview™ applications:
nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#allow application[TAB] Display all 365 possibilities? (y or n) 163_com 1Fichier 24x7_Media 2K_Games 360_Software 360buy 4chan 4shared 5Dimes 8Track 9gag A_Feed AB_Tutor Abacast ABC_Ads ABC_News ABC_Player About --More-- nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#
The following example shows an allow rule with precedence 1.
nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#allow application Apple_Streaming precedence 1
The following example shows a Purview application policy 'SocialNet' having an allow rule with an associated schedule policy named 'Flickr':
nx9500-6C8809(config-purview-app-policy-SocialNet)#allow application flickr schedule Flickr precedence 1
nx9500-6C8809(config-purview-app-policy-SocialNet)#show context purview-application-policy SocialNet description "This application policy relates to Social Networking sites." allow application flickr schedule Flickr precedence 1 nx9500-6C8809(config-purview-app-policy-SocialNet)#
The schedule policy ‘Flickr‘ configuration is as follows. As per this policy, the above allow rule will apply to all Flickr packets every Friday between 13:00 and 18:00 hours.
nx9500-6C8809(config-schedule-policy-Flickr)#show context schedule-policy Flickr description "Allows Flickr traffic on Fridays." time-rule days friday start-time 13:00 end-time 18:00 nx9500-6C8809(config-schedule-policy-Flickr)#
no | Removes this allow rule from the Purview application policy |