To change the internal default behavior of Firewall or to configure special advanced settings for Firewall, you can use Firewall kernel parameters.
The names of applicable Firewall kernel parameters and their values appear in various SK articles in Support Center, and provided by Check Point Support.
Important
g_fw ctl set
command.This change does not survive a reboot.
$FWDIR/modules/fwkern.conf
or $FWDIR/modules/vpnkern.conf
).This requires a maintenance window, because the new values of the kernel parameters take effect only after a reboot.
Examples of Firewall kernel parameters
Type |
Name |
---|---|
Integer |
|
String |
|
To see the list of the available Firewall integer kernel parameters and their values:
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Get the list of the available integer kernel parameters and their values:
|
4 |
Analyze the output file:
|
To see the list of the available Firewall string kernel parameters and their values:
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Get the list of the available integer kernel parameters and their values:
|
4 |
Analyze the output file:
|
To check the current value of a Firewall integer kernel parameter:
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Check the current value of an integer kernel parameter:
Example: [Expert@MyGW:0]# g_fw ctl get int send_buf_limit send_buf_limit = 80 [Expert@MyGW:0]# |
To check the current value of a Firewall string kernel parameter:
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Check the current value of a string kernel parameter:
Example: [Expert@MyGW:0]# g_fw ctl get str fileapp_default_encoding_charset fileapp_default_encoding_charset = 'UTF-8' [Expert@MyGW:0]# |
To set a value for a Firewall integer kernel parameter temporarily:
Important - This change does not survive reboot.
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Set the new value for an integer kernel parameter:
Example: [Expert@MyGW:0]# g_fw ctl set int send_buf_limit 100 Set operation succeeded [Expert@MyGW:0]# |
4 |
Make sure the new value is set:
Example: [Expert@MyGW:0]# g_fw ctl get int send_buf_limit send_buf_limit = 100 [Expert@MyGW:0]# |
To set a value for a Firewall string kernel parameter temporarily:
Important - This change does not survive reboot.
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Set the new value for a string kernel parameter: Note - You must write the value in single quotes, or double-quotes.
or
Example: [Expert@MyGW:0]# g_fw ctl set str debug_filter_saddr_ip '1.1.1.1' Set operation succeeded [Expert@MyGW:0]# |
4 |
Make sure the new value is set:
Example: [Expert@MyGW:0]# g_fw ctl get str debug_filter_saddr_ip debug_filter_saddr_ip = '1.1.1.1' [Expert@MyGW:0]# |
To clear the current value from a Firewall string kernel parameter temporarily:
Important - This change does not survive reboot.
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Clear the current value from a string kernel parameter: Note - You must set an empty value in single quotes, or double-quotes.
or
Example: [Expert@MyGW:0]# g_fw ctl set str debug_filter_saddr_ip '' Set operation succeeded [Expert@MyGW:0]# |
4 |
Make sure the value is cleared (the new value is empty):
Example: [Expert@MyGW:0]# g_fw ctl get str debug_filter_saddr_ip debug_filter_saddr_ip = '' [Expert@MyGW:0]# |
To set a value for a Firewall kernel parameter permanently:
To make a kernel parameter configuration permanent (to survive reboot), you must edit one of the applicable configuration files:
$FWDIR/modules/fwkern.conf
$FWDIR/modules/vpnkern.conf
The exact instructions are provided in various SK articles in Support Center, and provided by Check Point Support.
Step |
Description |
---|---|
1 |
Connect to the command line on a Security Group member. |
2 |
Log in to the Expert mode. |
3 |
Set the required Firewall kernel parameter with the assigned value in the exact format specified below. Important - These configuration files do not support space characters, tabulation characters, and comments (lines that contain the # character).
|
4 |
Reboot the Security Group members. |
5 |
Connect to the command line on a Security Group member. |
6 |
Log in to Gaia Clish or the Expert mode. |
7 |
Make sure the new value of the kernel parameter is set:
|