You can configure signature filters in an intrusion prevention profile to filter out the signatures containing the same features and set an action for the threats matching these features. You can also add a signature as an exception and configure a different action for the exception signature.
The device has multiple default intrusion prevention profiles for different application scenarios, as shown in Table 1. The default intrusion prevention profiles can be displayed, cloned, or referenced in security policies, but cannot be modified or deleted.
You can run the display profile type ips name name command on the CLI to view the configuration information about the default profile. If you use the CLI to reference the default profile in a security policy, you must enter the complete profile name (such as default). Otherwise, the profile fails to be referenced. To view the configuration result, run the display current-configuration command. Then you can view that the security policy references the default profile, but the configuration information about the default profile is not displayed.
Name |
Target |
Severity |
Operating System |
Application Program |
Protocol |
Category |
Action |
Application Scenario |
|---|---|---|---|---|---|---|---|---|
video_surveillance |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
DNS, HTTP, FTP, TELNET, SSH, RTSP, SSL, UDP, TCP |
All |
Default |
The intrusion prevention profile applies when the device is deployed in video surveillance scenarios. |
strict |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
All |
All |
Block |
The intrusion prevention profile applies to the scenarios in which the device is required to block all matched packets. |
web_server |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
DNS, HTTP, FTP |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a web server. |
file_server |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
DNS, SMB, NETBIOS, NFS, SUNRPC, MSRPC, FILE, TELNET |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a file server. |
dns_server |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
DNS |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a DNS server. |
mail_server |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
DNS, IMAP4, SMTP, POP3 |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a mail server. |
inside_firewall |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
Except TELNET and TFTP |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed behind a firewall. |
dmz |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
Except NETBIOS, NFS, SMB, TELNET and TFTP |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a DMZ. |
outside_firewall |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
All |
Except Scanner |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in front of a firewall. |
ids |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
All |
All |
Alert |
The intrusion prevention profile applies to the scenarios in which the device is deployed off-line as an IDS. |
default |
All |
Low, Medium, High |
Unix-like, Windows, Android, iOS, Other |
All |
All |
All |
Default |
The intrusion prevention profile applies to the scenarios in which the device is deployed in-line as an IPS. |
profile type ips name name
description description
collect-attack-evidence enable
The attack evidence collection function relies on hard disks and available only when the hard disks are installed.
One of the extreme conditions is that: The action in the intrusion prevention profile is not block and the device collects the packets that match the intrusion prevention profile. However, the storage space is insufficient after the device collects some threat packets. As a result, the device stops collecting attack evidence.
Log in to the device using an auditor account, choose , locate the entry whose Threat Type is Intrusion, click
of the entry to view and download the data packets or click
to directly download the packets. You can view and download the data package only when you log in to the device using an auditor account.
signature-set name name
Item |
Command |
|---|---|
Add the IPS signatures of a specified detection target to the IPS signature filter. |
target { both | client | server } |
Add the IPS signatures with a specified severity value to the IPS signature filter. |
severity { high | medium | low | information } * |
Add the IPS signatures of a specific operating system to the IPS signature filter. |
os { android | ios | unix-like | windows | other } * |
Add the IPS signatures of a specific protocol to the IPS signature filter. |
protocol { protocol-name &<1-10> | all } |
Add the IPS signatures of a specific category to the IPS signature filter. |
category { category-name &<1-10> | all } |
Configure the application name for the IPS signature filter. |
application { application-name &<1-10> | all } |
Configure an action for the IPS signature filter. |
action { alert | block | default } |
exception ips-signature-id ips-signature-id [ action { alert | allow | block | { block-source-ip | block-destination-ip } [ timeout timeout ] } ]
The device supports configuring response actions for exception signatures, including alert, allow, block, and blacklist (directly add the source or destination addresses of traffic that matches exception signatures to a blacklist). In addition, the timeout parameter can be used to configure the timeout period of the blacklist.
cnc domain-filter enable [ action { alert | block } ]
Enable the domain name filtering function.
The domain name-based filtering function enables the device to filter out packets using the malicious domain name signature database. Upon receiving a packet matching a malicious domain name, the device implements the specified action and logs the threats for auditing and troubleshooting.
In the system-view, add exception domain names.
cnc domain-filter exception domain-name domain-name
If you check logs and find that some detected malicious domain names are false positives, you can configure these domain names as exceptions.
By default, the function is enabled.
Item |
Command |
|---|---|
Detecting whether an HTTP traffic contains the SSH traffic |
http ssh-over-http check action { alert | block } |
Detecting whether an HTTP packet contains multiple Host fields |
http multi-host check action { alert | block } |
Detecting the X-Online-Host field in an HTTP packet |
http x-online-host check { any | blacklist | multiple } action { alert | block } http x-online-host blacklist blacklist |
Detecting the X-Forwarded-For field in an HTTP packet |
http x-forwarded-for check { any | whitelist } action { alert | block } http x-forwarded-for whitelist ipv4 ip-address |
Detecting whether the protocol format of a DNS packet is abnormal |
dns malformed-packet check action { alert | block } |
Detecting the query of a DNS packet |
dns request-type check { start-type [ to end-type ] action | default-action } { alert | allow | block } |
Detecting whether a DNS domain name contains unexpected characters |
dns domain check action { alert | block } |
Detecting the length of a DNS domain name |
dns domain length check [ max-length max-length ] action { alert | block } |
Detecting the number of DNS session request times |
dns session request-times check [ max-time max-time ] action { alert | block } |
For details on how to configure the security policy, see Configuring a Security Policy Using the CLI.
ips collect-attack-evidence rule text
After the IPS global evidence collection rule is configured, the IPS global evidence collection function takes effect. When malicious traffic matches the signature, the device extracts the configured evidence collection fields from the malicious traffic. The evidence collection fields are carried in IPS logs and sent to the log server or displayed in View Threat Log Details of threat logs on the web UI.
The relationship between IPS global evidence collection and evidence collection based on IPS user-defined signatures is as follows:
The created or modified intrusion prevention profile does not take effect immediately. You need to commit the configuration to activate the configuration. To save time, commit the configuration after you complete all operations on the intrusion prevention profile.
After configuring the IPS profile, adjust it as follows: