You can update the antivirus signature database to improve the detection capability and efficiency of the device.
Before updating the antivirus signature database, do as follows:
Before updating the antivirus signature database, ensure that the license for the update service has been purchased and activated.
To check the license status, perform the following operation:
Run the display license command to check whether the required license has been activated or has expired.
If the status of the signature database to be updated is Disabled, activate the license. For details on how to activate the license, see License Management.
If the status of the signature database to be updated is Enabled, check whether the license has expired. If yes, purchase the license.
Checking the Free Space of the CF Card and Memory
Before updating the antivirus signature database, check whether the free space of the CF card and memory is sufficient. The following table lists the CF card and memory space required for updating the antivirus signature database.
Signature Database |
CF Card Space |
Memory Space |
|---|---|---|
Antivirus signature database (AV-SDB) |
USG6510E/6510E-POE: 10 MB or higher USG6530E: 50 MB or higher Other models: 240 MB or higher |
|
To check the free space of the root directory, perform the following operations:
In the user view, run the dir command to check the free space of the CF card on the MPU.
The example command output of the FW is as follows:
<sysname> dir
Directory of hda1:/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 754 Feb 06 2015 15:35:33 private-data.txt
1 -rw- 5,805 Feb 06 2015 15:35:51 cfgfile.zip
2 drw- - Feb 06 2015 09:07:58 default-sdb
3 drw- - Jul 08 2014 17:02:48 conf
........
48 -rw- 36 Jan 30 2015 10:28:44 $_patchstate_reboot
49 -rw- 1,063 Feb 06 2015 09:13:26 nlog.log
50 -rw- 173,569,921 Feb 04 2015 20:31:10 sup_c30.bin
1,200,576 KB total (379,168 KB free)
In the user view, run the delete command to delete unwanted files from the CF card if the free space is insufficient.
Files are deleted and cannot be restored after the delete command with the /unreserved parameter is executed.
Checking the Current Update Status
Signature databases cannot be updated simultaneously. You can update a signature database only after the current update status is idle.
To check the current update status, perform the following operation:
Run the display update status command to check the update status of the signature database.
<sysname> display update status
Current Update Status: Idle.
If Current Update Status is Idle, you can update the desired signature database. Otherwise, repeat the display update status command until Current Update Status changes to Idle, and then update the desired signature database.
Checking the Signature Database Version
Check the signature database version to determine whether the signature database needs to be updated.
To check the signature database version, perform the following operation:
Run the display version av-sdb command to check the signature database version.
<sysname> display version av-sdb
AV SDB Update Information List:
----------------------------------------------------------------
Current Version:
Signature Database Version : 2016030400
Signature Database Size(byte) : 6768274
Update Time : 16:12:23 2016/05/14
Issue Time of the Update File : 12:01:00 2016/03/04
Backup Version:
Signature Database Version :
Signature Database Size(byte) : 0
Update Time : 00:00:00 0000/00/00
Issue Time of the Update File : 00:00:00 0000/00/00
----------------------------------------------------------------
The antivirus signature database can be updated in either of the following modes:
If the FW can communicate with the update center directly over the Internet or through a proxy server, you can update the antivirus signature database in online mode.
Online update has two ways:
The FW accesses the update center on a scheduled basis to search for the latest antivirus signature databases. If the new versions of antivirus signature databases are found, the FW downloads the latest antivirus signature databases to update the local antivirus signature databases at scheduled time.
After the online antivirus signature database is updated, you can immediately update the local database instead of waiting for the scheduled update.
The download address and process for updating the antivirus signature database immediately is the same as that for the update through scheduled update. The two update modes differ in that immediate update can be performed at any time whereas scheduled update must be implemented at the specified time.
When the FW is physically isolated from the Internet and no proxy server is deployed on the intranet, you can update antivirus signature databases locally.
For details on signature database update scenarios, see Update Center.
If the FW can directly access the update center, you must configure a security policy on the FW to permit HTTP and FTP packets. If the FW accesses the update center through a proxy server, you must configure a security policy on the FW to permit HTTP packets.
system-view
update server { domain domain-name | ip ip-address } [ port port-number ]
The default domain name is sec.huawei.com.
Configure the DNS server to resolve the domain name of the update center. For details, see 3.
update server ca-certificate certificate-file-name
By default, the signature database update service uses the CA certificate (default_ca.cer) preset on the device to communicate with the Huawei security center.
Perform this step when the FW needs to access the update center using a proxy server.
update proxy enable
update proxy { domain domain-name | ip ip-address } [ port port-number ] [ user user-name [ password password ] ]
If a domain name is configured for the proxy server, a DNS server must be configured to resolve the domain name. For details on how to configure the DNS server, see 3.
dns resolve
dns server ip-address
Specify an interface IP address and VPN instance as the source IP address and VPN instance for online update request packets.
update host source interface-type interface-number
Specify the source IP address of online update request packets.
update host source ip ip-address [ vpn-instance vpn-instance ]
If the administrator does not specify the source IP address of online update request packets, the system searches a route based on the IP address of the update server and uses the IP address of the outgoing interface as the source IP address of update request packets.
If the interface has multiple IP addresses, run the update host source ip ip-address command to set the source IP address of update request packets and ensure that the FW can receive the reply packets. Otherwise, the online update may fail.
After the scheduled or immediate update is started, you can run the update abort command to abort the update if the update consumes too much bandwidth and interrupts normal services. Wait until the bandwidth is sufficient for the update and normal services and then run the update online av-sdb command to download the latest signature database.
Enable the scheduled update function.
update schedule av-sdb enable
update schedule av-sdb { hourly minute | { daily | weekly { Mon | Tue | Wed | Thu | Fri | Sat | Sun } } time }
You are advised to update the antivirus signature database every day. The update time can be adjusted based on network conditions.
Download the latest signature database.
update online av-sdb
The update package has been uploaded to the memory of the FW using SFTP, FTP or TFTP.
Download update packages from the security center (isecurity.huawei.com). For details, refer to Update Center.
The upgrade package can be placed in any directory of the FW storage. However, the root directory is recommended.
The signature database files are in .zip format. You can upload them directly to the FW without decompressing them.
system-view
update local av-sdb file filename
When the current signature database is faulty (for example, false positive occurs or system performance is degraded), you can roll back the current signature database to the previous version through version rollbacks.
You can roll back to only one version. If you perform version rollbacks repeatedly, the version rollback is implemented between the current version and the rollback version.
system-view
update rollback av-sdb