The action command configures the action for a data filtering rule.
The undo action command restores the default action for a data filtering rule. The default action is alert.
action { alert | block | by-threshold { alert-value alert-value | block-value block-value } * }
undo action [ by-threshold { alert-value | block-value } * ]
The default action for a data filtering rule is alert.
The device does not support blocking NFS. Therefore, in a scenario where the application is NFS, and the action is block or the weight is no smaller than the block threshold, the device takes the alert action.
In a scenario where the application is IMAP or POP3, and the action is block or the weight is no smaller than block threshold:
If the email attachment matches the keyword, the device deletes the body and attachment of the email.
If the email body matches the keyword, the device deletes the body and attachment of the email.
If the email subject matches the keyword, the device deletes the subject, body and attachment of the email.
# Set the action for data filtering rule def to block.
<sysname> system-view [sysname] profile type data-filter name abc [sysname-profile-data-filter-abc] rule name def [sysname-profile-data-filter-abc-rule-def] action block
# Configure a threshold-based action for data filtering rule def: set the alert threshold to 100 and the block threshold to 200.
<sysname> system-view [sysname] profile type data-filter name abc [sysname-profile-data-filter-abc] rule name def [sysname-profile-data-filter-abc-rule-def] action by-threshold alert-value 100 block-value 200