Configuring Additional HTTPS Status Code, which ICAP Client Sends in RESPMOD
Description
To send HTTP server response to an ICAP server in RESPMOD, you can configure HTTP server status codes that the ICAP Client The ICAP Client functionality in your Security Gateway or Cluster (in versions R80.40 and higher) enables it to interact with an ICAP Server responses (see RFC 3507), modify their content, and block the matched HTTP connections. sends to the ICAP server.
By default, the ICAP Client sends server status codes 1xx or 2xx.
Configuring the HTTP Server Status Codes
You add the HTTP server status codes as values of the specific kernel parameter:
Item |
Description |
---|---|
Name |
|
Type |
String |
Notes |
|
For general instructions, see the R82 Quantum Security Gateway Guide > Chapter Working with Kernel Parameters on Security Gateway.

-
Set the value of this kernel parameter to the string
'__print__'
:fw ctl set str icap_append_status_code_str '__print__'
-
Print the list of the configured server status codes:
dmesg | grep icap_client_append_status_code
Example:
[Expert@GW:0]# fw ctl set str icap_append_status_code_str '__print__' [Expert@GW:0]# dmesg | grep icap_client_append_status_code [fw6_0];icap_client_append_status_code: ==> new 'status code' array is: [ 1 ; 2 ;] [fw4_0];icap_client_append_status_code: ==> new 'status code' array is: [ 1 ; 2 ;] [Expert@GW:0]# |

-
Set the value of this kernel parameter to the desired string (see the Notes above):
fw ctl set str icap_append_status_code_str 'N'
fw ctl set str icap_append_status_code_str 'N'
fw ctl set str icap_append_status_code_str 'NNN'
-
Print the list of the configured server status codes:
fw ctl set str icap_append_status_code_str '__print__'
dmesg | grep icap_client_append_status_code
Example:
[Expert@GW:0]# fw ctl set str icap_append_status_code_str '3' [Expert@GW:0]# fw ctl set str icap_append_status_code_str '__print__' [Expert@GW:0]# dmesg | grep icap_client_append_status_code [fw6_0];icap_client_append_status_code: ==> new 'status code' array is: [ 1 ; 2 ; 3 ;] [fw4_0];icap_client_append_status_code: ==> new 'status code' array is: [ 1 ; 2 ; 3 ;] [Expert@GW:0]# |

-
Set the value of this kernel parameter to an empty string
''
:fw ctl set str icap_append_status_code_str ''
-
Print the list of the configured HTTP headers:
fw ctl set str icap_append_status_code_str '__print__'
dmesg | grep icap_client_append_status_code
Example:
[Expert@GW:0]# fw ctl set str icap_append_status_code_str '' [Expert@GW:0]# fw ctl set str icap_append_status_code_str '__print__' [Expert@GW:0]# dmesg | grep icap_client_append_status_code [Expert@GW:0]# |

-
Set the value of this kernel parameter to the strings
'1'
and'2'
:fw ctl set str icap_append_status_code_str '1'
fw ctl set str icap_append_status_code_str '2'
-
Print the list of the configured server status codes:
fw ctl set str icap_append_status_code_str '__print__'
dmesg | grep icap_client_append_status_code