Table Of Contents
Configuring Policy Templates and Policies
The Detector Module Policies
Policy Structure
Creating Policies
Policy Templates
Configuring Policy Template Parameters
Maximum Number of Services
Minimum Threshold
Policy Template State
Configuring All Policy Template Parameters Simultaneously
The Policy Sections
Services
Adding a Service
Deleting a Service
Detection Module
Packet Type
Traffic Characteristics
Configuring Policies
Configuring All Policy Parameters Simultaneously
Changing the Policy State
Configuring the Policy Threshold
Multiplying a Threshold by a Factor
Configuring Specific IP Thresholds
Configuring the Timeout
Configuring the Action
Configuring the Interactive Status
Creating Snapshots and Comparing Policies
Copying Policies
Monitoring Policies
Viewing Policies
Viewing Policy Statistics
Configuring Policy Templates and Policies
This chapter provides an explanation on the Detector module policies and policy structure, and describes how to configure the policy parameters.
This chapter contains the following sections:
•
The Detector Module Policies
•
Policy Templates
•
The Policy Sections
•
Configuring Policies
•
Creating Snapshots and Comparing Policies
•
Monitoring Policies
The Detector Module Policies
The policies are the building blocks of the Detector module statistical engine. They are the mechanisms that measure a particular traffic flow and take action against the flow as a result of threshold violation. Each zone has a set of policies that are tuned to the zone traffic patterns. These policies are the basis to which the Detector module compares zone traffic in order to trace any anomalies that might, in turn, become malicious.
To create policies that are tuned to the zone's particular traffic characteristics, the Detector module learns the zone traffic in a two-phase learning process. It uses pre-defined policy templates. Each policy template is used to create policies that deal with the detection aspects the Detector module requires to detect a specified DDoS threat.
After the policies are created, you can add and delete policies or change policy parameters.
Policy Structure
The Detector module performs statistical analysis on zone traffic flow. Each policy measures a specific traffic flow. The policy defines the characteristics the Detector module uses for the analysis. The policy name is composed of sections. Each section describes a different role that relates to different traffic characteristic. For example, the policy http/80/analysis/syns/src_ip measures traffic flow of HTTP SYN packets, destined to port 80, that were authenticated by the Detector module analysis detection module and aggregated according to source IP addresses.
Figure 7-1 provides an example of a policy name.
Figure 7-1 Policy Name
Table 7-1 details the policy name section.
The first four sections of the policy name (policy-template, service, detection-module and packet-type) define what type of traffic is analyzed. The last section of the policy path (traffic-characteristics) defines how to analyze the flow.
Policies have cross dependencies and priorities. If there are two policies that define the same traffic flow, the Detector module will analyze the flow using the policy that is more specific. For example, policies relating to TCP services exclude the HTTP services that are handled by the HTTP-related policies.
You can configure the policy's operational aspects. These define what triggers the policy and the action the policy assumes once such it is activated. See the "Configuring Policies" section for further details.
Creating Policies
The Detector module creates the zone policies in a learning process. The learning process consists of two phases, during which the Detector learns the zone's traffic and adapts itself to the particular characteristics:
1.
The Policy Construction Phase—In this phase, the zone policies are created using the Detector Policy Templates. The traffic flows transparently through the Detector enabling it to discover the main services used by the zone.
•
The Threshold Tuning Phase—In this phase, the policies are tuned to fit the zone services traffic rates. The traffic flows transparently through the Detector, enabling it to tune the thresholds for the services discovered during the policy construction phase.
See the "Learning the Zone Traffic Characteristics" section for further details.
Policy Templates
A Policy Template is a collection of policy constructing guiding rules and the output of each template is a group of policies. The name of the policy template is derived from the characteristics that are common to all the policies it creates. This can be a protocol (such as DNS), an application (such as http) or the objective (such as ip_scan). For example, the policy template tcp_connections produces policies that relate to connection, such as the number of concurrent connections. If you define a zone with the DEFAULT zone template, the Detector module uses these policy templates.
Table 7-2 describes the Detector module policy templates.
Table 7-2 Policy Templates
Policy Template
|
Brief Description
|
dns_tcp
|
This policy template produces a group of policies relating to DNS-TCP protocol traffic.
|
dns_udp
|
This policy template produces a group of policies relating to DNS-UDP protocol traffic.
|
fragments
|
This policy template produces a group of policies relating to fragmented traffic.
|
http
|
This policy template produces a group of policies relating to HTTP traffic flowing, by default, through port 80 (or other user-configured ports).
|
ip_scan
|
This policy template produces a group of policies relating to IP scanning, a situation in which a source IP tries to access many destination IPs in the zone. This policy template is relevant when the zone is defined as a subnet.
By default, this policy template is disabled. The default action for this policy template is notify.
These policies are resource consuming and should be used with care as they can affect performance.
|
other_protocols
|
This policy template produces a group of policies relating to non TCP or UDP protocols.
|
port_scan
|
This policy template produces a group of policies relating to port scanning, a situation in which a Source IP tries to access many ports on the zone.
By default, this policy template is disabled. The default action for this policy template is notify.
These policies are resource consuming and should be used with care as they can affect performance.
|
tcp_connections
|
This policy template produces a group of policies relating to TCP connection characteristics.
|
tcp_not_auth
|
This policy template produces a group of policies relating to TCP connections that have not been authenticated by the Detector's anti-spoofing mechanisms.
|
tcp_outgoing
|
This policy template produces sets of policies relating to TCP connections initiated by the zone.
|
tcp_ratio
|
This policy template produces sets of policies relating to ratios between different types of TCP packets. For example, SYN packets versus FIN/RST packets.
|
tcp_services
|
This policy template produces a group of policies relating to TCP services on ports other than HTTP-related, such as ports 80 and 8080.
|
udp_services
|
This template produces a group of policies relating to UDP services.
|

Tip 
To view a list of all policy templates, enter the command policy-template at the zone prompt and press TAB twice.
Configuring Policy Template Parameters
During the Learning phases, the zone's traffic flows transparently through the Detector. Each active policy template produces a group of policies, according to the Zone's traffic characteristics. The Detector enables you to define the maximum number of policies the Detector produces from a specific policy template. The Detector ranks the services that the policy template relates to by their level of traffic volume. The Detector then picks up the services that have exceeded the defined minimum threshold with the highest traffic volume and creates a policy for each one of them. Some of the policy templates create an additional policy to handle all traffic flows for which a specific policy was not added. These policies are added with a service of any.
You can configure the following policy template parameters:
•
Maximum Number of Services—Defines the maximum number of policies the Detector produces from a specified policy template.
•
Minimum Threshold—Defines the minimum threshold that must be exceeded for the Detector module to rank the service.
•
Policy Template State—Defines whether or not the Detector module produces policies from the template.
To configure the policy template parameters, enter the policy template configuration command mode. Enter the following:
policy-template policy-template-name
The argument policy-template-name specifies the name of the desired policy template. See Table 7-2 for further details.
After executing the command, the Detector module enters the policy template configuration mode.
For example:
admin@DETECTOR-conf-zone-scannet# policy-template http
admin@DETECTOR-conf-zone-scannet-policy_template-http#
Note
To display the parameters of a specific policy template, use the show command at the policy template prompt.
Maximum Number of Services
This parameter defines the maximum number of services from which a policy is created for the specified policy template. The Detector ranks the services that the policy template relates to by their level of traffic volume. The Detector picks up the services that have exceeded the defined minimum threshold (as defined by the min-threshold parameter) with the highest traffic volume and creates policies for each one of them. An additional policy to handle all other traffic flows with the characteristics of the policy template may be added with a service of any.
Note
The higher the maximum number of services, the more memory the zone uses.
This parameter can be defined only for policy templates that detect services, such as tcp_services. It cannot be configured for policy templates that relate to a specific service, such as dns_tcp that relates to service 53, or for policy templates that relate to a specific traffic characteristic, such as fragments.
Limiting the service number allows you to configure the Detector policies to your preferred traffic flow requirements.
To configure the maximum number of services, enter the following:
max-services max-services
The argument max-services is an integer that defines the maximum number of services.
Note
We recommend that you do not exceed the maximum of ten services.
For example:
admin@DETECTOR-conf-zone-scannet-policy_template-tcp_services#
max-services 5
Minimum Threshold
This parameter defines the minimum traffic volume threshold for a service. Once the threshold is exceeded, the Detector produces policies that relate to the services' traffic according to the particular traffic flow that violated the threshold.
This parameter cannot be configured for policy templates that are essential for proper zone detection and therefore always produce a policy, such as fragments.
Setting the threshold enables you to better adapt the Detector detection to the traffic volume of the zone services.
To configure the minimum threshold, enter the following:
min-threshold min-threshold
The argument min-threshold is an integer that defines the minimum threshold rate in pps. When measuring the concurrent connection and syn/fin ratio, the threshold is the total number of connections.
For example:
admin@DETECTOR-conf-zone-scannet-policy_template-http# min-threshold
12
Policy Template State
This parameter defines the policy template state. The policy template can be enabled or disabled. Disabling a policy template prevents it from producing policies once the Detector undergoes the policy construction phase.
Caution 
If you disable a policy template, the Detector cannot detect the zone the kind of traffic the policy template relates to. This may seriously compromise detection.
Use the disable command to disable a policy template.
Use the enable command to enable a policy template.
Configuring All Policy Template Parameters Simultaneously
You can configure all policy template operational parameters with a single command. Enter the following:
policy-template policy-template-name max-services min-threshold
{disabled | enabled}
Table 7-4 provides the arguments and keywords for the policy-template command.
Table 7-4 Arguments and Keywords for the policy-template Command
Parameter
|
Description
|
policy-template-name
|
The policy template name. See Table 7-1 for further details.
|
max-services
|
The maximum number of policies the Detector produces from a specified policy template. See the "Maximum Number of Services" section for further details.
|
min-threshold
|
The minimum threshold that must be exceeded for the Detector module to rank the service. See the "Minimum Threshold" section for further details.
|
disabled
|
Disable the policy template from producing policies. See the "Policy Template State" section for further details.
|
enabled
|
Enable the policy template. See the "Policy Template State" section for further details.
|
Note
To prevent the Detector module from changing their current values, enter a value of -1 for the max-services or min-threshold parameters.
This example shows how to set the parameters of the policy template tcp_services. The maximum number of services is set to 3. The minimum threshold is unchanged (-1) and the policy state is set to enabled.
admin@DETECTOR-conf-zone-scannet# policy-template tcp_services 3 -1
enabled
The Policy Sections
The policy path consists of the following sections:
•
Policy Templates
•
Services
•
Detection Module
•
Packet Type
•
Traffic Characteristics
Services
This section denotes which zone application port or protocol the policy relates to. Policies have cross dependencies and priorities. If there are two policies that define the same traffic flow, the Detector module will analyze the flow using the policy that is more specific. The service any relates to all traffic that does not specifically match other services created from the same policy template.
Caution 
Do not add the same service (port number) to more than one policy.
Adding a Service
You can add services to a policy template, in addition to the services that were discovered in the policy construction phase, and create more specific policies. The new service is added to all policies that were created from the specified policy template. The new service is defined with default values. You can define the threshold manually. However, we recommend that you run the threshold tuning phase (see the "Tuning Thresholds" section for further details) to tune the policies to the zone's traffic.
You can add a new service to the following policy templates:
•
http
•
other protocols
•
tcp_services
•
udp_services
Note
For http, tcp_services and udp_services, the added service designates a port number. For other_protocols, the added service designates a protocol number.
To add a service, enter the following at the policy template prompt:
add-service service-num
OR
Enter the following at the zone prompt:
policy-template policy-template-name add-service service-num
Table 7-5 provides the arguments for the policy-template command.
Table 7-5 Arguments for the policy-template Command
Parameter
|
Description
|
policy-template-name
|
The policy template name. See Table 7-2 for further details.
|
service-num
|
The protocol or port number.
|
For example:
admin@DETECTOR-conf-zone-scannet-policy_template-tcp_services# add-service 25
Deleting a Service
You can delete a specific service relating to a policy template.
To delete a service from a policy, enter the following at the policy template prompt:
remove-service service-num
OR
Enter the following at the zone prompt:
policy-template policy-template-name remove-service service-num
See Table 7-5 for information on the arguments for the policy-template command.
Note
If you delete a service, the Detector module policies cannot relate to the traffic of that service. This may compromise the zone detection.
For example:
admin@DETECTOR-conf-zone-scannet-policy_template-tcp_services# remove-service 25
Detection Module
This section denotes the detection module the Detector module uses to process the traffic flow. This section is informational, you can not configure the detection module.
The Analysis detection module lets the traffic flow without intervention.
Packet Type
This section describes the packet characteristic that the Detector module monitors. The packet characteristics can be one of the following:
•
The packet type. For example, TCP-SYN packets.
•
The Detector module analysis of the packet. For example, authenticated packets, packets that the Detector module has checked their connection performing a TCP handshake.
•
The packet direction. For example, incoming connections.
Table 7-6 describes the packet types the Detector module monitors.
Table 7-6 Packet Types
Packet Type
|
Brief Description
|
auth_pkts
|
Packets that underwent either TCP handshake or UDP authentication.
|
auth_tcp_pkts
|
Packets that underwent TCP handshake.
|
auth_udp_pkts
|
Packets that underwent UDP authentication.
|
in_nodata_conns
|
Zone incoming connections that have no data transfer on the connection (packets without a data payload).
|
in_conns
|
Zone incoming connections.
|
in_pkts
|
Zone incoming DNS query packets.
|
in_unauth_pkts
|
Zone incoming unauthenticated DNS queries.
|
out_pkts
|
Zone incoming DNS reply packets.
|
reqs
|
Request packets with data payload.
|
syns
|
Synchronization packets—TCP SYN flagged packets.
|
syn_by_fin
|
SYN and FIN flagged packets. Verifies the ratio between the number of SYN flagged packets and the number of FIN flagged packets.
|
unauth_pkts
|
Packets that did not undergo TCP handshake.
|
pkts
|
All packet types that do not fall under any other category in the same detection level.
|
Traffic Characteristics
This section describes the traffic characteristics that was used to aggregate the policies. The first four sections of the policy name (policy-template, service, detection-module and packet-type) define what type of traffic is analyzed. Traffic characteristics define how to analyze the flow. There can, therefore, be different policies that analyze the same traffic flow but measure the rate according to different characteristics.
Table 7-7 describes the traffic characteristics the Detector module monitors.
Table 7-7 Traffic Characteristics
Traffic Characteristic
|
Brief Description
|
dst_ip
|
Traffic destined to a zone IP address.
|
dst_ip_ratio
|
The ratio of SYN and FIN flagged packets destined to a specific IP address.
|
dst_port_ratio
|
The ratio of SYN and FIN flagged packets destined to a specific port.
|
global
|
A summation of all traffic flow as defined by the other policy sections.
|
src_ip
|
Traffic destined to the zone aggregated according to source IP address.
|
src_net
|
Traffic destined to the zone aggregated according to source subnet IP address.
|
dst_port
|
Traffic destined to a specific zone port.
|
protocol
|
Traffic destined to the zone aggregated according to protocol.
|
src_ip_many_dst_ips
|
This is the key used for IP scanning. Traffic from a single IP destined to many zone IP addresses.
|
src_ip_many_ports
|
This is the key used for port scanning. Traffic from one IP destined to many zone ports.
|
Configuring Policies
After completing the learning processes, you can view specific policy parameters. Displaying these parameters helps you decide whether the policy parameters suit the zone's traffic. You can configure a single policy or a group of policies. If necessary, you can configure the policy parameters to adapt the policy to the zone's traffic requirements.
To display the configuration of the policy parameters, use the show command at the policy path prompt.
You can configure a specific policy or group of policies.
To enter the policy configuration mode, enter the following at the zone prompt:
policy policy-path
The argument policy-path specifies the policy path section. See the "Policy Structure" section for further details.
Note
Entering policy.. at a policy path prompt moves you up one level in the policy path hierarchy.
For example:
admin@DETECTOR-conf-zone-scannet# policy
dns_tcp/*/analysis/syns/global
admin@DETECTOR-conf-zone-scannet-policy-/dns_tcp/*/analysis/syns/
global#
You can configure the following parameters:
•
The policy state—See the "Changing the Policy State" section.
•
The policy threshold—See the "Configuring the Policy Threshold" section.
•
The policy timeout—See the "Configuring the Timeout" section.
•
The policy action—See the "Configuring the Action" section.
•
The policy interactive status—See the "Configuring the Interactive Status" section.
The policy action, timeout and threshold may be changed at every section of the policy path. However, more policies are affected when these parameters are changed at the higher-level policy sections (such as policy template or service sections). Configuring these parameters at a high-level policy path hierarchy will change these parameters in all the sub-policy paths.
Tip
The Detector module enables the use of an asterisk (*) as a wildcard character in each policy path section when issuing the following commands show policies details and show policies statistics. If you do not specify a policy path section, the Detector module relates to the unspecified section as a wildcard (*).
For example, the policy: tcp_services//analysis//global.
Configuring All Policy Parameters Simultaneously
You can configure all policy parameters with a single command. Enter the following at the zone prompt:
policy policy-path threshold action timeout state
Table 7-8 provides the arguments for the policy command.
Note
Enter -1 for the threshold, and timeout parameters to prevent the Detector module from changing their current values.
This example sets the parameters of the policy dns_tcp/53/analysis/pkts/dst_ip. The threshold is set to 300, the policy timeout is set to 360 seconds, the policy action is set to remote-activate, and the policy state is set to active.
admin@DETECTOR-conf-zone-scannet# policy
dns_tcp/53/analysis/pkts/dst_ip 300 remote-activate 360 active
Changing the Policy State
The Detector module policies have three possible states:
•
Active—The policy relates to the traffic and issues an action once the threshold is violated.
•
Inactive—The policy relates to the traffic and obtains the threshold but takes no action when a threshold is violated. This frees you from the need to pass the policy through a new learning threshold-tuning phase.
•
Disabled—The policy does not relate to the traffic flow and so no threshold is obtained. As a result, the policies have to undergo a new learning threshold-tuning phase to ensure that correct thresholds are applied for the policies.
Caution 
When a policy is disabled, other policies regard its targeted traffic as belonging to them. We highly recommend that all policies undergo a new learning threshold-tuning phase before the policies are applied in detect mode.
To change the policy state, enter the following for the relevant policy section:
state {active | disabled | inactive}
Caution 
Unnecessary deactivation or disabling can prevent the Detector module policies from assuming their detective role and can compromise the zone detection.
If you run the policy-construction phase after disabling a policy, the policies are reconfigured according to the traffic flow. This could result in the policy being reactivated.
For example:
admin@DETECTOR-conf-zone-scannet-policy-/dns_tcp/*/analysis/syns# state disabled
Configuring the Policy Threshold
This parameter defines the threshold traffic rate for a specific policy. Once violated, the policy takes an action. It is adjusted by the learning threshold-tuning phase. The threshold is measured in packets per second (pps) except for the following policies:
•
tcp_connections—measured in number of connections
•
tcp_ratio—measured as the ratio number
To configure the policy threshold, enter the following:
threshold threshold
The argument threshold specifies the policy threshold.
For example:
admin@DETECTOR-conf-zone-scannet-policy-/dns_tcp/*/analysis/syns/global# threshold 300
Multiplying a Threshold by a Factor
You can multiply the threshold of a policy or a group of policies by a factor. This way you can increase or decrease the threshold of a policy or a group of policies if the traffic volume does not represent the zone traffic.
To multiply the threshold by a factor, enter the following:
policy policy-path thresh-mult threshold-multiply-factor
Table 7-9 provides the arguments for the policy thresh-mult command.
Table 7-9 Arguments for the policy thresh-mult Command
Parameter
|
Description
|
policy-path
|
The policy template name. See Table 7-2 for further details.
|
threshold-multiply-factor
|
A real number to multiply the threshold by.
|
For example:
admin@DETECTOR-conf-zone-scannet# policy */*/*/*/src_ip thresh-mult
0.5
Configuring Specific IP Thresholds
In cases of known high-volume traffic from an IP source, you can configure a threshold to apply to the specific IP source address.
In cases of a non-homogenous zone (that is, a zone that has more than a single IP address defined) where there is known high-volume traffic only to part of the zone, you can configure a threshold to apply to the specific IP destination address.
You can configure a specific IP threshold only for policies with traffic characteristics od destination IP (dest_ip).
To configure a specific IP threshold, enter the following:
policy policy-path threshold-list ip threshold [ip threshold ...]
Table 7-10 provides the arguments for the policy threshold-list command.
Table 7-10 Arguments for the policy threshold-list Command
Parameter
|
Description
|
policy-path
|
The policy template name. See Table 7-2 for further details.
|
ip
|
The specific IP address.
|
threshold
|
The threshold traffic rate in pps except for policies measuring concurrent connections and SYN-by-FIN ratio where the threshold is the number of connections.
|
You can add up to five specific IP thresholds for each policy. You can enter all specific IP thresholds in a single command.
The following example shows how to set specific IP thresholds for IP addresses 10.10.10.2 and 10.10.15.2 for the policy http/80/analysis/syns/src_ip.
admin@DETECTOR-conf-zone-scannet-policy-/http/80/analysis/syns/src_ip#
threshold-list 10.10.10.2 500 10.10.15.2 500
Configuring the Timeout
This parameter defines the minimum time span that the policy action is valid. To configure the timeout, enter the following:
timeout {forever | timeout}
Table 7-11 provides the arguments for the timeout command.
Table 7-11 Arguments and Keywords for the timeout Command
Parameter
|
Description
|
forever
|
Indefinite time span.
|
timeout
|
An integer that specifies the minimum time the Dynamic filters, produced by the policy, are active.
|
You can change the timeout of a group of policies simultaneously. Use the policy set-timeout command at the relevant zone prompt.
Configuring the Action
This parameter defines the type of action the policy takes once its threshold is violated. To configure the policy action, enter the following:
action policy-action
Table 7-12 describes the policy actions.
Use the policy set-action command at the relevant zone prompt to change the action of a group of policies simultaneously.
The following example shows how to set the action of all policies that relate to dns_tcp.
admin@DETECTOR-conf-zone-scannet# policy dns_tcp/ set-action
remote-activate
set action of dns_tcp/ to remote-activate:
Configuring the Interactive Status
This parameter defines the interactive status the pending Dynamic filters, created by the policy, assume. The interactive status is applicable only for zones in interactive mode during detection. See "Interactive Recommendations Mode" for further details.
To configure the interactive-status, enter the following:
interactive-status {always-ignore | always-accept | interactive}
Table 7-13 provides the keywords for the interactive-status command.
Table 7-13 Keywords for the interactive-status Command
Parameter
|
Description
|
always-accept
|
The Dynamic filters the policy produces will automatically be accepted. This applies automatically whenever the recommendation policy produces new recommendations.
The Detector module does not display these recommendations.
|
always-ignore
|
The Detector module will ignore the Dynamic filters this policy creates. The policy will not produce Dynamic filters.
The Detector module does not display these recommendations.
|
interactive
|
You will have to decide whether to accept or ignore the Dynamic filters the policy produces. The Detector module will display these Dynamic filters as part of the recommendations.
|
If you have set the interactive status of a recommendation of a currently protected zone to always-accept or always-ignore, use the interactive-status command to modify the status of the policy's pending Dynamic filters. For example, if you have defined the status of a recommendation to always-accept, the recommendation and the recommendation's pending Dynamic filters are longer displayed. To choose to ignore the recommendations or pending Dynamic filters the recommendation produces, change the policy interactive status to interactive or always-accept.
For example:
admin@DETECTOR-conf-zone-scannet-policy-/dns_tcp/53/analysis/pkts/src_
ip# interactive-status always-accept
Creating Snapshots and Comparing Policies
You can save a snapshot of the learning parameters (services, thresholds and other policy related data) at any stage during the learning phases, and review it later. The Detector module saves this data as a new zone. You can compare the snapshot to the zone or to another snapshot to verify the outcome of the learning process and trace differences in policies, services, and thresholds.
The Detector module continues its learning phases while the snapshot is taken.
Tip
We recommend that you take a snapshot every few hours during the learning process. If an attack occurs during the learning process, you can use the snapshot as the zone.
To compare policies and view the outcome of the learning process, perform the following steps:
Step 1
Save a snapshot of the zone learning parameters.
Note
The snapshot command is only available when the zone is in a learning phase.
Enter the following:
snapshot zone-name new-zone-name
Table 7-14 provides the arguments for the snapshot command.
Table 7-14 Arguments for the snapshot Command
Parameter
|
Description
|
zone-name
|
The name of the zone whose learning parameters are saved.
|
new-zone-name
|
The name of a new zone. The Detector module saves the current learned policies and thresholds under this name.
|
The Snapshot creates a new zone. After you have verified the snapshot parameters, or compared two snapshots, you can delete the snapshot. Alternatively, you can decide to keep the snapshot and delete the original zone.
Step 2
Compare the snapshot parameters and the zone parameters to trace differences in policies, services, and thresholds. The zone can be the base zone, from which the snapshot was taken, or another snapshot. Enter the following:
diff zone-name zone-name [percent]
Table 7-15 provides the arguments for the diff command.
Table 7-15 Arguments for the diff Command
Parameter
|
Description
|
zone-name
|
The names of the zones whose learning parameters are compared.
|
percent
|
(Optional) The Detector traces any parameters that differ more than the this percentage. The default is 100%, the Detector module traces every difference in the compared zones.
|
For example:
admin@DETECTOR# snapshot scannet scannet-8am
Copying Policies
You can copy policy configuration, or partial configuration, from a source zone to the current zone. This way you can configure the zone policies without having to apply the learning phases.
Caution 
Verify that the zones have similar traffic patterns.
To copy a service from a source zone, enter the following:
copy-services src-zone-name [service-path]
Table 7-16 provides the arguments and keywords for the copy-services command.
Table 7-16 Arguments and Keywords for the copy-services Command
Parameter
|
Description
|
src-zone-name
|
The names of the zone whose policies are copied.
|
service-path
|
The service to copy. A service path can have one of the following formats:
• policy-template—Copy all policies that were created from the policy template
• policy-template/service-num—Copy all policies, that were created from the policy template, with the specific service
|
The default is to copy all policies.
The following example shows how to copy all policies that relate to the policy template tcp_connections from the zone webnet to the current zone, scannet.
admin@DETECTOR-conf-zone-scannet# copy-services webnet
tcp_connections/
Monitoring Policies
You can monitor the policies to see how well they are suited to the zone traffic volume and services.
You can perform the following:
•
Viewing Policies
•
Viewing Policy Statistics
Viewing Policies
You can display the zone's policies. Display the zone's policies to verify that they are adapted to the zone's traffic characteristics. You can configure only policies from the list.
To view the zone's policies, enter the following:
show policies
Note
The Detector module displays only current zone policies. If a policy template was disabled during the learning policy-construction phase, the Detector module does not create policies from that policy template and you will not see such policies when you issue the command.
Table 7-17 provides a description of the fields in the show policies command output.
To display the details of a specific policy, use the show policies details command.
Viewing Policy Statistics
You can view the rate of the traffic flowing through a policy or a group of policies. You can determine whether the type of services and volume represent the zone traffic. The Detector module displays the traffic flows forwarded to the zone, with the highest rates as measured by the policies.
Note
The rate is calculated based on traffic samples.
To display the policy statistics, enter the following:
show policies statistics [policy-path] [num-entries]
Table 7-18 provides the arguments for the show policies statistics command output.
Table 7-18 Arguments for the show policies statistics Command
Parameter
|
Description
|
policy-path
|
Defines a group of policies. See the "Policy Structure" section for further details.
|
num-entries
|
The number of entries to display. The Detector module displays the policies with the highest values.
|
The Detector module displays the information in three tables. The information in each table is sorted by value, with the highest values appearing at the top.
Table 7-19 displays the fields in the tables in the show policies statistics command output.
Table 7-19 Field Descriptions of the show policies statistics Command Output Tables
Table
|
Description
|
Fields in all output tables
|
Key
|
The traffic characteristic that was used to aggregate the policies. For example, in the policy tcp_services/any/analysis/syns/dst_ip, the key is the destination IP address. If the traffic characteristic that was used to aggregate the policies is global, the key displays N/A. See Table 7-6 for further details.
|
Policy
|
The policy name. See the "Policy Structure" section for further details.
|
Fields in one of the output tables
|
Rate
|
Policies that measure traffic rate. The Detector module displays the rate of the traffic, flowing through the policy, measured in packets per second (pps). The rate is calculated based on traffic samples.
|
Connection
|
Policies that measure the number of connections or source IP addresses. This information is available for policies tcp_connections and for the following packets types:
• in_nodata_conns—for the analysis protection module
•
|
Ratio
|
Policies that measure the ratio between flagged packets. The Detector module displays the ratio between the number of SYN flagged packets and the number of FIN/RST flagged packets. This information is available only for syn_by_fin policies.
|

Note
The Detector module does not display tables that contain no data.