> Source: [sk26202](https://support.checkpoint.com/results/sk/sk26202)

# sk26202 - Changing the kernel global parameters on Check Point Security Gateways

| Property | Value |
|----------|-------|
| Solution ID | sk26202 |
| Date Created | 2004-06-02 |
| Last Modified | 2026-10-28 |
| Technical Level | General |
| Products | Security Gateway, Spark Firewall (Locally Managed), Scalable Platforms |
| Versions | R82, R81.20, R81.10 (EOS), R81.10.X, R81 (EOS) |
| OS | Gaia |

## Solution

Background
----------

Global kernel parameters exist to control (customize) the Security Gateway behavior.

The supported kernel parameters are stored in the `$FWDIR/boot/modules/fw*mod*` kernel modules.

Setting a value of some global kernel parameter can be done *on-the-fly, and* it is the same on all operating systems - by using the ***fw ctl set int*** command (the change takes effect immediately).

However, the value of the kernel parameter returns to its default value after a reboot. At times, it may be required to set a value of a kernel parameter *permanently*. In addition, it is necessary for some kernel parameters to be changed upon boot.

Example for the *on-the-fly* change: `fw ctl set int fwseqvalid_exact_syn_on_rst 2`

**Notes about this article:**

* Applies ONLY to Security Gateways / Cluster Member.

* On a VSX Gateway / VSX Cluster Member, the value of a kernel parameter applies to all configured Virtual Systems / Virtual Routers (i.e., it is not possible to set a value of a kernel parameter per Virtual System / Virtual Router).

* For SecureXL global kernel parameters that are stored in the `$PPKDIR/boot/modules/sim*mod*` kernel modules and configured in the `$PPKDIR/boot/modules/simkern.conf` file (R80.10 and lower) or the `$PPKDIR/conf/simkern.conf` file(R80.20 and higher), refer to [sk43387](https://support.checkpoint.com/results/sk/sk43387).

* Before configuring a value of a kernel parameter, verify that kernel parameter is supported by the current version with this command: `fw ctl get int PARAMETER_NAME [-a]`

  Example: *fw ctl get int fwseqvalid_exact_syn_on_rst*

**Upgrade Issues:** Upgrade behavior of this mechanism is inconsistent and differs between platforms and upgrade methods. After installation of any hotfix or upgrade, verify that all changes remain. If not, repeat the configuration procedures listed below.

For more information about the provided "`fw ctl`" commands, see the [Command Line Interface (CLI) Reference Guide](https://support.checkpoint.com/product/73#f-commonsource=C.%20Documentation) for your version:

* Chapter "Security Gateway Commands" \> "fw" \> "fw ctl" \> "fw ctl get"
* Chapter "Security Gateway Commands" \> "fw" \> "fw ctl" \> "fw ctl set"

*** ** * ** ***

Configuring a kernel parameter value temporarily
------------------------------------------------

Notes:

* For some kernel parameters this change does not take effect - it is possible to change their value only permanently.  
  Check Point Support provides the relevant explanation for such parameters.
* For kernel parameters that support this change, it applies immediately.

**Procedure to configure a kernel parameter value temporarily on a Security Gateway, Cluster, Legacy VSX Gateway, Legacy VSX Cluster that runs Gaia OS / Quantum Spark Gateway that runs Gaia Embedded OS**
> Show / Hide this section  
> 1. Connect to the command line on the Security Gateway / each Cluster Member.
>
> 2. Log in to Gaia Clish or the Expert mode.
>
> 3. Get the current value of the kernel parameter:
>
>    |----------------|--------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                               |
>    | Integer        | In Gala Clish and the Expert mode: `fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>    | String         | In Gala Clish and the Expert mode: `fw ctl get str <Name_of_String_Parameter> [-a]`  |
>
>    The parameter "`-a`" specifies to search for a kernel parameter in kernel modules in this order:
>    1. In `$FWDIR/boot/modules/fw_*.o`
>    2. In `$PPKDIR/boot/modules/sim_*.o`
> 4. Configure the required new value for the kernel parameter:
>
>    |----------------|------------------------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                                               |
>    | Integer        | In Gala Clish and the Expert mode: `fw ctl set int <Name_of_Integer_Parameter> <Integer_Value> [-a]` |
>    | String         | In Gala Clish and the Expert mode: `fw ctl set str <Name_of_String_Parameter> "<String_Value>" [-a]` |
>
> 5. Get the current value of the kernel parameter as described in Step 3.

**Procedure to configure a kernel parameter value temporarily on a Scalable Platform (Security Group in Maestro, Security Group in Scalable Chassis, ElasticXL, VSNext)**
> Show / Hide this section  
> 1. Connect to the command line on the Security Group.
>
> 2. Log in to Gaia gClish or the Expert mode.
>
> 3. Get the current value of the kernel parameter:
>
>    |----------------|-------------------------------------------------------------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                                                                                    |
>    | Integer        | In Gala gClish: `fw ctl get int <Name_of_Integer_Parameter> [-a]` In the Expert mode: `g_fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>    | String         | In Gala gClish: `fw ctl get str <Name_of_String_Parameter> [-a]` In the Expert mode: `g_fw ctl get str <Name_of_String_Parameter> [-a]`   |
>
>    The parameter "`-a`" specifies to search for a kernel parameter in kernel modules in this order:
>    1. In `$FWDIR/boot/modules/fw_*.o`
>    2. In `$PPKDIR/boot/modules/sim_*.o`
> 4. Configure the required new value for the kernel parameter:
>
>    |----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                                                                                                          |
>    | Integer        | In Gala gClish: `fw ctl set int <Name_of_Integer_Parameter> <Integer_Value>` In the Expert mode: `g_fw ctl set int <Name_of_Integer_Parameter> <Integer_Value>` |
>    | String         | In Gala gClish: `fw ctl set str <Name_of_String_Parameter> "<String_Value>"` In the Expert mode: `g_fw ctl set str <Name_of_String_Parameter> "<String_Value>"` |
>
> 5. Get the current value of the kernel parameter as described in Step 3.

*** ** * ** ***

Configuring a kernel parameter value permanently
------------------------------------------------

Notes:

* For some kernel parameters, it is possible to change their value only permanently.  
  Check Point Support provides the relevant explanation for such parameters.
* This procedure changes the value of the kernel parameter on-the-fly and adds the required line in the `$FWDIR/boot/modules/fwkern.conf` file for permanent configuration.

**Procedure to configure a kernel parameter value permanently on a Security Gateway, Cluster, Legacy VSX Gateway, Legacy VSX Cluster that runs Gaia OS R80.20 and higher / Quantum Spark Gateway that runs Gaia Embedded OS R80.20.X and higher**
> Show / Hide this section  
> 1. Connect to the command line on the Security Gateway / each Cluster Member.
>
> 2. Log in to Gaia Clish or the Expert mode.
>
> 3. Get the current value of the kernel parameter:
>
>    |----------------|----------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                           |
>    | Integer        | In Gala Clish and Expert mode: `fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>    | String         | In Gala Clish and Expert mode: `fw ctl get str <Name_of_String_Parameter> [-a]`  |
>
>    The parameter "`-a`" specifies to search for a kernel parameter in kernel modules in this order:
>    1. In `$FWDIR/boot/modules/fw_*.o`
>    2. In `$PPKDIR/boot/modules/sim_*.o`
> 4. Configure the required new value for the kernel parameter:
>
>    |----------------|------------------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                                         |
>    | Integer        | In Gala Clish and Expert mode: `fw ctl set -f int <Name_of_Integer_Parameter> <Integer_Value>` |
>    | String         | In Gala Clish and Expert mode: `fw ctl set -f str <Name_of_String_Parameter> "<String_Value>"` |
>
> 5. Reboot **when you can**:
>
>    `reboot`
>
>    **Important** - In cluster, this can cause a failover.
> 6. Connect to the command line on the Security Gateway / each Cluster Member.
>
> 7. Log in to Gaia Clish or the Expert mode.
>
> 8. Get the current value of the kernel parameter as described in Step 3.

**Procedure to configure a kernel parameter value permanently on a Scalable Platform R80.20SP and higher (Security Group in Maestro, Security Group in Scalable Chassis, ElasticXL, VSNext)**
> Show / Hide this section  
> 1. Connect to the command line on the Security Group.
>
> 2. Log in to the Expert mode.
>
> 3. Get the current value of the kernel parameter:
>
>    |----------------|-----------------------------------------------------|
>    | Parameter Type | Syntax                                              |
>    | Integer        | `g_fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>    | String         | `g_fw ctl get str <Name_of_String_Parameter> [-a]`  |
>
>    The parameter "`-a`" specifies to search for a kernel parameter in kernel modules in this order:
>    1. In *$FWDIR/boot/modules/fw_\*.o*
>    2. In *$PPKDIR/boot/modules/sim_\*.o*
> 4. Configure the required new value for the kernel parameter:
>
>    |----------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
>    | Parameter Type | Syntax                                                                                                                                            |
>    | Integer        | `g_update_conf_file fwkern.conf <Name_of_Integer_Parameter>=<Integer_Value>` or `g_fw ctl set -f int <Name_of_Integer_Parameter> <Integer_Value>` |
>    | String         | `g_update_conf_file fwkern.conf <Name_of_String_Parameter>="<String_Value>"` or `g_fw ctl set -f str <Name_of_String_Parameter> "<String_Value>"` |
>
>    **Important:** The '`g_update_conf_file`' command does not support space characters around the '=' sign.
> 5. Reboot **when you can**:
>
>    `reboot -b all`
> 6. Connect to the command line on the Security Group.
>
> 7. Log in to Gaia gClish or the Expert mode.
>
> 8. Get the current value of the kernel parameter as described in Step 3.

**Procedure to configure a kernel parameter value permanently on a Security Gateway, Cluster, Legacy VSX Gateway, Legacy VSX Cluster that runs Gaia OS R80.10 and lower**
> Show / Hide this section  
> 1. Connect to the command line on the Security Gateway / each Cluster Member.
>
> 2. Log in to the Expert mode.
>
> 3. Get the current value of the kernel parameter:
>
>    |----------------|---------------------------------------------------|
>    | Parameter Type | Syntax                                            |
>    | Integer        | `fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>    | String         | `fw ctl get str <Name_of_String_Parameter> [-a]`  |
>
>    The parameter "`-a`" specifies to search for a kernel parameter in kernel modules in this order:
>    1. In `$FWDIR/boot/modules/fw_*.o`
>    2. In `$PPKDIR/boot/modules/sim_*.o`
> 4. Back up the current configuration file:
>
>    `cp -v $FWDIR/boot/modules/fwkern.conf{,_BKP}`
> 5. Edit the current configuration file:
>
>    `vi $FWDIR/boot/modules/fwkern.conf`
> 6. Add the required kernel parameter with the new value in the exact format specified below:
>
>    |----------------|-----------------------------------------------|
>    | Parameter Type | Syntax                                        |
>    | Integer        | `<Name_of_Integer_Parameter>=<Integer_Value>` |
>    | String         | `<Name_of_String_Parameter>="<String_Value>"` |
>
>    **Important:**
>    * Space characters are not allowed around the '=' sign
>    * Each kernel parameter must be on a separate line
>    * This configuration file does not support comments (lines that start with the # character)
>    * This configuration file does not support duplicate lines - each kernel parameter must appear only one time in the file
> 7. Save the changes in the file and exit the editor.
>
> 8. **Mandatory:** Reboot the Security Gateway / each Cluster Member.
>
>    `reboot`
>
>    **Important** - In cluster, this can cause a failover.
> 9. Connect to the command line on the Security Gateway / each Cluster Member.
>
> 10. Log in to Gaia Clish or the Expert mode.
>
> 11. Get the current value of the kernel parameter:
>
>     |----------------|----------------------------------------------------------------------------------|
>     | Parameter Type | Syntax                                                                           |
>     | Integer        | In Gala Clish and Expert mode: `fw ctl get int <Name_of_Integer_Parameter> [-a]` |
>     | String         | In Gala Clish and Expert mode: `fw ctl get str <Name_of_String_Parameter> [-a]`  |

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
