How to get the configurations of the firewall based on the exporting EXP (Settings) file?

Description

The firewall appliance settings (.exp) file is encoded. This article explains how to decode it into a readable text file 

Resolution for LINUX 

In this example the settings file has been renamed in "settings.exp", it is not mandatory to rename the settings file.

Under the Terminal application, run:

base64 -d -i settings.exp | sed 's/&/\n/g' > config.txt


base64 command will decode the settings.exp file into config.txt file.


Linux Terminal

The command has not output, but if no errors are displayed means that the conversion succedeed.
Now, in the same directory of the settings file the file "config.txt" has been generated. 

Linux folder

The file contains the decrypted settings.

Linux Decrypted


Resolution for Windows

Open the settings file with Notepad++ and reach the end of the file.
Here there are two && that must be deleted.

End of the file

Remove the two && and save the file.


Windows && removed

Then open a Command Prompt (CMD) issuing the command:

certutil -decode "sonicwall-TZ 470-SonicOS 7.1.2-7019-R6288-2025-01-02T18_19_52.499Z.exp" settings.txt

certutil command will decode the "sonicwall-TZ 470-SonicOS 7.1.2-7019-R6288-2025-01-02T18_19_52.499Z.exp" file into settings.txt file. 
Windows CMD


Open the geneated settings.txt file with Notepad++
Hit CTRL+F to open the Find Popup and on "Replace" TAB select "Extended" in Search Mode.
Then, insert in "Find what" and in "Replace with" \n
Finally click on Replace All.

Image

During the replacement action Notepad++ may be unresponsive. Wait for the operation to finish. 

After a while Notepad++ will show tje number of all the replaced occurrences.
Notepad++ replacement

Settings file is now in a readable format.

Image

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?