# Export Device Configuration Files for Compliance Reports

The Import Configuration File link lets you import a configuration file from the local machine or from the respective Firewall devices to the Firewall Analyzer.

Your configuration should be treated as sensitive information, just like your personal details should be considered as sensitive information.

For that reason we would recommend that the configuration should be transferred using an encrypted connection in order to help prevent it from being leaked. We recommend that you use either ASDM, PDM, HTTPS, SSH or a direct console connection to the device in order to get the configuration. We would recommend using HTTPS rather than HTTP for transferring your devices configuration as the latter provides no encryption.

We would recommend using either SSH (for remote connections) or using a direct connection to the console port. Telnet provides no encryption of the communications and therefore your authentication credentials and configuration would be vulnerable if a malicious user were to monitor your connection.

More information on extracting your devices configuration can be found in your devices documentation.

- Cisco Devices Configuration File
  - Using Device Interfaces
    - Security Applicances (ASA, FWSM And PIX)
    - Cisco IOS-Based Routers
    - Cisco IOS-Based Catalysts
  - Using SSH, Telnet Or The Console
    - Security Applicances (ASA, FWSM And PIX)
    - Cisco IOS-Based Routers
    - Cisco IOS-Based Catalysts
    - Cisco CatOS-Based Catalysts
- Check Point, Nokia IP And Crossbeam Firewalls Configuration File
- Juniper Netscreen Firewall Configuration File
- 3Com Firewall Configuration File
- SonicWALL Firewall Configuration File
- WatchGuard Firewall Configuration File
- McAfee Enterprise, Secure Computing And CyberGuard (Sidewinder) Firewalls Configuration File

Cisco Devices Configuration File

Using Device Interfaces

## Cisco Security Applicances (ASA, FWSM And PIX) Configuration File

There are multiple ways that you can extract the configuration from your Cisco Security Appliance, this section outlines just three of those.

Using ASDM And PDM

The ASDM and PDM interfaces can be accessed using a web browser with Java capabilities. Whether you have access to ASDM or PDM will depend on your security appliance (and its age), but the procedure is the same for both. The procedure for getting the configuration from the your device is as follows:

- Using your favorite web browser, connect to the HTTPS service provided by your Cisco device for remote management. You can do this by entering https:// followed by your devices IP address.
- On ADSM-capable devices, click on the “Run ADSM as a Java Applet” button.
- Logon using your administration username and password.
- You should now see the ADSM or PDM application, both of which are shown in the screens below.
- You can show the “running-config” using the option on the File menu.
- Copy and paste the configuration into a file to use with Firewall Analyzer.

Cisco ASDM:

Cisco PDM:

Using TFTP

We don’t recommend using TFTP to transfer your configuration due to weaknesses in the protocol, the other methods described in this section are more secure. However, here is the procedure for using TFTP:

- Connect to the Cisco device using SSH, Telnet, ASDM, PDM or through a Console connection.
- Login to your Cisco PIX device.
- Transfer the configuration using the TFTP command write net <ip-address>:<filename>

## Cisco IOS-Based Routers

## Cisco IOS-Based Catalysts

Using HTTP(S)

The procedure for getting the configuration from the device using HTTP(S) is as follows:

- Using your favorite web browser, connect to the HTTP(S) service provided by your Cisco device for remote management. You can do this by entering https:// (recommended) or http:// followed by your devices IP address.
- Logon using your administration username and password.
- Click on the link to level 15 of the web console.
- Click on the show link.
- Click on the running-config link.
- Finally click on the CR link.
- Copy and paste the configuration into a file to use with Firewall Analyzer.

Using SSH, Telnet Or The Console

For this procedure you will be using the Command Line Interface (CLI) of your Cisco device using an SSH client (such as OpenSSH or Putty), Telnet or through the console port.

Use the following procedure to obtain a copy of the configuration file:

- Connect to the Cisco using your favorite SSH client, Telnet or a direct console connection.
- Logon using your administration authentication credentials.
- Enter 'enable' and type in your enable password.
- Execute the following CLI command and capture the output (possibly using the cut and paste facility):

show run

- Save the captured output to a file and remove any visible page lines (i.e. –More–).

Cisco Security Applicances (ASA, FWSM And PIX)

Cisco IOS-Based Routers

Cisco IOS-Based Catalysts

Cisco CatOS-Based Catalysts

## Check Point, Nokia IP And Crossbeam Firewalls Configuration File

Check Point software can run on a variety of different operating systems and platforms. Firewall Analyzer requires a number of different files from Check Point devices in order to perform the audit and these files can change between different configurations. This procedure will outline how to identify the configuration files that are required and how you can transfer them to your computer for processing with Firewall Analyzer.

Identifying The Configuration Files

Before continuing it is important to note that not all of these files may be on your system. On some deployments the information needed is stored in files with a different name. The sub-sections following this will show you how to search for those files depending on the firewall operating system / firmware.

The files that you should look for are (names are case-sensitive on some systems):

- objects.C
- objects.C_41
- objects_5_0.C
- rules.C
- rulebases.fws
- rulebases_5_0.fws

The files that you are looking for will probably be stored in a directory called conf or database.

Note | If your device contains directories called conf and database with a number of the files listed above, you should select the database directory. Choosing the wrong directory will usually lead to Firewall Analyzer reporting that you have no firewall rules. The file list above does not represent a full list of the files used by Firewall Analyzer, you will need to get copy the entire configuration directory.

IPSO And Other UNIX Check Point Systems

On IPSO and other UNIX type systems you will most likely need to use a command line interface to search for configuration files. The command line interface possibilities are SSH, Telnet (not-recommended) or using a direct console connection. Mac OS X and GNU/Linux systems will already have tools to connect to those services (ssh and telnet), for Windows users you will probably need to download a tool such as PuTTY. Once you are logged into your Check Point device you can search for files using the find command. For example you can search your entire system for the objects.C file using the following command:

find / -name objects.C

The results will be 0 or more locations of that file on your system. So if you get no results, try the next file from the list above. On one of our test systems we get the following result from the command:

/var/opt/CPsuite-R62/fw1/conf/objects.C

From that we can see that we will need the /var/opt/CPsuite-R62/fw1/conf directory from the system. If we were to change to the directory (using the cd command) and list the contents (using the ls command) we can see that some of the other files are present in the same directory.

bash# cd /var/opt/CPsuite-R62/fw1/conf bash# ls -l conf total 21056 -rw-r----- 1 root wheel 7168 Dec 22 1998 CPMILinksMgr.db.private drwx------ 3 root wheel 512 Dec 22 1998 ConversionCache -rw-r--r-- 1 root wheel 1309 Oct 2 20:56 InoDistLocal.ini -rwxr-xr-x 1 root wheel 169 Oct 2 20:56 InternalCA.C -rwxr-xr-x 1 root wheel 1759 Oct 2 20:56 MVS_Default.W -rw-rw---- 1 root wheel 2904 Dec 22 1998 SDS_objects.c ... -rw-r--r-- 1 root wheel 57549 Oct 2 20:57 objects.C -rwxr-xr-x 1 root wheel 36876 Oct 2 20:56 objects.C_41 -rw-rw---- 1 root wheel 594000 Dec 22 1998 objects_5_0.C ... -rw-rw---- 1 root wheel 21 Dec 22 1998 rulebases_5_0.fws ...

Once you have identified the configuration files you will need to transfer them to your computer so that they can be processed using Firewall Analyzer. This next step is described in the “Getting The Configuration Files” section.

Windows Check Point Systems

On Check Point-based Windows systems you can use the Windows search facility in order to find the files. You can do this by right clicking on a disk or directory in Windows Explorer and selecting the “Search” option. On some versions the search facility is shown at the top of the Windows Explorer window.

Note | The installation of Smart Dashboard and other Check Point tools may have included demo configuration files (accessed using the demo mode tick box in the interface). This may be picked up by your search and probably stored in a PROGRAM\cpml_dir\conf directory. If you have several installations then you will probably have several copies of the demo files.

Once you have identified the configuration files you will need to transfer them to your computer so that they can be processed using Firewall Analyzer. This next step is described in the “Getting The Configuration Files” section.

Getting The Configuration Files

Now that you have identified the directory that contains the configuration files it will need to be transferred to your computer for use with Firewall Analyzer. This is described in more detail in the following sub-sections.

IPSO And Other UNIX Check Point Systems

It will probably be easiest to transfer the configuration to your system as a single file rather than as a large number of individual files. So we would recommend using the tar tool which should be available on your system. The tar command to create an archive stored as /tmp/my-config.tar has the following format:

tar -cvf /tmp/my-config.tar <directory>

To make it easier to navigate to the configuration directory latter, we will change to the directory below the conf directory first. Then on our system we could use the commands:

cd /var/opt/CPsuite-R62/fw1/
tar -cvf /tmp/my-config.tar conf

The method of transfer will depend on what you have available. Standard systems will support SCP and FTP. You may also be able to make use of a USB pen device. To secure copy the file to a device that offers FTP you could use the following commands:

ftp <ip-address>
ftp> bin
ftp> hash
ftp> put /tmp/my-config.tar
ftp> quit

To Secure CoPy (SCP) the file to a SSH service with Secure Copy enabled, you could use the following command:

scp /tmp/my-config.tar <username>@<ip-address>:<file-destination>

If you have SCP capabilities from your computer you could use the following to connect from your computer to the firewall:

scp <firewall-username>@<firewall-ip>:/tmp/my-config.tar <filename>

If your firewall has a USB port you may be able to use that in order to transfer your configuration. These procedures may vary slightly depending on the UNIX variant:

- Insert the USB storage device into the USB port of the firewall.
- Wait a few seconds and use the df command to see if it has been automatically detected and mounted.
- If it has not been mounted, use dmesg to view the system messages to see what /dev/<devicename> it has been assigned. Then mount the device using the mount /dev/devicename /mnt command.
- Copy the file to the mounted USB device using a command such as cp /tmp/my-config.tar /mnt/
- Unmount the USB device, for example using the command umount /mnt

Windows Check Point Systems

It will probably be easiest to transfer the configuration to your system as a single file rather than as a large number of individual files. You can do this under Windows using the compress folder facility. Using the right mouse button on the folder, select the “Send To” and then“Compressed (zipped) Folder” option. This will create the compressed folder containing the configuration files in the same directory.

Depending on your system setup the archived configuration file could be transferred to your system using a USB pen, FTP or using a network share.

## Juniper Netscreen Firewall Configuration File

There are several different methods of extracting the configuration from your Juniper NetScreen device and this section outlines three different methods.

Using HTTP(S)

The procedure for getting the configuration from the device using HTTP(S) is as follows:

- Using your favorite web browser, connect to the HTTP(S) service provided by your Juniper NetScreen device for remote management. You can do this by entering https:// (recommended) or http:// followed by your devices IP address
- Logon using your administration username and password. Juniper NetScreen devices default to using netscreen for the username and password
- Select from the menu on the right; Configuration, then Update and finally Config File
- Click the Save To File button to save the configuration to a local file.

Using SSH, Telnet Or The Console

For this procedure you will be using the Command Line Interface (CLI) of your Juniper NetScreen device using an SSH client (such as OpenSSH or Putty), Telnet or through the console port.

Use the following procedure to obtain a copy of the configuration file:

- Connect to the Juniper NetScreen using your favorite SSH client, Telnet or a direct console connection
- Logon using your administration authentication credentials
- Execute the following CLI command and capture the output (possibly using the cut and paste facility):

> get config all

- Save the captured output to a file and remove any visible page lines (i.e. –More–).

Using TFTP

We having included TFTP in order to be complete, but we don’t recommend using this method for two reasons:

1. it provides no authentication;
2. it provides no encryption of the network communications

However, if you want to make use of TFTP to transfer the configuration from your NetScreen device then the procedure is as follows:

- Connect to your NetScreen device using SSH, Telnet or via the Console
- Logon to your Juniper NetScreen device using your administration username and password
- Transfer the configuration to a TFTP server using the following command:

> save config to tftp <your-ip-address> <the-filename> / from interface <interface>

## 3Com Firewall Configuration File

This section provides details of how to extract the configuration from your 3Com SuperStack 3 firewall so that it can then be used with Firewall Analyzer.

Using HTTP(S)

The procedure for getting the configuration from the device using HTTP(S) is as follows:

- Using your favorite web browser, connect to the HTTP(S) service provided by your 3Com SuperStack 3 firewall for remote management. You can do this by entering https:// (recommended) or http:// followed by your devices IP address
- Logon using your administration username and password. 3Com SuperStack 3 firewalls default to using admin for the username and password for the password
- Select from the menu on the right; Tools
- Select the Configuration tab at the top
- Click the Export button and follow the instructions to save the device configuration to a file

## SonicWALL Firewall Configuration File

This section provides details of how to extract the configuration from your SonicWALL firewall so that it can then be used with Firewall Analyzer.

Using HTTP(S)

The procedure for getting the configuration from the device using HTTP(S) is as follows:

- Using your favorite web browser, connect to the HTTP(S) service provided by your SonicWALL firewall for remote management. You can do this by entering https:// (recommended) or http:// followed by your devices IP address
- Logon using your administration username and password. SonicWALL firewalls default to using admin for the username and password for the password
- Select from the menu on the right; System, which may already be selected
- Select the Settings submenu option
- Select the Export Settings button

Follow the on screen instructions to save the device configuration to a file.

Using HTTP(S) On Older Devices

The procedure for getting the configuration from the device using HTTP(S) is as follows:

- Using your favorite web browser, connect to the HTTP(S) service provided by your SonicWALL firewall for remote management. You can do this by entering https:// (recommended) or http:// followed by your devices IP address
- Logon using your administration username and password. SonicWALL firewalls default to using admin for the username and password for the password
- Select from the menu on the right; Tools
- Select the Preferences tab at the top
- Click the Export button and follow the instructions to save the device configuration to a file.

## WatchGuard Firewall Configuration File

You will need to connect to your WatchGuard firewall using the WatchGuard System Manager software that came with your firewall (you can also download this software using your WatchGuard support login).

Using WatchGuard System Manager

The procedure for getting the configuration from the device using WatchGuard System Manager is as follows:

- Run WatchGuard System Manager
- Connect to your firewall device and logon
- From the 'Tools' menu select 'Policy Manager'
- Inside Policy Manager, select from the 'File' menu 'Save' and then 'As File...'. This will enable you to save your configuration as a file that can be used with Firewall Analyzer.

## McAfee Enterprise, Secure Secure Computing And CyberGuard (Sidewinder)

SecureOS Version 6

The configuration can easily be obtained from SecureOS 6 firewalls, but it is not directly usable in the form extracted from the firewall. This section details how to obtain the configuration from a SecureOS 6 firewall.

To obtain the XML configuration file usable by Nipper, follow the procedure below:

- Log into the web-based administration interface on your SecureOS 6 devices.

- Click on the “Control” option from the menu bar.
- Click on the “Firewall” menu and select the “Save Configuration” option. This will save the configuration into a .jar file on your system.
- You will need to extract the .jar file which is an archive similar to a .zip file. The 7-zip tool (http://www.7-zip.org/) under Windows can be used to extract the files. Similar tools exist on other platforms.
- Inside the .jar file is a “Config.tar” file, another file archive. This too can be extracted using the 7-zip tool under Windows or a tar command.
- Inside the .tar file is the “FwConfig.xml” configuration file to use with Firewall Analyzer.

SecureOS Version 7+

The configuration file provided by these versions of the operating system are now encrypted and therefore no longer usable by Firewall Analyzer.

版权所有 © 2015, 卓豪（北京）技术有限公司， 保留一切权利