Connect to the Kaspersky Industrial CyberSecurity for Networks Server through the web interface using the Administrator account.
Select the Process Control section.
On the Rules tab, open the details area by clicking the Add Lua script link.
Perform the following actions:
Use the Enable toggle to define the status of the rule: Enabled or Disabled.
Enter the rule name and description.
If you want to define the script from a template, in the details area click the Use Lua template button, select the necessary template in the opened window and click Apply.
In the Lua script for rule field, enter the code of the script in the Lua language.
The script input field displays the names of functions and comments loaded from template. You can create a script by editing and augmenting template strings. When entering text, suggestions or available values automatically appear near the cursor (for example, relevant names of devices and tags when entering settings that identify a tag).
If the script code does not fit into the Lua script for rule field, you can use the button to open a separate window for displaying the code.
Configure the settings for registering an event when the rule is triggered (event title, description and score, and settings for saving traffic).