Skip to main content

Checkpoint – Reinstall SMS using configuration backup

Checkpoint – Reinstall SMS using configuration backup


Checkpoint  Checkpoint – Reinstall SMS using configuration backup



Last week my smartcenter server became corrupted (the filesystem) and I could not install any fw policy (checkpoint software could not find some needed inodes).
Fortunately I perform periodically checkpoint configuration backups (using the migrate export utility) this way -> Checkpoint – Schedule management database backup
These are the steps to get a working SMS again:
  1. Pre install steps
  2. Install Checkpoint 1 – Install the GAIA OS
  3. Install Checkpoint 2 – Install the Checkpoint SW
  4. Import the Checkpoint configuration backup
  5. Post install steps

Before install steps

It is evident but we need a new machine to be used as SMS server. As a best practice, if virtual environment is available, the best solution is to generate a new virtual machine so the recovery can finished as soon as possible.
Checkpoint - Reinstall SMS using configuration backup
If there is no choice the same machine can be used (I completely discourage it). Anyway try to save the data (if still can access the old server) you can miss in another path (scripts, patches…). The backup is supposed to be in another secure path.
Finally, shut off the old server if still on the network (or change the network to test one on the virtual machine to isolate it).
After that, get the Checkpoint ISO (the same version that was installed) and run it on the new machine. So the installation starts…

Install Checkpoint 1 – Install the GAIA OS

The boot menu – Install Gaia
Checkpoint - Reinstall SMS using configuration backup 1
Checkpoint - Reinstall SMS using configuration backup 3
Checkpoint - Reinstall SMS using configuration backup 2
Ok, proceed…
Checkpoint - Reinstall SMS using configuration backup 4
Keyboard selection…
Checkpoint - Reinstall SMS using configuration backup 5
Disk partitioning, leave it by default or customize. After the installation I add a new disk with more space to store the logs so I dont think much about this configuration…
Checkpoint - Reinstall SMS using configuration backup 6
Choose a password to access via SSH or web GUI to the SMS server
Checkpoint - Reinstall SMS using configuration backup 7
Choose the same management IP as the old server!
Checkpoint - Reinstall SMS using configuration backup 27
Ok, proceed if you sure…
Checkpoint - Reinstall SMS using configuration backup 8
So the GAIA OS packages and software will be installed…
Checkpoint - Reinstall SMS using configuration backup 9
Checkpoint - Reinstall SMS using configuration backup 10
 Checkpoint - Reinstall SMS using configuration backup 11
After the installation a reboot is required and then we can access to the GAIA web portal…

Install Checkpoint 2 – Install the Checkpoint SW

The first time configuration lets us configure some basic parameters and finally install the Checkpoint software layer
Checkpoint - Reinstall SMS using configuration backup 13
"Continue with Gaia configuration"
Checkpoint - Reinstall SMS using configuration backup 14
Configure the same parameters as the old server. The hostname is specially important to be the same! (like the management IP)
 Checkpoint - Reinstall SMS using configuration backup 15
Again configure the same management IP. (This screenshot shows empty fields but they are prefilled with the IP configured on the previous step).
Checkpoint - Reinstall SMS using configuration backup 29
We want to install a "Security Gateway or Security Management"
Checkpoint - Reinstall SMS using configuration backup 17
Date/time. Use ntp if possible (you may configure it later).
Checkpoint - Reinstall SMS using configuration backup 16
Now we select what Checkpoint SW modules will be installed: "Security Management" as "Primary"
Checkpoint - Reinstall SMS using configuration backup 18
username and password to manage the Smarcenter consoles
 Checkpoint - Reinstall SMS using configuration backup 30
Checkpoint - Reinstall SMS using configuration backup 20
Checkpoint - Reinstall SMS using configuration backup 21
Filter the access to the Security Management GUI clients
Checkpoint - Reinstall SMS using configuration backup 22 Checkpoint - Reinstall SMS using configuration backup 23
After completed the installation we have a fully functional SMS server but with empty firewall policies, databases, etc…

Import the Checkpoint configuration backup

CONNECT TO THE SMS VIA SSH

Connect via SSH to the SMS server, establish an expert password and enter expert mode
SMS> set expert-password
Enter new expert password:
Enter new expert password (again):
SMS> expert
Enter expert password:

Warning! All configuration should be done through clish
You are in expert mode now.

[Expert@SMS:0]#

COPY THE BACKUP FILE

Copy the backup of the Checkpoint configuration to the SMS server (via SCP for example if the backup is located on another Linux machine)
[Expert@SMS:0]# scp root@MYLINUXSERVER:/var/backups/EXPORTDB_2016-04-18.tgz .
root@MYLINUXSERVER's password:
EXPORTDB_2016-04-18.tgz     4%   19MB   9.3MB/s   00:46 ETA

IMPORT THE BACKUP

This will pause the cp services, import all the configuration policies, databases, objects… and start the services
[Expert@SMS:0]# $FWDIR/bin/upgrade_tools/migrate import EXPORTDB_2016-04-18.tgz

Extracting the database...
The import operation will stop all Check Point services (cpstop).
Do you want to continue? (y/n) [n]? y
cpwd_admin:
Process DASERVICE terminated
cpwd_admin:
Process SMARTLOG_SERVER isn't monitored by cpWatchDog. Stop request aborts
UEPM: Endpoint Security Management isn't activated
Management Portal: Stopping CPWMD
cpwd_admin:
Process CPWMD terminated
Management Portal: Stopping CPHTTPD
cpwd_admin:
Process CPHTTPD terminated
evstop: dbsync stopped
evstop: Stopping product - SmartEvent Server
evstop: Stopping product - SmartEvent Correlation Unit
Check Point SmartEvent Correlation Unit stopped
Check Point SmartEvent Server stopped
Stopping SmartReporter...
Stopping the SmartReporter Server.
Stopping the SmartReporter Log Consolidator.
Stopping SmartReporter Database.
Note:   Database shutdown takes a few minutes. rmdstart will fail while
        shutdown is in progress.
SmartView Monitor: Management stopped
VPN-1/FW-1 stopped
Multi portal stopped
 Local host is not a FireWall-1 module
SVN Foundation: cpd stopped
SVN Foundation: cpWatchDog stopped
SVN Foundation: Stopping PostgreSQL Database
SVN Foundation stopped
Importing files...

The import operation completed successfully.
Do you wish to start Check Point services? (y/n) [y]? y

Post install steps

ADD LOST RULES AND POLICIES

Maybe you have lost changes made between the backup and the crash. If possible (documented, emails…) add those changes

CONFIGURE LOST SERVER PARAMETERS

For example, I had to configure some OS level parameters to make the DHCP Relay work. Fortunately, I documented that change.

RECONFIGURE SCRIPTS AND SCHEDULED TASKS

Dont forget to reconfigure scheduled tasks like backups, logs rotation, ntp time synchronization.

Comments

Popular posts from this blog

Checkpoint firewall common commands part 2

Checkpoint firewall common commands part 2 For basic firewall informaton gathering: fgate stat -Status and statistics of Flood-Gate-1. fwaccel <stat|stats|conns>  – View status, statistics or connection table of SecureXL. fw getifs -Show list of configured interfaces with IP and netmask. cpstat <app_flag> [-f flavour] -View OS, HW and CP application status. Issue cpstat without any options to see all possible application flags <app_flag> and corresponding flavours. Examples: cpstat fw -f policy – verbose policy info cpstat os -f cpu – CPU utilization statistics cpinfo -y all   -List all installed patches and hotfixes. cpd_sched_config print -Show task scheduled with CPD scheduler. enabled_blades -View enabled software blades avsu_client [-app <app>]   , get_version <app>  -Get signature version and status of content security .Without the -app option “Anti Virus” is used. show co...

Unable to Connect to Server Checkpoint R80

Unable to Connect to Server Checkpoint R80 Unable to Connect to Server A connection to the management server will fail if: A firewall between SmartConsole and the management server blocks Port 19009 -  port 19009 is used for a new R80 service. Allow traffic on this port for all clients and management servers. No GUI clients are assigned -  Open the Gaia Portal. If the First Time Configuration Wizard opens, complete it. If the First Time Configuration Wizard has already run, open  User Management > GUI Clients  and add a client. When using Multi-Domain Security Management, connect SmartConsole to the Multi-Domain Server and make sure the domains have GUI clients assigned to them. The required processes are not reachable -  Make sure the computer with SmartConsole installed can reach the IP address of the management server, and that these server processes are up and running: cpm fwm Operation time out  – Your connection ...

Configuring Proxy ARP for Manual NAT

Configuring Proxy ARP for Manual NAT Symptoms After creating a Manual Static NAT rule, Security Gateway does not answer the ARP Requests for the Static NATed IP address that was configured in the Manual NAT rule. Security Gateway replies to ARP requests with a wrong MAC address, mostly for the NAT traffic.  Introduction Let us consider the following scenario: Two networks ( Network_A  and  Network_B ) are separated by a Security Gateway (single Security Gateway or ClusterXL). On each network, there is a host ( Host_A  on  Network_A ,  Host_B  on  Network_B ). Let us assume, that  Network_A  represents the  Internal  network, and  Network_B  represents the  External  network. According to the existing standards, when  Host_B  needs to send data to  Host_A , an ARP Request for the MAC address of  Host_A  will be sent by  Host_B  to  Network...