Thursday, January 18, 2024

subnetting on checkpoint

 

https://jodies.de/ipcalc

Address: 192.168.0.1 11000000.10101000.00000000 .00000001

Netmask:   255.255.255.0 = 24    11111111.11111111.11111111 .00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000 .11111111
=> Network: 192.168.0.0/24 11000000.10101000.00000000 .00000000 (Class C)
Broadcast: 192.168.0.255 11000000.10101000.00000000 .11111111
HostMin: 192.168.0.1 11000000.10101000.00000000 .00000001
HostMax: 192.168.0.254 11000000.10101000.00000000 .11111110
Hosts/Net: 254 (Private Internet)


Should you ever forget intricacies of the subnetting Checkpoint bothered not to strip subnetting calculator from their Splat – ipcalc, so use it and litter not your memory with useless info.Given subnet show the 1st Ip (network) :

# ipcalc -n 192.168.34.45/27
NETWORK=192.168.34.32

Given subnet show the last IP (broadcast) :

# ipcalc -b 192.168.34.45/27
BROADCAST=192.168.34.63

Be careful though what you feed as no proof-reading is done by the ipcalc :

# ipcalc -b 192.168.34.45/33
BROADCAST=255.255.255.255

Thursday, January 11, 2024

 
[Expert@myfirewall]# cphaprob -l list

Built-in Devices:

Device Name: Interface Active Check
Current state: OK

Device Name: Recovery Delay
Current state: OK

Device Name: CoreXL Configuration
Current state: OK

Registered Devices:

Device Name: Fullsync
Registration number: 0
Timeout: none
Current state: OK
Time since last report: 1.31105e+06 sec

Device Name: Policy
Registration number: 1
Timeout: none
Current state: OK
Time since last report: 1.31105e+06 sec

Device Name: routed
Registration number: 2
Timeout: none
Current state: OK
Time since last report: 164.8 sec

Device Name: cxld
Registration number: 3
Timeout: 30 sec
Current state: OK
Time since last report: 102116 sec
Process Status: UP

Device Name: fwd
Registration number: 4
Timeout: 30 sec
Current state: OK
Time since last report: 102116 sec
Process Status: UP

Device Name: cphad
Registration number: 5
Timeout: 30 sec
Current state: OK
Time since last report: 4.1131e+06 sec
Process Status: UP

Device Name: VSX
Registration number: 6
Timeout: none
Current state: OK
Time since last report: 4.1131e+06 sec

Device Name: Init
Registration number: 7
Timeout: none
Current state: OK
Time since last report: 4.1131e+06 sec

Device Name: Local Probing
Registration number: 8
Timeout: none
Current state: OK
Time since last report: 185.2 sec

[Expert@myfirewall]# 

Friday, January 5, 2024

Fixes to R81.20

 
FIXES
1. Set grub2 password
myfirewall01> set grub2-password
Enter new grub2 password: 
Enter new grub2 password (again): 
myfirewall01> 


2. Update TRAC File

/var/opt/CPsuite-R81.20/fw/conf/trac_client_1.ttm
make a backup copy of file
      )
                :automatic_mep_topology (
                        :gateway (
                                :map (
                                        :false (false)
                                        :true (true)
                                        :client_decide (false)     [ change from Client_Decide to False]
                                )
                                :default (false)  [ change from True to False]
                        )
                )


3. Fix http2
Description:
Similar change was successfully implemented and tested on the lower region (TestVPN)

1. Disable HTTP2 Header Length on myfirewall01 and myfirewall02
To disable http2:
ckp_regedit -a SOFTWARE\\CheckPoint\\FW1 IGNORE_ALPN_EXTENSION 1
cpstop;cpstart

To enable http2 again:
ckp_regedit -a SOFTWARE\\CheckPoint\\FW1 IGNORE_ALPN_EXTENSION 0
cpstop;cpstart
No production impact, low risk.


Wednesday, December 6, 2023

Troubleshooting - High CPU - Memory

 

  1. Contents of spike detective folder /var/log/spike_detective/*
  2. Screenshot of top -H
  3. CPinfo file as per sk92739 - In order to extract the file please run the following command:
    • # cpinfo -d -D -z -o /var/log/<gwname>.cpinfo
  4. HCP file as per sk171436 - "HealthCheck Point (HCP) Release Updates" - In order to extract the file please run the following command:
  5. # hcp -r all --include-wts yes

Wednesday, November 8, 2023

Reset - Multi-queue, dynamic balancing, and flow director to default values

 

 Please, perform the steps in this order:

  1. Set the Multiqueue to auto first:
    • # mq_mng --set-mode auto
  2. Enable Dynamic balancing:
    • # dynamic_balancing -o enable
    • No need to change the coreXL instances in cpconfig since dynamic balancing will take care of that after its enabled.
  3. Enable Flow Director:
    • # ethtool -K eth1-01 ntuple on
  4. Reboot member and repeat on the other firewall.

Monday, November 6, 2023

Firewall migrate export


fw tab -t userc_key -s

Is the Management Environment an MDS or SMS( Smart Center)?
This may need to be performed at the end business and close all sessions. 

If exporting a MDS. Take a mds backup
1. Login to Manager via ssh
2. Enter expert mode
3. mds_backup -b -d /var/tmp/mds_backup_SEPT062022
4. Also provide the MDS Management IP

If exporting a Smart Center:
How to Export the existing SmartCenter
1. Login to Manager via ssh
2. Enter expert mode
3. [Expert@MGMT]# cd $FWDIR/bin/upgrade_tools
4. [Expert@MGMT]# yes | nohup ./migrate export /<Full Path to export to>/<Name of Exported File>
5. Also provide the SMS Management IP



[Expert@bos0105fwm01:0]# cd $FWDIR/bin/upgrade_tools
[Expert@bos0105fwm01:0]# pwd
/opt/CPsuite-R81.20/fw1/bin/upgrade_tools
[Expert@bos0105fwm01:0]# 
yes | nohup ./migrate export /var/log/bos0105fwm01_Export-dk11042024


yes | nohup ./migrate export /var/log/M-TST-CPMGMT01_Export-dk11042024


Files uploaded to 
W:\sysadmin\Network\Firewall_Backups\Checkpoint_Firewall_Manager_Migrate_Export

# cpstop
# cd $FWDIR/bin/upgrade_tools/
# ./migrate export /var/log/migrate-exports/myfwm01-DATE

Transfer off box 



Database 
How do you Data Duplexing
indexing 
purging  


Monday, October 16, 2023

OSPF Route Map and Redistribution

Each protocol with Routemap support allows configuration of Import Routemaps and Export Routemaps.

A protocol's Import Routemaps govern, which routes will be imported into the routing table from that protocol.

A protocol's Export Routemaps govern, which routes from other routing protocols will be sent out with that protocol.

Within a routemap, the same procedure applies when checking individual routemap IDs: the IDs are checked from lowest to highest until a match is found. Therefore, more specific match conditions should have lower IDs or should be present in lower preference routemaps so that they are checked first, instead of being ignored in favor of less specific match conditions.

Configuring IPv4 OSPFv2 Router ID

  • Do not use the IP address 0.0.0.0 as the Router ID.

  • In a cluster, you must configure the Router ID to one of the Cluster Virtual IP addresses.

    In a Cluster, you must configure all the Cluster Members in the same way.


Configuring IPv4 OSPFv2 in Gaia Portal

  • In a ClusterClosed, you must configure all the Cluster Members in the same way.

  • Start the OSPF configuration from Router ID (see Configuring IPv4 OSPFv2 Router ID).

  • Gaia ClishClosed does not have commands for route filtering and redistribution. You must configure inbound routing policies and redistribution of routes through the Gaia PortalClosed.

    You can configure route maps and route aggregation using GaiaClosed Clish commands. Route map configuration done through the Gaia Clish takes precedence over route filtering and redistribution configured in the Gaia Portal. For example, if OSPF uses route maps for inbound filtering, anything configured in the Gaia Portal for inbound route filters for OSPF is ignored. You can still use the Gaia Portal to configure route redistribution into OSPF.


set interface eth1-01 comments "Inside OSPF (Area 4 - Regular)" 
set interface eth1-01 state on 
set interface eth1-01 auto-negotiation on 
set interface eth1-01 mtu 1500 
set interface eth1-01 ipv4-address 100.14.255.29 mask-length 29 

set router-id 100.14.255.28


OSPF  

set ospf instance default area backbone on
set ospf instance default area 0.0.0.4 on
set ospf instance default interface eth1-01 area 0.0.0.4 on
set ospf instance default interface eth1-01 priority 1

set ospf instance default interface eth1-01 authtype cryptographic key 1 algorithm md5 secret already_scrambled_Bm4JO9gDBWc=_00000000000000000000000000000000000000000000000000


set ospf instance default export-routemap static-to-ospf preference 4 on


set inbound-route-filter ospf2 instance default accept-all-ipv4
set inbound-route-filter rip accept-all-ipv4


ROUTE MAP

set routemap static-to-ospf id 4 on
set routemap static-to-ospf id 4 allow
set routemap static-to-ospf id 4 match network 10.114.32.0/19 all
set routemap static-to-ospf id 4 match protocol static

## The following items are listed under their respective command sets
## (e.g. "set bgp") and are displayed here for informational purposes:
# set ospf instance default export-routemap static-to-ospf preference 4 on