ZyWALL USG firmware upgrade en recovery-procedures
referentie Z080A

Default System Database, Recovery Image, Firmware en Factory-defaults bestanden

(Hoe en Wat? Wat moet/kan/wil ik er mee? en wat misschien ook vooral niet…?)

Als we USG/ZLD-based firmware downloaden, is dit eigenlijk niet “de” firmware maar een collectie van verschillende bestanden,
met verschillende functies, ingepakt in 1 ZIP-file.


In de .zip file die we bij ZyXEL kunnen downloaden zitten een aantal bestanden:

1: firmware.xml Wordt alleen gebruikt door VantageCNM (Centralized Network Management)
2: <firmware-release>-opensource-list.xls Bestand met gebruikte Open Source verwijzingen (sinds V2.20 patch 4 firmware)
3: <firmware-release>.pdf De firmware-releasenotes
4: <firmware-release>.conf Het config-bestand met factory-default instellingen
5: <firmware-release>.db Het system default Database bestand
6: <firmware-release>.bin “De” eigenlijke firmware
7: <firmware-release>.ri Het Recovery-Image


Van de bestanden volgt hieronder enige uitleg en/of beschrijving van het gebruik:

 

1: firmware.xml

Het XML-bestand wordt puur en alleen maar door/bij Vantage CNM gebruikt.
Hoe deze wordt gebruikt (of moet worden gebruikt) staat in de handleiding van CNM.

2: <firmware-release>-opensource-list.xls

Het bestandssysteem ZLD, dat door de USG’s wordt gebruikt, staat voor “ZyXEL Linux-based Distribution”. De naam zegt het al, onder water draait er een vorm van Linux en er wordt dus ook gebruik gemaakt van verschillende stukken Open-Source software. In dit bestand staan de verwijzingen naar de diverse “Open Sources”.

3: <firmware-release>.pdf

De firmware-releasenotes wordt helaas nog wel eens vergeten door te lezen alvorens een firmware-update te doen, echter hier staan toch wel een aantal belangrijke zaken in:

 

4: <firmware-release>.conf

Het .conf bestand bevat de factory-default instellingen zoals deze (ook) zijn na een volledige reset van de configuratie.

5: <firmware-release>.db

Het system default database-bestand – Bevat een “lege” database voor de Anti-Virus (AV), Intrusion Detection and Preventie (IDP) en ContentFilter (CF) signatures (definities). In een uitzonderlijk geval kan de database die AV, IDP en/of CF gebruiken corrupt raken en dit kan dan weer worden verholpen middels de database-recovery procedure.

Database recovery volgens diverse KnowledgeBase artikelen:

http://www.zyxel.com/support/knowledge_base/kb_detail_8521.shtml
Problem :
What does it mean when system shows Error message "error (-18000), internal database error!" ?
Solution :
If the device shows the error related to internal database error, it means that the database for anti-virus, IDP, and CF are corrupted.
Hence, the device may not boot successfully with the default configuration file instead of using customer configured file.

http://www.zyxel.com/support/knowledge_base/kb_detail_8520.shtml
Problem :
Error message "error (-18000), internal database error!"
Solution :
If users get the error message showing "internal database error," please do the following steps to recover ZyWALL database.
1. Prepare the console connection to ZyWALL.
2. Restart the ZyWALL and control device in console mode.
3. When "Press any key to enter debug mode with 3 seconds" displays, press a key to enter debug mode.
4. Enter the command below to start the recovery process. USG 100> atkz –u
OK
5. Enter the command below to restart your ZyWALL USG 100> atgo
6. You will see the message "connect a computer to port 1 and FTP to 192.168.1.1 to upload the new file" displaying on the console.
 Now the ZyWALL's FTP server is started at port 1 with IP address 192.168.1.1, so set your computer to use a static IP address in the same subnet and connect the computer to port 1.
7. Please use any FTP client and upload the database file to the ZyWALL, the login name is "anonymous".
 (This file is contained in the firmware package with the extension name .db) Keep the console session connected to ensure the default system database recovery is finished.

http://www.zyxel.com/support/knowledge_base/kb_detail_8523.shtml
Problem :
Can users use xmodem mode to upload the db file to recover the database?
Solution :
No, there is only one way to recover the database in ZyWALL by using FTP client to upload the ".db" file after connecting and setting ZyWaLL to be ready for receiving the db file in console mode.System Database Recovery procedure:

PROBLEM DESCRIPTION

System Default Database damaged (various errors on console)

Default System Database Recovery Procedure

This chapter describes how to recover the default system database of ZyWALL if it has been damaged. This procedure requires the default system database file, which you can download from www.zyxel.com.
The image uses a .db extension, for example, 220AQE4C0.db .

step 1      Plug in the console cable, prepare the terminal software and reboot the ZyWaLL

step 2      Press any key when the system startup messages display Press any key to enter debug mode within 3 seconds to enter debug mode

step 3      Type the command as follows to activate the recovery process:

step 4      If Connect a computer to port 1 and FTP to 192.168.1.1 to upload the new file displays on the screen, you can start the recovery procedure in the following:
atkz_updating

step 5.1    You will use FTP to upload the database package. Keep the console session open in order to see when the database recovery finishes.

step 5.2    Set your computer to use a static IP address from 192.168.1.2 ~ 192.168.1.254. No matter how you have configured the IP addresses of ZyWALL, your computer must use a static IP address in this range to recover the database

step 5.3    Connect your computer to the port 1 of ZyWALL (the only port that you can use for recovering the database).

step 5.4    Use an FTP client on your computer to connect to the ZyWALL. This example uses the ftp command in the Windows command prompt. The FTP server IP address of ZyWALL for database recovery is 192.168.1.1.

step 5.5    Log in without user name (just press enter)

step 5.6    Set the transfer mode to binary. Use bin (or just bi in the Windows command prompt).

step 5.7    Transfer the database file from your computer to the ZyWALL (the command is put <optional_path>220AQE4C0.db in the Windows command prompt).
http://its.zyxel.com.tw/system/kb_upload/8527_a/index.files/image009.jpg

step 5.8    Wait for the file transfer to complete.
http://its.zyxel.com.tw/system/kb_upload/8527_a/index.files/image010.jpg

step 5.9    The console session displays Default System Database received after the FTP file transfer is complete. Then you need to wait while the ZyWALL recovers the database (this may take up to 30 seconds).

step 5.10 The console session displays done when the database recovery is complete.
http://its.zyxel.com.tw/system/kb_upload/8527_a/index.files/image012.jpg

The username prompt displays after the ZyWALL starts up successfully. The database recovery process is now complete and the ZyWALL is ready to use.
http://its.zyxel.com.tw/system/kb_upload/8527_a/index.files/image013.jpg

 

6: <firmware-release>.bin

Het .bin bestand is eigenlijk het bestand waar we het over hebben wanneer we het over "De Firmware" hebben.

Dit bestand wordt gebruikt om de firmware bij te werken middels de webinterface, via FTP maar ook bij de recovery-procedure middels de Recovery Image zoals hieronder omschreven onder punt 7.

 

7: <firmware-release>.ri


De Firmware Recovery Image – In enkele bijzondere gevallen kan het zijn dat het op de reguliere manier updaten van de firmware (middels de Webinterface of via FTP) is misgegaan. In zo’n geval is de recovery-image nodig om de ZyWALL USG te “redden”. De procedure lijkt erg op de procedure voor de recovery van de Default System Database echter met dat verschil dat de recovery image via de seriele poort wordt opgeladen én hierbij ook het .bin bestand nodig is. De procedure staat zoals gezegd stap voor stap omschreven in Appendix 3 in de Firmware-releasenotes.




Relevante links:

Serieel upgraden van firmware
Overzicht van firmwares
Toegang met een seriële verbinding.
ftp.zyxel.dk
(dé Europese FTP-mirror van ZyXEL)