This section provides the networking requirements and a step-by-step procedure for configuring the audit function. After the audit function is enabled, Internet access activities are logged for future audits and analysis.
As shown in Figure 1, the FW serves as the gateway at the border of an enterprise network. Log the Internet access behavior of employees by configuring the audit function.
The employees of the enterprise are either R&D personnel or marketing personnel. The requirements are as follows:
After you specified the interface IP address, security zone, and schedule, use the audit administrator account to log in to the FW and complete the configurations related to the audit function.

Click Add in Audit Configuration and set the parameters as follows:
Name |
profile_audit_1 |
|---|---|
Description |
Profile of auditing for research. |
Audit HTTP behavior |
|
URL Access |
Select All. |
Web Page Title |
Select Keep records. |
BBS Post |
Select Keep records. |
Microblog |
Select Keep records. |
HTTP File Download |
Select Keep records. |
Audit FTP Behavior |
|
FTP File Download |
Select Keep records. |
Click Add in Audit Configuration and set the parameters as follows:
Name |
profile_audit_2 |
|---|---|
Description |
Profile of auditing for marketing. |
Audit HTTP Behavior |
|
HTTP File Upload |
Select Keep records. |
HTTP File Download |
Select Keep records. |
Audit FTP Behavior |
|
FTP File Upload |
Select Keep records. |
FTP File Download |
Select Keep records. |
Audit Email-Related Behavior |
|
Sending |
Select Keep records. |
Receiving |
Select Keep records. |

Click Add in Audit Policy List and set the parameters as follows:
In this example, user groups for research (R&D personnel) and marketing (marketing personnel) to be referenced have been created.
Name |
policy_audit_1 |
|---|---|
Description |
Policy of auditing for research. |
Source zone |
trust |
Destination zone |
untrust |
User |
/default/research |
Service |
any |
Schedule |
time_range |
Action |
Audit |
Audit Configuration |
profile_audit_1 |
Click Add in Audit Policy List and set the parameters as follows:
Name |
policy_audit_2 |
|---|---|
Description |
Policy of auditing for marketing. |
Source zone |
trust |
Destination zone |
untrust |
User |
/default/marketing |
Service |
any |
Schedule |
any |
Action |
Audit |
Audit Configuration |
profile_audit_2 |
After the configuration is complete, you can view various reports, audit logs, and user activity logs to identify the users and user behavior that leads to low productivity. You can also use this information to fine-tune security policies in the future.
This section provides only the script related to the example.
# sysname FW # time-range time_range period-range 09:00:00 to 17:00:00 daily # interface GigabitEthernet0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/3 undo shutdown ip address 10.3.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # profile type audit name profile_audit_1 description Profile of auditing for research. http-audit url all http-audit url recorded-title http-audit bbs-content http-audit micro-blog http-audit file direction download ftp-audit file direction download # profile type audit name profile_audit_2 description Profile of auditing for marketing. http-audit url all http-audit file direction upload http-audit file direction download ftp-audit file direction upload ftp-audit file direction download mail-audit send mail-audit receive # audit-policy rule name policy_audit_1 description Policy of auditing for research. source-zone trust destination-zone untrust user user-group /default/research time-range time_range action audit profile profile_audit_1 rule name policy_audit_2 description Policy of auditing for marketing. source-zone trust destination-zone untrust user user-group /default/marketing action audit profile profile_audit_2