Adding rules to the configuration from the command line

Rules can be added to the computer configuration:

To add a rule to the configuration via the command line, use the command:

ibatyr acl 'правило' 'значение' 'конфигурация1 | конфигурация2 |...'

To remove a rule from the configuration:

ibatyr acl 'правило' 'значение' 'конфигурация1 | конфигурация2 |...' --drop

When adding rules to the configuration, it is important to remember:

  • if you do not specify the configuration name in the command to add or delete a rule, the rule will be added or deleted in global configuration;

  • Values containing spaces must be specified in quotation marks.

Command examples

Add a rule to the global configuration that prohibits substitution of the certificate for the site example.com:

ibatyr acl 'PROXY_SSL_APP_EXCLUDE' 'example.com'

Remove from the TD and Default Configuration the rule blocking the USB device with Device ID USBVID_16&PID_B18030131:

ibatyr acl 'USB_EXCLUDE' 'USB\VID_16&PID_B18\030131' 'TD|Конфигурация по умолчанию' --drop

Available rules

Rule

Chapter

Description

APP_RUN_EXCLUDE

Application Control - Rules: Monitoring - Applications

Prohibit

APP_RUN_INCLUDE

Application Control - Rules: Monitoring - Applications

Allow

APP_RUN_BLACKLIST

Application Control - Rules: Blocking - Applications

Prohibit

APP_RUN_WHITELIST

Application Control - Rules: Blocking - Applications

Allow

FILE_PATH_EXCLUDE

Files - Rules: File monitoring - Paths and masks

Prohibit

FILE_PATH_INCLUDE

Files - Rules: File monitoring - Paths and masks

Allow

FILE_APP_EXCLUDE

Files - Rules: File monitoring - Applications

Prohibit

FILE_APP_INCLUDE

Files - Rules: File monitoring - Applications

Allow

FILE_APP_READ_EXCLUDE

Files - Rules: File monitoring - Applications - Reading

Prohibit

FILE_APP_READ_INCLUDE

Files - Rules: File monitoring - Applications - Reading

Allow

SPECIAL_DOC_LIST

Files - Rules: Files - Special controls

Allow

PROXY_APP_EXCLUDE

Network Connections - Rules: Network Monitoring - Applications

Prohibit

PROXY_APP_INCLUDE

Network Connections - Rules: Network Monitoring - Applications

Allow

PROXY_IP_EXCLUDE

Network Connections - Rules: Network Monitoring - IP

Prohibit

PROXY_IP_INCLUDE

Network Connections - Rules: Network Monitoring - IP

Allow

PROXY_PORT_EXCLUDE

Network Connections - Rules: Network Monitoring - Port

Prohibit

PROXY_PORT_INCLUDE

Network Connections - Rules: Network Monitoring - Port

Allow

PROXY_URL_EXCLUDE

Network Connections - Rules: Network Monitoring - Address

Prohibit

PROXY_URL_INCLUDE

Network Connections - Rules: Network Monitoring - Address

Allow

PROXY_SSL_APP_EXCLUDE

Network connections - Rules: Network monitoring - Certificate substitution

Prohibit

PROXY_SSL_APP_INCLUDE

Network connections - Rules: Network monitoring - Certificate substitution

Allow

REPORT_NET_PORT_EXCLUDE

Network connections - Rules: Network monitoring - Sending reports by port

Prohibit

REPORT_NET_PORT_INCLUDE

Network connections - Rules: Network monitoring - Sending reports by port

Allow

USB_EXCLUDE

Devices - Rules: Lock - USB

Prohibit

USB_INCLUDE

Devices - Rules: Lock - USB

Allow

USB_CLASS_EXCLUDE

Devices - Rules: Lock - USB Class

Prohibit

USB_CLASS_INCLUDE

Devices - Rules: Lock - USB Class

Allow

WEB_SITES_BLACKLIST

Internet - Rules: Blocking - Websites

Prohibit

WEB_SITES_WHITELIST

Internet - Rules: Blocking - Websites

Allow

WEB_CONTENTTYPE_EXCLUDE

Internet - Rules: Web monitoring - Sending reports by content type

Prohibit

WEB_CONTENTTYPE_INCLUDE

Internet - Rules: Web monitoring - Sending reports by content type

Allow

SPECIAL_APP_LIST

Screenshots - Rules: Special Control

Allow

KBD_APP_EXCLUDE

Keyboard and clipboard - Rules: Keyboard interception - Applications

Prohibit

KBD_APP_INCLUDE

Keyboard and clipboard - Rules: Keyboard interception - Applications

Allow

ACCOUNT_BLACKLIST

User Monitoring - Rules: User Monitoring

Prohibit

ACCOUNT_WHITELIST

User Monitoring - Rules: User Monitoring

Allow

WATCH_FILES

Linux Monitoring - Rules: Log File Monitoring

Allow

Adding tags to devices

The acl utility allows you not only to create rules for computer configurations, but also to work with USB device labels.

To work with labels with the USB_EXCLUDE, USB_INCLUDE, USB_CLASS_EXCLUDE and USB_CLASS_INCLUDE commands, use the --add_label= parameter, which adds the label value to the specified device.

Command syntax when working with tags:

ibatyr acl USB_EXCLUDE device_id my_config --add_label=my_label

This command populates the Devices - Rules: Block-USB - Deny rule with the device_id value in the my_config configuration, and in the Control Panel - Devices section adds the my_label label to the device with the same device_id.

Note

If a device with the specified device_id is not in the list, it will be created.