Category: Check Point

Check Point firewalls: Gaia, R80.x management, packet flow, licensing, logging, VPN debugging and CCSA/CCSE notes.

  • Checkpoint Evaluation License steps (cplic)

    https://help.checkpoint.com/s/
    Learn>Product Evaluation>All-in-One-Evaluation
    Download the license file

    cplic put -l LICENSEFILE.lic
    cplic print -x (to get the hash and del old ones)
    cplic del KEY_HASH (remove all the old ones)
    cplic print -t (to check whether central or local)
    cpstop
    cpstart

    upload the license file on Smart Update as well and attach. Dettach all the old ones.

  • How to import multiple objects into R80.x Management database using .csv file and then add them to a group

    Check Checkpoint:
    create a csv file and run it through mgmt_cli
    Excel sheet file format with column headings:
    name,subnet,subnet-mask

    #mgmt_cli add network –batch IPs-ListFile.csv -r true

    How to import multiple objects into R80.x Management database using .csv file and then add them to a group:
    https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk113078
    https://community.checkpoint.com/t5/General-Management-Topics/Format-of-csv-file-to-add-object-in-group/td-p/8987

    .csv files needs to be where you will be running the commands from:

    Create the .csv file:

    #cat networks.csv

    name,subnet,subnet-mask
    network1,10.10.10.0,255.255.255.0
    network2,20.20.20.0,255.255.255.0
    network3,30.30.30.0,255.255.255.0

    Note: using underscore character in .csv file (for example, “network1_1”) can cause errors. Use the hyphen instead.

    Run the API command:
    #mgmt_cli add network –batch networks.csv

    Then to add the objects to the right group use:

    mgmt_cli set group –batch group-members_full_csv.csv

    The CSV should have the following header row:

    name,members.add

    The name field is for the group and the members.add field will be the host object to add to the group.

    The rest of the body of the CSV would then be filled in as you wish:

    group1,host1

    group1,host2

    group1,host3

    group2,host1

    group2,host2

    group2,host3

  • VPN Debugging Commands to extract .elg and .xml files for troubleshooting

     

    fwaccel off (turn SecureXL off)

    vpn debug trunc
    vpn debug on
    vpn debug on TDERROR_ALL_ALL=5

    Replicate the issue or wait for some time for VPN re-establishment

    vpn debug off

    vpn debug trunc off

    fwaccel on (turn SecureXL on)

    upload the following files to Checkpoint TAC so that they can run it inside their IKE utility:
    $FWDIR/log/ike.elg
    $FWDIR/log/vpnd.elg

  • Capture and Monitor traffic Checkpoint

    # fw accel off (Turn Off secureXL)

    # tcpdump -nei eth1-08 port 22 or 23 -w /var/log/FTP_tcpd_ethx.pcap
    # tcpdump -nei Mgmt port 22 or 23 -w /var/log/FTP_tcpd_ethy.pcap

    # fw monitor -p all -e ‘accept host(10.50.x.);’

    # fw monitor -e “accept src=10.200.7.30 and dst=172.24.32.101;”
    # fw monitor -e “accept dst=10.200.7.30 and src=172.24.32.101;”

    # fw monitor -p all -e ‘accept host(10.50.x.);’ -o /var/log/FTP_fwmon_.pcap
    # fw ctl zdebug drop > /var/log/FTP_fwdrop.dbg

    # fw monitor -e “accept port(22) or port(23);” -o /var/log/FTP_fwmon_.pcap
    # fw ctl zdebug drop > /var/log/FTP_fwdrop.dbg

    # fw monitor -p all -e ‘accept host(193.112.66.10);’ -o /var/log/Mon_internal1.pcap
    # fw ctl zdebug drop | grep 193.112.66.10 > /var/log/Mon_fwdrop1.dbg

    # fw monitor -p all -e ‘accept net(172.18.92.0,24);’ -o /var/log/Mon_internal1.pcap

    # fw monitor -p all -e ‘accept host(52.3.211.188);’ -o /var/log/Mon_external.pcap
    # fw ctl zdebug drop | grep 52.3.211.188 > /var/log/Mon_fwdrop2.dbg

    # fw accel on

  • Checkpoint Log Collection (LogRhythm) (OPSEC LEA (Log Export API))

    Configuration Summary:
    1. Add a Host Node for the System Monitor.
    2. Add an OPSEC Application in SmartDashboard R8.
    3. Record Check Point Log Server Entity SIC Name.
    4. Add a Firewall Rule for Management Station (Optional).
    5. Pull OPSEC Application SIC Certificate (LR end).
    6. Add a Firewall Rule for the Log Server (Optional).
    7. Install Updated Policy (Optional).
    8. Create the System Monitor Configuration File (LR end).
    9. Add a Check Point Log Source (LR end).
    10. Troubleshoot (LR end).

    Detailed Steps:

    https://onlinehelp72.logrhythm.com/#5DeviceGuides/CheckPointLogData.htm?Highlight=checkpoint%20opsec

  • Changing the Management Interface

    1. set management interface <new_management_interface>
    2. delete interface <old_management_interface> ipv4-address
    3. set interface <new_management_interface> ipv4-address <ip>
      mask-length <length>
    4. set interface <new_management_interface> state on
  • How to change IP Address in Check Point firewall

    To view IP Address information in Linux/UNIX, use ifconfig (F) command. It’s slightly different from Microsoft whereby ipconfig (P) command is used.

    [R60-FW]# ifconfig

    To change the IP Address, use the following command

    ifconfig eth0 192.168.10.254 netmask 255.255.255.0 up

    Again, use ifconfig command to verify it.

    Even though we can change the IP Address of Check Point firewall by using this way, but it’s not advisable

    Ifconfig is a temporary solution to change the ip address in the firewall. Once you’ve rebooted the firewall, it will be changed to the old ip address.

    So, the best way to change IP Address of Check Point firewall permanently is by using sysconfigcommand:

    [Expert@R60-FW]# sysconfig

    Choose menu 5) Network Connections

        Choose a configuration item (‘e’ to exit):
    ——————————————————————
    1) Host name                    7) DHCP Server Configuration
    2) Domain name                  8) DHCP Relay Configuration
    3) Domain name servers          9) Export Setup
    4) Time and Date               10) Products Installation
    5) Network Connections         11) Products Configuration
    6) Routing
    ——————————————————————
    (Note: configuration changes are automatically saved)
    Your choice:5

    2) Configure connection

        Choose a network connections configuration item (‘e’ to exit):
    ——————————————————————
    1) Add new connection             4) Select management connection
    2) Configure connection           5) Show connection configuration
    3) Remove connection
    ——————————————————————
    (Note: configuration changes are automatically saved)
    Your choice:2

    1) eth0

        Choose a connection to configure (‘e’ to exit):
    ——————————————————————
    1) eth0
    2) eth1
    3) eth2
    ——————————————————————
    (Note: configuration changes are automatically saved)
    Your choice: 1

    1) Change IP settings

        Choose eth0 item to configure (‘e’ to exit):
    ——————————————————————
    1) Change IP settings                3) Remove IP from interface
    2) Change MTU settings               4) Change from static to dynamic IP
    ——————————————————————
    (Note: configuration changes are automatically saved)
    Your choice: 1

  • Check Point – GAiA – Change or Set Expert Password – CLI

    In order to change expert password of Check Point firewall running GAiA OS, logon to CLI, make sure you are in “clish” mode and execute command “set expert-password plain“. You need to enter current expert password and they you’ll be able to choose a new expert password.

    Syntax:

    set expert-password plain

    Example:

    CP-Firewall-GAiA>
    CP-Firewall-GAiA> set expert-password plain
    Enter current expert password :
    Enter new expert password:
    Enter new expert password (again):
    CP-Firewall-GAiA>
    CP-Firewall-GAiA>