04-DPI Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C SecPath M9000 Configuration Guide(V7)(E9X71)-6W70004-DPI Configuration Guide
09-WAF configuration
Title Size Download
09-WAF configuration 323.11 KB

Contents

Configuring WAF· 1

About WAF· 1

WAF protection· 1

WAF signature filtering· 1

Semantic analysis· 3

CC defense· 3

WAF protection actions· 5

WAF signature library management 6

Restrictions: Hardware compatibility with WAF· 6

Restrictions: Licensing requirements for WAF· 7

WAF tasks at a glance· 7

Configuring WAF signature filtering· 7

Creating a WAF policy· 7

Configuring WAF signature filtering criteria for a WAF policy· 8

Configuring actions in a WAF policy· 8

Specifying a parameter profile for a WAF action· 9

Configuring semantic analysis· 10

Creating a WAF policy· 10

Enabling semantic analysis· 10

Configuring CC defense· 10

Creating a WAF policy· 10

Creating a CC defense policy· 11

Creating a CC defense rule· 11

Applying a CC defense policy to a WAF policy· 12

Managing CC defense rules· 12

Activating WAF policy settings· 13

Applying a WAF policy to a DPI application profile· 13

Applying a DPI application profile to a security policy rule· 14

Applying a DPI application profile to an object policy rule· 14

Managing a user-defined WAF signature· 15

Creating a user-defined WAF signature· 15

Configuring attributes in a user-defined WAF signature· 15

Configure rules for a user-defined WAF signature· 16

Managing the WAF signature library· 17

Restrictions and guidelines· 17

Scheduling automatic WAF signature library update· 18

Triggering an immediate WAF signature update· 18

Performing a WAF signature manual update· 18

Rolling back the WAF signature library· 19

Configuring WAF whitelist 19

Display and maintenance commands for WAF· 20

WAF configuration examples· 21

Example: Using the default WAF policy in a security policy· 21

Example: Using a user-defined WAF policy in a security policy· 22

Example: Manually updating the WAF signature library· 24

Example: Configuring automatic WAF signature library update· 26

Example: Using the default WAF policy in an object policy· 27

Example: Using a user-defined WAF policy in an object policy· 29

Example: Manually updating the WAF signature library· 30

Example: Configuring automatic WAF signature library update· 32

 


Configuring WAF

About WAF

The Web application firewall (WAF) feature protects the internal clients and Web servers by preventing Web application layer attacks. The device monitors HTTP and HTTPS traffic to and from Web applications for malicious activity and proactively take prevention actions.

WAF protection

The WAF feature implements its functions through WAF signature filtering, semantic analysis, and CC defense.

WAF signature filtering

The device monitors and blocks network attacks by comparing packets with WAF signatures in a WAF policy.

Semantic analysis

Semantic analysis analyzes the semantics of SQL statements to detect SQL injection attacks to protect internal users and servers.

CC defense

The Challenge Collapsar (CC) attack is a kind of distributed denial of service (DDoS) attack. The CC defense feature blocks malicious traffic from Web applications by performing content inspection, rule matching, and statistics collection.

WAF signature filtering

WAF signature filtering is implemented based on WAF policies. A WAF policy contains a set of WAF signatures for matching packets and the actions on the packets.

WAF signatures

The device compares packets with WAF signatures to detect, classify, and prevent network attacks.

Each WAF signature contains various attributes, including attack category, action, protected target, severity level, and direction. You can filter the WAF signatures that a WAF policy uses based on the WAF signature attributes.

The device supports the following types of WAF signatures:

·     Predefined WAF signatures—Automatically generated by the device based on the local signature library. You cannot add, modify, or delete a predefined WAF signature.

·     User-defined WAF signatures—Manually created. For new attacks that cannot be detected by predefined signatures, you can create user-defined WAF signatures. If you do not quite understand the characteristics of the new attacks, do not create user-defined WAF signatures.

WAF actions

When the device detects a matching packet for a WAF policy, it takes the actions specified for the WAF policy on the packet.

The device supports the following signature actions:

·     Drop—Drops matching packets.

·     Permit—Permits matching packets to pass through.

·     Reset—Closes the TCP connections for matching packets by sending TCP reset messages.

·     Redirect—Redirects matching packets to a webpage.

·     Block-source—Drops matching packets and adds the packet sources to the IP blacklist. If the IP blacklist feature is enabled, the device blocks the packets from the blacklisted sources for a duration set by the block-period command. If the IP blacklist feature is not enabled, the device does not block the packets from the blacklisted sources.

To enable the IP blacklist feature, use the blacklist global enable command. For more information about the IP blacklist feature, see Security Configuration Guide.

For more information about the block-period command, see DPI Command Reference.

·     Capture—Captures matching packets.

·     Logging—Logs matching packets.

WAF signature filtering mechanism

WAF signature filtering takes effect after you apply a WAF policy to a DPI application profile and use the DPI application profile in a security policy rule or object policy rule.

As shown in Figure 1, upon receiving a packet, the device performs the following operations:

1.     The device identifies the packet application layer protocol and extracts the packet signatures.

2.     The device determines the actions for the packet by comparing the extracted packet signatures with the WAF signatures in the WAF policy:

¡     If the packet does not match any WAF signatures, the device permits the packet to pass.

¡     If the packet matches only one WAF signature, the device takes the signature actions.

¡     If the packet matches multiple WAF signatures, the device uses the following rules to select the actions:

-     If the matching WAF signatures have two or more actions, including redirect, drop, permit, and reset, the device takes the action of the highest priority. The actions in descending order of priority are reset, redirect, drop, and permit.

-     The device executes the block-source, capture, and logging actions if they are in the matching WAF signatures.

Figure 1 WAF signature filtering mechanism

Semantic analysis

The device performs semantic analysis on the SQL statements extracted from a packet to determine if the packet is an attack packet.

·     If the packet is an attack packet, the device selects the action for the packet as follows:

¡     If WAF actions are specified, the device takes the specified actions for the packet.

¡     If no WAF action is specified, the device permits the packet to pass through and sends a WAF log to the fast log output server. For more information about WAF actions, see "WAF signature filtering."

·     If the packet is not an attack packet, the device permits the packet to pass through.

CC defense

The device detects CC attacks based on CC defense policies. A CC defense policy defines the packet filtering criteria, detection items, and actions on matching packets.

Detection items

The detection items include the following:

·     Request rate—Identifies whether a client is accessing a website too frequently.

·     Request concentration ratio—Identifies whether a website is most frequently visited.

Each detection item has a threshold. The device compares the calculated statistics with the thresholds. A CC attack occurs if a threshold is reached.

CC defense mechanism

The CC defense feature is used in a WAF policy that is associated with a security policy.

As shown in Figure 2, upon receiving a packet, the device performs the following operations:

1.     The device compares the packet with IP exceptions.

¡     If an IP exception is found, the device permits the packet to pass through.

¡     If no IP exception is found, the device goes to step 2.

2.     The device identifies the packet application layer protocol, and extracts the URL and other related information.

3.     The device compares the extracted packet information with the CC defense rules and determines the action on the packet.

¡     If the packet does not match any CC defense rules, the device permits the packet to pass through.

¡     If the packet matches one CC defense rule, the device stops the matching process and goes to step 4.

4.     The device calculates statistics and compares the calculation result with the detection item thresholds in real time.

¡     If no threshold is reached, the device permits the packet to pass through.

¡     If a threshold is reached, the device executes the action on the matching packet.

Figure 2 CC defense mechanism

WAF protection actions

If a packet matches WAF signatures, semantic analysis, and a CC defense rule, the device takes the action of the highest priority among the WAF signatures, semantic analysis, and CC defense rule. The actions in descending order of priority are reset, redirect, drop, and permit. The device will execute the blacklist, capture, and logging actions if they are configured for the matching WAF signatures, semantic analysis, or CC defense rule.

WAF signature library management

The device uses WAF signatures to inspect Web application layer traffic for malicious threats and attacks.

You can update the device WAF signature library to the latest version or roll back the library to the previous or the factory default version.

Updating the WAF signature library

The following methods are available for updating the WAF signature library on the device:

·     Automatic update.

The device automatically downloads the most up-to-date WAF signature file to update its local signature library periodically.

·     Triggered update.

The device downloads the most up-to-date WAF signature file to update its local signature library immediately after you trigger the operation.

·     Manual update.

Use this method when the device cannot obtain the WAF signature file automatically.

You must manually download the most up-to-date WAF signature file, and then use the file to update the signature library on the device.

Rolling back the WAF signature library

If filtering false alarms or filtering exceptions occur frequently, you can roll back the WAF signature library to the previous version or to the factory default version.

Restrictions: Hardware compatibility with WAF

Hardware platform

Module type

WAF compatibility

M9006

M9010

M9014

Blade IV firewall module

Yes

Blade V firewall module

No

NAT module

No

M9010-GM

Encryption module

Yes

M9016-V

Blade V firewall module

No

M9008-S

M9012-S

Blade IV firewall module

Yes

Intrusion prevention service (IPS) module

Yes

Video network gateway module

Yes

M9008-S-6GW

IPv6 module

Yes

M9008-S-V

Blade IV firewall module

Yes

M9000-AI-E4

M9000-AI-E8

M9000-AI-E16

Blade V firewall module

Yes

M9000-X06

M9000-X10

Blade VI firewall module

Yes

Restrictions: Licensing requirements for WAF

The WAF module requires a license to run on the device. If the license expires, you can still use the WAF functions but you cannot upgrade the WAF signature library to the version released after the expiration time. For more information about licenses, see license management in Fundamentals Configuration Guide.

WAF tasks at a glance

To configure WAF signature filtering, perform the following tasks:

1.     Configuring WAF signature filtering

2.     Configuring WAF signature filtering criteria for a WAF policy

3.     Configuring actions in a WAF policy

4.     Specifying a parameter profile for a WAF action

To configure semantic analysis, perform the following tasks:

1.     Creating a WAF policy

2.     Enabling semantic analysis

To configure CC defense, perform the following tasks:

1.     Creating a WAF policy

2.     Creating a CC defense policy

3.     Creating a CC defense rule

4.     Applying a CC defense policy to a WAF policy

5.     (Optional.) Managing CC defense rules

To configure general settings for WAF policies, perform the following tasks:

1.     Activating WAF policy settings

2.     Applying a WAF policy to a DPI application profile

3.     Applying a DPI application profile

Choose one of the following tasks:

¡     Applying a DPI application profile to a security policy rule

¡     Applying a DPI application profile to an object policy rule

4.     (Optional.) Managing a user-defined WAF signature

5.     (Optional.) Managing the WAF signature library

6.     (Optional.) Configuring WAF whitelist

Configuring WAF signature filtering

Creating a WAF policy

About this task

By default, a newly created WAF policy uses all enabled WAF signatures and applies to the packet matching a signature the default signature action. You can filter the WAF signatures used by the WAF policy and configure the WAF actions.

Procedure

1.     Enter system view.

system-view

2.     Create a WAF policy and enter its view.

waf policy policy-name

A default WAF policy named default exists. The default WAF policy uses all enabled WAF signatures on the device and cannot be modified or deleted.

Configuring WAF signature filtering criteria for a WAF policy

About this task

By default, a WAF policy uses all enabled WAF signatures on the device. You can set criteria to filter WAF signatures that a WAF policy uses based on the signature attributes.

A WAF policy uses a WAF signature only if the signature matches all the configured criteria.

For certain attribute-based criterion (such as the action, direction, or severity level criterion), you can specify multiple attribute values. A WAF signature matches the criterion if it matches any of the specified attribute values.

Procedure

1.     Enter system view.

system-view

2.     Enter WAF policy view.

waf policy policy-name

3.     Configure the WAF signature filtering criteria.

¡     Set a target criterion.

protected-target { target [ sub-target subtarget ]| all }

By default, the target attribute is not used for WAF signature filtering.

¡     Set an attack category criterion.

attack-category { sub-category subcategory ] | all }

By default, the attack category attribute is not used for WAF signature filtering.

¡     Set an action criterion.

action { block-source | drop | permit | reset } *

By default, the action attribute is not used for WAF signature filtering.

¡     Set a direction criterion.

object-dir { client | server } *

By default, the direction attribute is not used for WAF signature filtering.

¡     Set a severity level criterion.

severity-level { critical | high | low | medium } *

By default, the severity level attribute is not used for WAF signature filtering.

Configuring actions in a WAF policy

About this task

By default, the system applies the default actions of a WAF signature to packets matching the signature.

You can also configure global actions for a WAF policy or change the actions for individual WAF signatures in the policy.

The system selects the actions for packets matching a WAF signature in the following order:

1.     Actions configured for the WAF signature in the WAF policy.

2.     Actions configured for the WAF policy.

3.     Default actions of the WAF signature.

Restrictions and guidelines

The logging keyword enables the WAF module to log packet matching events and use one of the following methods to send log messages:

·     Fast log output—You must specify a log host to receive the log messages. Log messages are sent to the specified log host.

·     Syslog output—Log messages are sent to the information center. With the information center, you can set log message filtering and output rules, including output destinations. The information center can output WAF syslogs to any destinations except the console and the monitor terminal. If you configure the console or monitor terminal as an output destination, the output destination setting will not take effect. To view WAF syslogs stored on the device, use the display logbuffer command. Make sure you do not disable log output to the log buffer, which is enabled by default.

Syslog output might affect device performance. As a best practice, use fast log output.

For more information about configuring the information center, see Network Management and Monitoring Configuration Guide. For more information about fast log output, see Network Management and Monitoring Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enter the view of a WAF policy.

waf policy policy-name

3.     Specify the WAF actions for the WAF policy.

signature override all { { block-source | drop | permit | redirect | reset } | capture | logging } *

By default, no actions are specified for a WAF policy and the default actions of WAF signatures are applied to matching packets.

4.     (Optional.) Change the status or actions for a WAF signature.

signature override pre-defined signature-id { disable | enable } [ { block-source | drop | permit | redirect | reset } | capture | logging ] *

By default, the predefined WAF signatures use the actions and statuses defined by the system.

Specifying a parameter profile for a WAF action

About this task

You can specify parameter profiles for WAF actions. A parameter profile is a set of parameters that determine how an action is executed. If you do not specify a parameter profile for an action, or if the specified profile does not exist, the default action parameter settings are used. For information about configuring parameter profiles, see "Configuring DPI engine."

Procedure

1.     Enter system view.

system-view

2.     Specify a parameter profile for a WAF action.

waf { block-source | capture | logging | redirect } parameter-profile parameter-name

By default, no parameter profile is specified for a WAF action.

Configuring semantic analysis

Creating a WAF policy

1.     Enter system view.

system-view

2.     Create a WAF policy and enter its view.

waf policy policy-name

By default, the default WAF policy named default exists, and the policy is not editable.

Enabling semantic analysis

About this task

If semantic analysis is enabled, the device uses both semantic analysis and signature matching to improve the detection rate of SQL injection attacks. You can enable semantic analysis as needed because this feature might affect the device performance.

Restrictions and guidelines

As a best practice, enable semantic analysis only if necessary, because this feature will affect the device performance

Procedure

1.     Enter system view.

system-view

2.     Enter the view of a WAF policy.

waf policy policy-name

3.     Enable semantic analysis.

semantic-analysis enable

By default, semantic analysis is disabled.

Configuring CC defense

Creating a WAF policy

About this task

A CC defense policy takes effect only after it is applied to a WAF policy. To use a CC defense policy, you must first create a WAF policy for associating the CC defense policy.

Procedure

1.     Enter system view.

system-view

2.     Create a WAF policy and enter its view.

waf policy policy-name

By default, the default WAF policy named default exists, and it is not associated with any CC defense policy. The default WAF policy uses all enabled WAF signatures on the device, and the policy is not editable.

Creating a CC defense policy

About this task

The device detects CC attacks based on CC defense policies. You can configure filtering criteria and detection items in a CC defense policy as needed.

Procedure

1.     Enter system view.

system-view

2.     Create a CC defense policy and enter its view.

cc-defense policy policy-name

3.     (Optional.) Configure the description for the CC defense policy.

description text-string

4.     (Optional.) set the CC attack detection interval.

detection-interval interval

By default, the CC attack detection interval is 30 seconds.

5.     (Optional.) Specify IP exceptions in the CC defense policy.

exception { ipv4 ipv4-address | ipv6 ipv6-address }

By default, no IP exceptions are specified in a CC defense policy.

Creating a CC defense rule

About this task

You can configure the following items in a CC defense rule:

·     Packet filtering criteria, such as destination IP addresses, destination ports, and request methods.

·     Protected paths.

·     Detection items and their thresholds.

·     Action on matching packets.

The match order of CC defense rules is the rule configuration order. If a packet matches one CC defense rule, the device stops the matching process for the packet.

Procedure

1.     Enter system view.

system-view

2.     Create the view of a CC defense policy.

cc-defense policy policy-name

3.     Create a CC defense rule and enter its view.

rule name rule-name

4.     Set the filtering criteria for the rule.

¡     Specify destination IP address filtering criteria.

destination-address { ipv4 ipv4-address | ipv6 ipv6-address }

¡     Specify destination port filtering criteria.

destination-port port-number

¡     Specify request method filtering criteria.

method { connect | delete | get | head | options | post | put | trace } *

5.     Specify protected paths.

protected-url url-text

By default, no protected paths are specified in a CC defense rule.

6.     Enable X-Forwarded-For inspection.

xff-detection enable

By default, X-Forwarded-For inspection is disabled.

7.     Configure detection items.

cc-detection-item { request-concentration [ concentration-value ] [ request-number number ] | request-rate [ rate-value ] }

By default, no detection items are configured in a CC defense rule.

8.     Specify the action on packets matching the rule.

action { block-source [ block-time ] | permit }

By default, the action is permit.

9.     Enable CC defense logging.

logging enable

By default, CC defense logging is disabled.

Applying a CC defense policy to a WAF policy

1.     Enter system view.

system-view

2.     Enter the view of a WAF policy.

waf policy policy-name

3.     Apply a CC defense policy to the WAF policy.

apply cc-defense policy policy-name

Managing CC defense rules

Rearranging CC defense rules to adjust their match order

1.     Enter system view.

system-view

2.     Enter the view of a CC defense policy.

cc-defense policy policy-name

3.     Move a CC defense rule among the CC defense policy.

rule move rule-name1 { after | before } rule-name2

Copying a CC defense rule to create a new rule

1.     Enter system view.

system-view

2.     Enter the view of a CC defense policy.

cc-defense policy policy-name

3.     Create a CC defense rule by copying an existing rule.

rule copy rule-name new-rule-name

Activating WAF policy settings

About this task

After detecting WAF policy changes, the system starts a timer to check for new changes 20 seconds later.

·     If no further changes are detected when the timer expires, the system determines that the changes are final and activate the changes at the expiration of the next check interval (after 40 seconds).

·     If new changes are detected, the system resets the check interval timer and continue the periodic check until it determines that the changes are final and activates the changes.

You can also use this function to manually activate WAF policy changes.

Restrictions and guidelines

You do not need to perform this task for semantic analysis and CC defense in a WAF policy, because the configuration of semantic analysis and CC defense can take effect immediately.

For more information about activating DPI service module configuration, see "Configuring DPI engine."

Procedure

1.     Enter system view.

system-view

2.     Activate WAF policy settings.

inspect activate

By default, changes to WAF policy settings take effect after the system automatically activates the changes during the periodic check.

 

CAUTION

CAUTION:

This command causes transient DPI service interruption. DPI-based services might also be interrupted. For example, security policies cannot control access to applications, or server load balancing services cannot load share traffic based on applications.

Applying a WAF policy to a DPI application profile

About this task

A WAF policy must be applied to a DPI application profile to take effect.

Restrictions and guidelines

A DPI application profile can use only one WAF policy. If you apply different WAF policies to the same DPI application profile, only the most recent configuration takes effect.

Procedure

1.     Enter system view.

system-view

2.     Enter DPI application profile view.

app-profile profile-name

For more information about this command, see DPI engine commands in DPI Command Reference.

3.     Apply a WAF policy to the DPI application profile.

waf apply policy policy-name mode { protect | alert }

By default, no WAF policy is applied to the DPI application profile.

Applying a DPI application profile to a security policy rule

1.     Enter system view.

system-view

2.     Enter security policy view.

security-policy { ip | ipv6 }

3.     Enter security policy rule view.

rule { rule-id | [ rule-id ] name rule-name }

4.     Set the rule action to pass.

action pass

The default rule action is drop.

5.     Use a DPI application profile in the rule.

profile app-profile-name

By default, no DPI application profile is used in a security policy rule.

Applying a DPI application profile to an object policy rule

6.     Enter system view.

system-view

7.     Enter object policy view.

object-policy { ip | ipv6 } object-policy-name

8.     Use a DPI application profile in an object policy rule.

rule [ rule-id ] inspect app-profile-name

By default, no DPI application profile is used in an object policy rule.

9.     Return to system view.

quit

10.     Create a zone pair and enter zone pair view.

zone-pair security source source-zone-name destination destination-zone-name

For more information about zone pairs, see security zone configuration in Security Configuration Guide.

11.     Apply the object policy to the zone pair.

object-policy apply { ip | ipv6 } object-policy-name

By default, no object policy is applied to a zone pair.

Managing a user-defined WAF signature

Creating a user-defined WAF signature

About this task

You can create signatures that do not exist in the current signature library.

Procedure

1.     Enter system view.

system-view

2.     Create a WAF signature and enter its view.

waf signature user-defined name signature-name

By default, no user-defined WAF signatures are configured.

3.     (Optional.) Configure the description for the user-defined WAF signature.

description text

Configuring attributes in a user-defined WAF signature

About this task

Each WAF signature contains various attributes, including action, direction, severity level, and the logical operator between rules in the signature.

You can create multiple rules in a user-defined WAF signature. If the logical AND operator is specified, a packet matches the signature only when the packet matches all rules in the signature. If the logical OR operator is specified, a packet matches the signature when the packet matches any rule in the signature.

Procedure

1.     Enter system view.

system-view

2.     Enter the view of a user-defined WAF signature.

waf signature user-defined name signature-name

By default, no user-defined WAF signatures exist.

3.     Configure the attributes for the user-defined WAF signature.

¡     Set the actions on packets matching the WAF signature.

action { block-source | drop | permit | reset } [ capture | logging ] *

By default, the action is permit on packets matching a user-defined WAF signature.

¡     Set the traffic direction attribute.

direction { any | to-client | to-server }

By default, both client-to-server and server-to-client directions are defined for a user-defined WAF signature.

¡     Set a severity level.

severity-level { critical | high | low | medium } *

By default, the low severity level attribute is specified for a user-defined WAF signature.

¡     Set a logical operator between rules in the signature.

rule-logic { and | or }

By default, the logical OR operator is specified between rules in a user-defined WAF signature.

Configure rules for a user-defined WAF signature

About this task

A user-defined WAF signature rule can be one of the following types:

·     Keyword.

·     Integer.

A user-defined signature rule might contain filtering criteria, detection items, and a detection trigger condition. The device uses the rule for packet filtering as follows:

1.     The device compares the packet with the filtering criteria.

¡     If the packet matches all filtering criteria, the device goes to the next step.

¡     If the packet does not match all filtering criteria, WAF does not process the packet.

2.     The device compares the packet with the detection trigger condition.

This step is available only for a rule of the keyword type.

¡     If the packet matches the detection trigger condition, the device goes to the next step.

¡     If the packet does not match the detection trigger condition, WAF does not process the packet.

3.     The device compares the packet with the detection items.

The detection items are used to match the specified contents in a packet. A packet matches a rule only when the packet matches all detection items in the rule. The match order of the detection items is their configuration order.

Restrictions and guidelines

A detection item compares its keyword with the contents in the specified protocol field.

To avoid detection errors, configure detection items based on the sequence of protocol fields in the HTTP protocol.

In a signature rule of the keyword match pattern type, a detection trigger condition must be configured before detection item configuration. If you delete the detection trigger condition, all detection items in the rule will also be deleted.

To define the start and end positions for the match operation, use either the offset and depth, or the relative offset and relative depth.

Procedure

1.     Enter system view.

system-view

2.     Enter the view of a user-defined WAF signature.

waf signature user-defined name signature-name

3.     Create a user-defined WAF signature rule and enter its view.

rule rule-id pattern-type { integer | keyword }

By default, no user-defined WAF signature rules exist.

4.     Configure the filtering criteria for the rule.

¡     Set a source IP address.

source-address ip ip-address

By default, a user-defined WAF signature rule matches all source IP addresses.

¡     Set a destination IP address.

destination-address ip ip-address

By default, a user-defined WAF signature rule matches all destination IP addresses.

¡     Set source ports.

source-port start-port [ to end-port ]

By default, a user-defined WAF signature rule matches all source ports.

¡     Set destination ports.

destination-port start-port [ to end-port ]

By default, a user-defined WAF signature rule matches all destination ports.

¡     Set an HTTP request method.

http-method method-name

By default, a user-defined WAF signature rule matches all HTTP request methods.

5.     Configure the detection trigger condition and detection items for the rule.

¡     If the rule is of the keyword type, configure a detection trigger condition and detection items in sequence:

i     Create a detection trigger condition.

trigger field field-name include { hex hex-string | text text-string } [ offset offset-value ] [ depth depth-value ]

ii     Create a detection item.

detection-keyword detection-id field field-name match-type { exclude | include } { hex hex-string | regex regex-pattern | text text-string } [ offset offset-value [ depth depth-value ] | relative-offset relative-offset-value [ relative-depth relative-depth-value ] ]

¡     If the rule is of the integer type:

detection-integer field field-name match-type { eq | gt | gt-eq | lt | lt-eq | nequ } number

Managing the WAF signature library

You can update or roll back the version of the WAF signature library on the device.

Restrictions and guidelines

·     Do not delete the /dpi/ folder in the root directory of the storage medium.

·     Do not perform WAF signature update or rollback when the device's free memory is below the normal state threshold. For more information about device memory thresholds, see device management in Fundamentals Configuration Guide.

·     For successful automatic and immediate signature update, make sure the device can resolve the domain name of the official website into an IP address through DNS. For more information about DNS, see DNS configuration in Layer 3—IP Services Configuration Guide.

·     Update only one signature library at a time. Do not perform signature library update until the existing signature library update is completed.

Scheduling automatic WAF signature library update

About this task

You can schedule automatic WAF signature library update if the device can access the signature database services on the official website. The device periodically obtains the latest signature file from the official website to update its local signature library according to the update schedule.

Procedure

1.     Enter system view.

system-view

2.     Enable automatic WAF signature library update and enter automatic WAF signature library update configuration view.

waf signature auto-update

By default, automatic WAF signature library update is disabled.

3.     Schedule the update time.

update schedule { daily | weekly { fri | mon | sat | sun | thu | tue | wed } } start-time time tingle minutes

By default, the device updates the WAF signature library at a random time between 01:00:00 and 03:00:00 every day.

4.     (Optional.) Configure the device to overwrite the current WAF signature library without backing up the library during an automatic signature library update.

override-current

By default, the device backs up the current WAF signature library as the previous version before performing an automatic WAF signature library update.

Triggering an immediate WAF signature update

About this task

Anytime you find a release of new signature version on the official website, you can trigger the device to immediately update the local signature library.

Procedure

1.     Enter system view.

system-view

2.     Trigger an immediate WAF signature library update.

waf signature auto-update-now

Performing a WAF signature manual update

About this task

If the device cannot access the signature database services on the official website, use one of the following methods to manually update the WAF signature library on the device:

·     Local update—Updates the WAF signature library by using a locally stored update WAF signature file.

(In standalone mode.) Store the update file on the active MPU for successful signature library update.

(In IRF mode.) Store the update file on the global active MPU for successful signature library update.

·     FTP/TFTP update—Updates the WAF signature library by using the file stored on the FTP or TFTP server.

Procedure

1.     Enter system view.

system-view

2.     Manually update the WAF signature library on the device.

waf signature update [ override-current ] file-path

Rolling back the WAF signature library

About this task

If a WAF signature library update causes exceptions or a high false alarm rate, you can roll back the WAF signature library.

Before rolling back the WAF signature library, the device backs up the current signature library as the previous version. For example, the previous library version is V1 and the current library version is V2. If you perform a rollback to the previous version, library version V1 becomes the current version and library version V2 becomes the previous version. If you perform a rollback to the previous version again, the library rolls back to library version V2.

Procedure

1.     Enter system view.

system-view

2.     Roll back the WAF signature library to the previous version or to the factory default version.

waf signature rollback { factory | last }

Configuring WAF whitelist

About this task

If false alarms exist in WAF logs, you can enable the WAF whitelist feature, and add the detected WAF signature IDs, URLs, or source IP addresses to the WAF whitelist. The WAF signature IDs, URLs, and source IP addresses are recorded in the WAF logs. The device permits packets matching the WAF signatures, URLs, or source IP addresses on the WAF whitelist to pass through, reducing false alarms.

If a WAF whitelist entry contains a signature ID, URL, and source IP address, or two of them, a packet matches this entry only when it matches all configured criteria.

Procedure

1.     Enter system view.

system-view

2.     Enable the WAF whitelist feature.

waf whitelist enable

By default, the WAF whitelist feature is enabled.

3.     Create a WAF whitelist entry and enter its view.

waf whitelist entry-id

4.     Configure the description for the WAF whitelist entry.

description text

By default, a WAF whitelist entry does not have any description.

5.     Configure the WAF whitelist entry. Choose at least one of the following options to configure:

¡     Add a signature ID to the WAF whitelist entry.

signature-id [ serial-number ] sig-id

By default, no signature ID exists in a WAF whitelist entry.

¡     Add a source IP address to the WAF whitelist entry.

source-address { ip ipv4-address | ipv6 ipv6-address }

By default, no source IP address exists in a WAF whitelist entry.

¡     Add a URL to the WAF whitelist entry.

url match-type { accurate | substring } url-text

By default, no URL exists in a WAF whitelist entry.

6.     (Optional.) Disable the WAF whitelist entry.

undo entry enable

By default, a WAF whitelist entry is enabled. To disable a WAF whitelist entry not in use, use this command.

7.     Return to system view.

quit

8.     (Optional.) Activate the WAF whitelist configuration.

waf whitelist activate

By default, when you create, edit, or delete a WAF whitelist entry that contains a URL, the system automatically activate the configuration 10 seconds later to have the configuration take effect. To have the configuration take effect immediately, use this command.

For the configuration on a WAF whitelist entry that does not contain a URL, the configuration automatically takes effect.

Display and maintenance commands for WAF

Execute display commands in any view.

Task

Command

Display WAF policy information.

display waf policy policy-name

Display WAF signature library information.

display waf signature library

Display WAF signature information.

display waf signature [ pre-defined | user-defined ] [ direction { any | to-client | to-server } ] [ category category-name | fidelity { high | low | medium } | severity { critical | high | low | medium } ] *

Display detailed information about a predefined WAF signature.

display waf signature pre-defined signature-id

Display detailed information about a user-defined WAF signature.

display waf signature user-defined signature-id

WAF configuration examples

Example: Using the default WAF policy in a security policy

Network configuration

As shown in Figure 3, the device connects to the LAN and Internet through security zones Trust and Untrust, respectively.

Configure the device to use the default WAF policy for attack detection and prevention.

Figure 3 Network diagram

Procedure

1.     Assign IP addresses to interfaces:

# Assign an IP address to interface GigabitEthernet 1/0/1.

<Device> system-view

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] ip address 192.168.1.1 255.255.255.0

[Device-GigabitEthernet1/0/1] quit

# Assign IP addresses to other interfaces in the same way. (Details not shown.)

2.     Configure settings for routing.

This example configures a static route with next hop address 2.2.2.2.

[Device] ip route-static 5.5.5.0 24 2.2.2.2

3.     Add interfaces to security zones.

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

4.     Apply the default WAF policy to a DPI application profile and activate the WAF policy settings:

# Create a DPI application profile named sec and enter its view. Apply the default WAF policy to the DPI application profile and set the policy mode to protect.

[Device] app-profile sec

[Device-app-profile-sec] waf apply policy default mode protect

[Device-app-profile-sec] quit

# Activate the WAF policy settings.

[Device] inspect activate

5.     Configure a security policy:

# Enter IPv4 security policy view. Create a security policy rule named trust-untrust so the device can apply the WAF policy to traffic between the internal users and the Internet.

[Device] security-policy ip

[Device-security-policy-ip] rule name trust-untrust

[Device-security-policy-ip-10-trust-untrust] source-zone trust

[Device-security-policy-ip-10-trust-untrust] source-ip-subnet 192.168.1.0 24

[Device-security-policy-ip-10-trust-untrust] destination-zone untrust

[Device-security-policy-ip-10-trust-untrust] action pass

[Device-security-policy-ip-10-trust-untrust] profile sec

[Device-security-policy-ip-10-trust-untrust] quit

# Activate rule matching acceleration.

[Device-security-policy-ip] accelerate enhance enable

[Device-security-policy-ip] quit

Verifying the configuration

# Verify that the device can use the default WAF policy to detect and prevent known network attacks. (Details not shown.)

For example, if an incoming attack packet matches predefined WAF signature GNU_Bash_Remote_Code_Execution_Vulnerability(CVE-2014-6271), the device automatically applies the signature actions (reset and logging) to the packet.

Example: Using a user-defined WAF policy in a security policy

Network configuration

As shown in Figure 4, the device connects to the LAN and Internet through security zones Trust and Untrust, respectively.

Perform the following tasks:

1.     Configure the device to use a WAF policy for attack detection and prevention.

2.     Enable predefined WAF signature 2 and specify actions drop and logging for the signature.

Figure 4 Network diagram

Procedure

1.     Assign IP addresses to interfaces:

# Assign an IP address to interface GigabitEthernet 1/0/1.

<Device> system-view

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] ip address 192.168.1.1 255.255.255.0

[Device-GigabitEthernet1/0/1] quit

# Assign IP addresses to other interfaces in the same way. (Details not shown.)

2.     Configure settings for routing.

This example configures a static route with next hop address 2.2.2.2.

[Device] ip route-static 5.5.5.0 24 2.2.2.2

3.     Add interfaces to security zones.

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

4.     Create a WAF policy named waf1, and then configure the following settings in the policy:

a.     Configure the server to client direction as signature filtering criterion.

b.     Enable predefined WAF signature 2 and specify actions drop and logging for the signature.

[Device] waf policy waf1

[Device-waf-policy-waf1] object-dir client

[Device-waf-policy-waf1] signature override pre-defined 2 enable drop logging

[Device-waf-policy-waf1] quit

5.     Apply WAF policy waf1 to a DPI application profile and activate the WAF policy settings:

# Create a DPI application profile named sec. Apply WAF policy waf1 to the DPI application profile and set the policy mode to protect.

[Device] app-profile sec

[Device-app-profile-sec] waf apply policy waf1 mode protect

[Device-app-profile-sec] quit

# Activate the WAF policy settings.

[Device] inspect activate

6.     Configure a security policy:

# Enter IPv4 security policy view. Create a security policy rule named trust-untrust so the device can apply the WAF policy to traffic between the internal users and the Internet.

[Device] security-policy ip

[Device-security-policy-ip] rule name trust-untrust

[Device-security-policy-ip-10-trust-untrust] source-zone trust

[Device-security-policy-ip-10-trust-untrust] source-ip-subnet 192.168.1.0 24

[Device-security-policy-ip-10-trust-untrust] destination-zone untrust

[Device-security-policy-ip-10-trust-untrust] action pass

[Device-security-policy-ip-10-trust-untrust] profile sec

[Device-security-policy-ip-10-trust-untrust] quit

# Activate rule matching acceleration.

[Device-security-policy-ip] accelerate enhanced enable

[Device-security-policy-ip] quit

Verifying the configuration

# Verify that the device can use the default WAF policy to detect and prevent known network attacks. (Details not shown.)

# Verify that when a packet matches predefined WAF signature 2, the device executes the drop and logging actions.

Example: Manually updating the WAF signature library

Network configuration

As shown in Figure 5, LAN users in security zone Trust can access the following resources:

·     Internet resources in security zone Untrust.

·     The FTP server at 192.168.2.4/24 in security zone DMZ. The FTP login username and password are waf and 123, respectively.

Manually update the WAF signature library by using the latest WAF signature file stored on the FTP server.

Figure 5 Network diagram

Procedure

1.     Assign IP addresses to interfaces:

# Assign an IP address to interface GigabitEthernet 1/0/1.

<Device> system-view

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] ip address 192.168.1.1 255.255.255.0

[Device-GigabitEthernet1/0/1] quit

# Assign IP addresses to other interfaces in the same way. (Details not shown.)

2.     Configure settings for routing.

This example configures a static route with next hop address 2.2.2.2.

[Device] ip route-static 5.5.5.0 24 2.2.2.2

3.     Add interfaces to security zones.

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

[Device] security-zone name dmz

[Device-security-zone-DMZ] import interface gigabitethernet 1/0/3

[Device-security-zone-DMZ] quit

4.     Configure a security policy:

# Configure a security policy rule to permit the traffic between the Trust and Untrust security zones so internal users can access external resources.

[Device] security-policy ip

[Device-security-policy-ip] rule name trust-untrust

[Device-security-policy-ip-10-trust-untrust] source-zone trust

[Device-security-policy-ip-10-trust-untrust] source-ip-subnet 192.168.1.0 24

[Device-security-policy-ip-10-trust-untrust] destination-zone untrust

[Device-security-policy-ip-10-trust-untrust] action pass

[Device-security-policy-ip-10-trust-untrust] quit

# Configure a security policy rule to permit the traffic between the Trust and DMZ security zones so internal users can access the FTP server in the DMZ security zone.

[Device] security-policy ip

[Device-security-policy-ip] rule name trust-dmz

[Device-security-policy-ip-11-trust-dmz] source-zone trust

[Device-security-policy-ip-11-trust-dmz] source-ip-subnet 192.168.1.0 24

[Device-security-policy-ip-11-trust-dmz] destination-zone dmz

[Device-security-policy-ip-11-trust-dmz] action pass

[Device-security-policy-ip-11-trust-dmz] quit

# Configure a security policy rule to permit the traffic between the FTP server and the device so the device can access the FTP server to obtain the signature library file.

[Device] security-policy ip

[Device-security-policy-ip] rule name downloadlocalout

[Device-security-policy-ip-12-downloadlocalout] source-zone local

[Device-security-policy-ip-12-downloadlocalout] destination-zone dmz

[Device-security-policy-ip-12-downloadlocalout] destination-ip-subnet 192.168.2.0 24

[Device-security-policy-ip-12-downloadlocalout] application ftp

[Device-security-policy-ip-12-downloadlocalout] application ftp-data

[Device-security-policy-ip-12-downloadlocalout] action pass

[Device-security-policy-ip-12-downloadlocalout] quit

# Activate rule matching acceleration.

[Device-security-policy-ip] accelerate enhanced enable

[Device-security-policy-ip] quit

5.     Update the WAF signature library on the device by using WAF signature file waf-1.0.8-encrypt.dat on the FTP server.

[Device] waf signature update ftp://waf:123@192.168.2.4/waf-1.0.8-encrypt.dat

Verifying the configuration

# Verify that the device WAF signature library is updated.

<Device> display waf signature library

Example: Configuring automatic WAF signature library update

Network configuration

As shown in Figure 6, LAN users in security zone Trust can access Internet resources in security zone Untrust.

Configure the device to start automatically updating the local WAF signature library at a random time between 08:30 a.m. and 09:30 a.m. every Saturday.

Figure 6 Network diagram

Procedure

1.     Assign IP addresses to interfaces:

# Assign an IP address to interface GigabitEthernet 1/0/1.

<Device> system-view

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] ip address 192.168.1.1 255.255.255.0

[Device-GigabitEthernet1/0/1] quit

# Assign IP addresses to other interfaces in the same way. (Details not shown.)

2.     Configure settings for routing.

This example configures a static route with next hop address 2.2.2.2.

[Device] ip route-static 5.5.5.0 24 2.2.2.2

3.     Add interfaces to security zones.

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

4.     Configure DNS for the device to resolve the domain name of the official website into the correct IP address.

[Device] dns server 10.72.66.36

5.     Configure a security policy:

# Configure a security policy rule to permit the traffic between the Trust and Untrust security zones so internal users can access external resources.

[Device] security-policy ip

[Device-security-policy-ip] rule name trust-untrust

[Device-security-policy-ip-10-trust-untrust] source-zone trust

[Device-security-policy-ip-10-trust-untrust] source-ip-subnet 192.168.1.0 24

[Device-security-policy-ip-10-trust-untrust] destination-zone untrust

[Device-security-policy-ip-10-trust-untrust] action pass

[Device-security-policy-ip-10-trust-untrust] quit

# Configure a security policy rule to permit the traffic between the Local and Untrust security zones so the device can access the official website to obtain the signature library file.

[Device] security-policy ip

[Device-security-policy-ip] rule name downloadlocalout

[Device-security-policy-ip-11-downloadlocalout] source-zone local

[Device-security-policy-ip-11-downloadlocalout] destination-zone untrust

[Device-security-policy-ip-11-downloadlocalout] action pass

[Device-security-policy-ip-11-downloadlocalout] quit

# Activate rule matching acceleration.

[Device-security-policy-ip] accelerate enhanced enable

[Device-security-policy-ip] quit

6.     Configure automatic WAF signature library update:

Enable automatic WAF signature library update. Configure the device to perform automatic update at a random time between 08:30 a.m. and 09:30 a.m. every Saturday.

<Device> system-view

[Device] waf signature auto-update

[Device-waf-sig-autoupdate] update schedule weekly sat start-time 9:00:00 tingle 60

[Device-waf-sig-autoupdate] quit

Verifying the configuration

# Verify that the device WAF signature library is updated as scheduled.

<Device> display waf signature library

Example: Using the default WAF policy in an object policy

Network configuration

As shown in Figure 7, the device connects to the LAN and Internet through security zones Trust and Untrust, respectively.

Configure the device to use the default WAF policy for attack detection and prevention.

Figure 7 Network diagram

Procedure

1.     Assign IP addresses to interfaces, as shown in Figure 7. (Details not shown.)

2.     Configure the security zones:

# Assign GigabitEthernet 1/0/1 to security zone Trust.

<Device> system-view

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

# Assign GigabitEthernet 1/0/2 to security zone Untrust.

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

3.     Create an IP address object group named waffilter and configure an IP address object with subnet 192.168.1.0/24.

[Device] object-group ip address waffilter

[Device-obj-grp-ip-waffilter] network subnet 192.168.1.0 24

[Device-obj-grp-ip-waffilter] quit

4.     Apply the default WAF policy to a DPI application profile:

# Create a DPI application profile named sec and enter its view.

[Device] app-profile sec

# Apply the default WAF policy to the DPI application profile and set the policy mode to protect.

[Device-app-profile-sec] waf apply policy default mode protect

[Device-app-profile-sec] quit

5.     Activate the WAF policy settings.

[Device] inspect activate

6.     Configure an object policy:

# Create an IPv4 object policy named waffilter and enter its view.

[Device] object-policy ip waffilter

# Configure an object policy rule to apply DPI application profile sec to packets with source IP addresses contained in IP address object group waffilter.

[Device-object-policy-ip-waffilter] rule inspect sec source-ip waffilter destination-ip any

[Device-object-policy-ip-waffilter] quit

7.     Create a zone pair between source security zone Trust and destination security zone Untrust, and apply object policy waffilter to the zone pair.

[Device] zone-pair security source trust destination untrust

[Device-zone-pair-security-Trust-Untrust] object-policy apply ip waffilter

[Device-zone-pair-security-Trust-Untrust] quit

Verifying the configuration

# Verify that the device can use the default WAF policy to detect and prevent known network attacks. (Details not shown.)

For example, if an incoming attack packet matches predefined WAF signature GNU_Bash_Remote_Code_Execution_Vulnerability(CVE-2014-6271), the device automatically applies the signature actions (reset and logging) to the packet.

Example: Using a user-defined WAF policy in an object policy

Network configuration

As shown in Figure 8, the device connects to the LAN and Internet through security zones Trust and Untrust, respectively.

Perform the following tasks:

1.      Configure the device to use a WAF policy for attack detection and prevention.

2.     Enable predefined WAF signature 2 and specify actions drop and logging for the signature.

3.     Apply WAF policy waf1 to zone pair between source security zone Trust and destination security zone Untrust.

Figure 8 Network diagram

Procedure

1.     Assign IP addresses to interfaces, as shown in Figure 8. (Details not shown.)

2.     Configure the security zones:

# Assign GigabitEthernet 1/0/1 to security zone Trust.

<Device> system-view

[Device] security-zone name trust

[Device-security-zone-Trust] import interface gigabitethernet 1/0/1

[Device-security-zone-Trust] quit

# Assign GigabitEthernet 1/0/2 to security zone Untrust.

[Device] security-zone name untrust

[Device-security-zone-Untrust] import interface gigabitethernet 1/0/2

[Device-security-zone-Untrust] quit

3.     Create an IP address object group named waffilter and configure an IP address object with subnet 192.168.1.0/24.

[Device] object-group ip address waffilter

[Device-obj-grp-ip-waffilter] network subnet 192.168.1.0 24

[Device-obj-grp-ip-waffilter] quit

4.     Configure a WAF policy:

# Create a WAF policy named waf1 and enter its view.

[Device] waf policy waf1

# Configure the server to client direction as signature filtering criteria in the WAF policy.

[Device-waf-policy-waf1] object-dir client

# Enable predefined WAF signature 2 and specify actions drop and logging for the signature.

[Device-waf-policy-waf1] signature override pre-defined 2 enable drop logging

5.     Apply WAF policy waf1 to a DPI application profile:

# Create a DPI application profile named sec.

[Device] app-profile sec

# Apply WAF policy waf1 to the DPI application profile and set the policy mode to protect.

[Device-app-profile-sec] waf apply policy waf1 mode protect

[Device-app-profile-sec] quit

6.     Activate the WAF policy settings.

[Device] inspect activate

7.     Configure an object policy:

# Create an IPv4 object policy named waffilter and enter its view.

[Device] object-policy ip waffilter

# Configure an object policy rule to apply DPI application profile sec to packets with source IP addresses contained in IP address object group waffilter.

[Device-object-policy-ip-waffilter] rule inspect sec source-ip waffilter destination-ip any

[Device-object-policy-ip-waffilter] quit

8.     Create a zone pair between source security zone Trust and destination security zone Untrust, and apply object policy waffilter to the zone pair.

[Device] zone-pair security source trust destination untrust

[Device-zone-pair-security-Trust-Untrust] object-policy apply ip waffilter

[Device-zone-pair-security-Trust-Untrust] quit

Verifying the configuration

# Verify that the device can use the default WAF policy to detect and prevent known network attacks. (Details not shown.)

# Verify that when a packet matches predefined WAF signature 2, the device executes the drop and logging actions.

Example: Manually updating the WAF signature library

Network configuration

As shown in Figure 9, LAN users in security zone Trust can access the following resources:

·     Internet resources in security zone Untrust.

·     The FTP server at 192.168.2.1/24 in security zone DMZ. The FTP login username and password are waf and 123, respectively.

Perform the following tasks:

·     Manually update the WAF signature library by using the latest WAF signature file stored on the FTP server.

·     Configure the device to use the default WAF policy to detect and prevent known attacks on the network.

Figure 9 Network diagram

Procedure

1.     Assign IP addresses to interfaces, as shown in Figure 9. (Details not shown.)

2.     Enable the device to communicate with the FTP server:

# Configure ACL 2001 to permit all traffic.

<Device> system-view

[Device] acl basic 2001

[Device-acl-ipv4-basic-2001] rule permit

[Device-acl-ipv4-basic-2001] quit

# Assign GigabitEthernet 1/0/3 to zone DMZ.

[Device] security-zone name dmz

[Device-security-zone-DMZ] import interface gigabitethernet 1/0/3

[Device-security-zone-DMZ] quit

# Create a zone pair between source security zone Local and destination security zone DMZ, and then apply ACL 2001 to the zone pair.

[Device] zone-pair security source local destination dmz

[Device-zone-pair-security-Local-DMZ] packet-filter 2001

[Device-zone-pair-security-Local-DMZ] quit

# Create a zone pair between source security zone DMZ and destination security zone Local, and the apply ACL 2001 to the zone pair.

[Device] zone-pair security source dmz destination local

[Device-zone-pair-security-DMZ-Local] packet-filter 2001

[Device-zone-pair-security-DMZ-Local] quit

3.     Update the device WAF signature library by using WAF signature file waf-1.0.8-encrypt.dat on the FTP server.

[Device] waf signature update ftp://waf:123@192.168.2.4/waf-1.0.8-encrypt.dat

Verifying the configuration

# Verify that the device WAF signature library is updated.

<Device> display waf signature library

Example: Configuring automatic WAF signature library update

Network configuration

As shown in Figure 10, LAN users in security zone Trust can access Internet resources in security zone Untrust.

Configure the device to automatically update the local WAF signature library at a random time between 08:30 a.m. and 09:30 a.m. every Saturday.

Figure 10 Network diagram

Procedure

1.     Assign IP addresses to interfaces, as shown in Figure 10. (Details not shown.)

2.     Configure DNS for the device to resolve the domain name of the official website into the IP address. (Details not shown.)

3.     Configure an object policy to allow LAN users in security zone Trust to access Internet resources in security zone Untrust. (Details not shown.)

4.     Configure automatic WAF signature library update:

# Enable automatic WAF signature library update.

<Device> system-view

[Device] waf signature auto-update

[Device-waf-sig-autoupdate]

# Configure the device to perform automatic update at a random time between 08:30 a.m. and 09:30 a.m. every Saturday.

[Device-waf-sig-autoupdate] update schedule weekly sat start-time 9:00:00 tingle 60

[Device-waf-sig-autoupdate] quit

Verifying the configuration

# Verify that the device WAF signature library is updated as scheduled.

<Device> display waf signature library

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网