Using the klscflag utility to open the OpenAPI port
The OpenAPI port is used by Kaspersky Security Center Web Console to connect to the Administration Server. The default value for the OpenAPI port is 13299.
To open the OpenAPI port:
- Execute the following command in the command line:
$ /opt/kaspersky/ksc64/sbin/klscflag -ssvset -pv klserver -s 87 -n KLSRV_SP_OPEN_OAPI_PORT -sv true -svt BOOL_T -ss "|ss_type = \"SS_SETTINGS\";"
- Restart the Kaspersky Security Center Linux Administration Server service by executing the following command:
$ sudo systemctl restart kladminserver_srv
The OpenAPI port is open.
To check if the OpenAPI port has been opened successfully, execute the following command in the command line:
$ /opt/kaspersky/ksc64/sbin/klscflag -ssvget -pv klserver -s 87 -n KLSRV_SP_OPEN_OAPI_PORT -svt BOOL_T -ss "|ss_type = \"SS_SETTINGS\";"
This command returns the following result:
+--- (PARAMS_T)
+---KLSRV_SP_OPEN_OAPI_PORT = (BOOL_T)true
The true
value means that the port is open. Otherwise, the false
value is displayed.