Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.8
Sv translation
languageru

Сервер Personal Data Protector Traffic Monitor используется как промежуточный почтовый сервер. В его состав входит почтовый сервер Postfix.
Интеграция сервера Personal Data Protector с Traffic Monitor с почтовым сервером Postfix в данном случае реализуется следующим образом. Почтовый сервер Postfix, встроенный в систему Personal Data ProtectorTraffic Monitor, принимает входящие SMTP-письма на 25-й порт порт. Затем Далее входящие SMTP-письма передаются процессу iw_smtpd на порт 2025. В Системе создается событие для каждого из писем. В зависимости от схемы работы (Копия или Блокировка), возможны следующие варианты движения SMTP-трафика:

  • Режим Копия – SMTP-трафик с помощью Postfix предается адресату или следующему relay-серверу в почтовой системе организации.

Image Removed
Рисунок 1. Интеграция с Postfix (Копия)

Режим Блокировка – SMTP-трафик анализируется системой Personal Data Protector. В зависимости от наличия нарушений возможны следующие варианты движения трафика

; все письма помещаются в базу данных Traffic Monitor.

В установленном режиме Блокировка SMTP-трафик анализируется системой Traffic Monitor, и:

  • если нарушение отсутствует, SMTP-трафик с помощью встроенного сервера Postfix передается адресату или следующему relay-серверу в почтовой системе организации. Доставка осуществляется так: процесс iw_messed передает письма на порт 2020 почтового сервера Postfix. Почтовый сервер Postfix либо напрямую доставляет письма адресатам, либо передает их следующему почтовому relay-серверу;
  • если обнаружено нарушение, Система блокирует доставку письма и в политиках указан вердикт Поместить на карантин, то Система выставляет письму вердикт Карантин. Письмо будет доставлено только в том случае, если Офицер безопасности разрешит выставит решение пользователя Нет нарушения, разрешая доставку письма в Консоли управления (см. документ «InfoWatch Personal Data ProtectorTraffic Monitor. Руководство пользователя»).  

Image Removed
Рисунок 2. Интеграция с Postfix (Блокировка)

  • Доставка осуществляется следующим образом:
  • процесс iw_messeddeliver передает письма на порт 2020 почтового сервера Postfix, встроенного в Систему;почтовый . Почтовый сервер Postfix либо напрямую доставляет письма адресатам, либо передает их следующему почтовому relay-серверу;
  • если обнаружено нарушение, и в политиках указан вердикт Заблокировать, то Система выставляет письму вердикт Заблокировано. Доставка письма в этом случае выполнена не будет.

     Image Added


Чтобы настроить работу "в разрыв" для SMTP-перехватчика, выполните следующие действия:

  1. На корпоративном почтовом сервере в качестве relay-сервера настройте сервер Personal Data ProtectorTraffic Monitor.

    Информация
    titleПримечание:

    Если в организации используется более одного почтового сервера, каждый из них должен быть настроены настроен на отправку исходящих сообщений на встроенный в Систему сервер Postfix
    Способ настройки зависит . В зависимости от того, какой почтовый сервер используется в компании, данная настройка может различаться.

    В результате данной настройки весь почтовый трафик от корпоративного почтового сервера будет направляться только на сервер Personal Data ProtectorTraffic Monitor.

  2. Убедитесь, что включен автозапуск процессов iw_smtpd и iw_deliver (см. "Автозапуск процессов").
  3. Настройте встроенный почтовый сервер в Систему Postfix (см. "Настройка сервера Postfix в системе Personal Data ProtectorTraffic Monitor").
  4. В конфигурационном файле system.lua, расположенном в директории Остановите службы iwtm:
    iwtm stop
  5. Откройте файл luaengined.conf, расположенный в директории /opt/iw/tm5/etc/scripts, в зависимости от используемой схемы, добавьте соответствующую секцию кода:
  • в случае использования режима «Копия»:

if not get_child(processing, 'transport_mode') then
processing:add_child('transport_mode'):set_text('Copy');

  • в случае использования режима «Блокировка»:

if not get_child(processing, 'transport_mode') then
processing:add_child('transport_mode'):set_text('Normal');

Предупреждение
titleВажно!

Выбранный режим будет применен и для SMTP-, и для HTTP(S)-перехватчиков. Чтобы выполнить более гибкую настройку см. "Настройка работы "в разрыв" для нескольких перехватчиков".

 

 
  1. , на редактирование.
  2. В секции TransportMode в свойстве Smtp укажите действительное FQDN-имя сервера Traffic Monitor с перехватчиком (например, tm-server1.local) и значение режима Normal (режим "Блокировка"):
    "Smtp": [{"Server": "tm-server1.local", "Mode": "Normal"}]

    Предупреждение
    titleВажно!

    При распределенной установке режим определяется процессом iw_luaengined, расположенному локально или на другой ноде кластера. Поэтому на каждой ноде в файле /opt/iw/tm5/etc/luaengined.conf в секции TransportModes в свойстве Smtp укажите несколько пар значений действительных FQDN-имен серверов TM и нужных режимов. Например:

    "Smtp": [{"Server": "tm-server1.local", "Mode": "Copy"}, {"Server":"tm-server2.local.ru", "Mode": "Normal"}]

    Важно! Файлы iwssid.lua и luaengined.conf при этом должны быть одинаковыми на всех нодах.

  3. Сохраните файл.

  4. Запустите службы iwtm:
    iwtm start

Чтобы трафик передавался вне зависимости от вынесенного вердикта:

  1. В коде, указанном выше в пункте 6, задайте параметру TransportMode значение 'Transparent' .
  2. Сохраните файл.

  3. Перезагрузите Систему:
    iwtm restart

Досылка SMTP-писем с ошибками обработки, отправленных "в разрыв"

SMTP-письма, в процессе обработки которых произошли ошибки, помещаются в очереди ошибок: queue/x2x-errors и queue/errors. Досылка писем (в том числе с вердиктом "Карантин") из очередей ошибок осуществляется посредством демона iw_rammer, после чего очереди очищаются. Адреса отправителей и получателей берутся (при наличии) из .xml-файла. В случае их отсутствия письмо досылке не подлежит. При отправке письма Офицеру безопасности адреса отправителя и получателя указываются в конфигурационном файле opt/iw/tm5/etc/rammer.conf. Во вложении к письму передаются .xml и .dat-файлы объекта. Досылка письма адресату, а также оповещения Офицеру безопасности, осуществляется через почтовый сервер Postfix (порт 2020). Уведомления Офицеру безопасности со вложенным доставленным письмом приходят в виде "письма-события", отправитель которого берется из исходного письма. Данные для подключения (адрес и порт), задаются в конфигурационном файле rammer.conf (см. документ "Справочник по конфигурационным файлам", файл "rammer.conf").

SMTP-письмо будет досылаться при соблюдении одновременно всех условий:

  1. если оно еще не было доставлено штатным способом (демоном iw_messed);
  2. если во время обработки письма и попадания его в очередь ошибок установлен режим работы "Блокировка";
  3. если у письма не проставлен вердикт "Заблокировано".

Средством принудительной досылки писем служит утилита /opt/iw/tm5/bin/rammer_tool. Для вызова списка возможных настроек наберите в командной строке:

/opt/iw/tm5/bin/rammer_tool --help
Sv translation
languageen

Personal Data Protector Traffic Monitor Server is used as an intermediate mail server. It includes Postfix mail server.

Integration of Traffic Monitor mail server with a the mail server is implemented in implemented the following way. Postfix mail server, which is embedded in the Personal Data Protector Traffic Monitor system, receives incoming SMTP messages via port 25. SMTP messages are then transmitted to the iw_smtpd process via port 2025. An The System creates an event for each message is created in the System. Depending on the selected scheme (Copy or Block), the following types of SMTP traffic transmission are possible: 

  • Copy type – SMTP traffic is transmitted to recipient via Postfix or to the next relay-server in the corporate mailing System.

Image Removed
Picture 1. Postfix integration (Copy)

Block type – SMTP traffic is analyzed by Personal Data Protector System, andIn case

and stores all messages in Traffic Monitor database.

In the Inline mode, SMTP traffic is analysed by Traffic Monitor and:

  • If there is no violation, SMTP traffic is transmitted sent to the recipient recepient or to the next relay - server in the corporate mailing System via company's mail system by means of the embedded Postfix server. Delivery is performed works as follows: the iw_messed process transmits messages sends emails to  2020 port 2020 of the Postfix mail server. The Postfix mail server either delivers messages emails to recipients directly or transmits them to the next mail relay - server;
  • In case If there is a violation and policies contain the Quarantine verdict, System blocks delivery of the message. The message then the System sets the Quarantine verdict to the email. The email will be delivered only if a Security Officer allows the Security officer sets the No violation user decision and allows the delivery in the Management Console (see the document «InfoWatch Personal Data Protector"InfoWatch Traffic Monitor. User guide»Guide"). Delivery is performed works as follows:  the iw_messed process transmits messages to 2020 port deliver process transmits emails to port 2020 of the embedded Postfix mail server that is embedded in the System. The Postfix mail server either delivers messages emails to recipients directly or transmits them to the next mail relay - server;

    Image Removed
    Picture 2. Postfix integration (Block)

    To configure inline mode:

  • Configure Personal Data Protector as a relay-server on a corporate mail serverIf there is a violation and policies contain the Block verdict, then the System sets the Block verdict to the email. In this case, the email will not be delivered.


Image Added

To configure the inline mode for SMTP interceptor:

  1. On the corporate mail server, configure Traffic Monitor as a relay server.

    Информация
    titleNote:

    If the company uses more than one mail server

are used in the organization
  1. , each

of them
  1. server should be configured to send

outgoing
  1. messages to the embedded Postfix server.

Configuration process can be different
  1. The configuration process may differ depending on the mail server which is used in the company.

    As a result, all mail traffic sent from a corporate mail server

will be
  1. is transmitted to

Personal Data Protector Server
  1. Traffic Monitor Server.

  2. Make sure that autostart for the iw_smtpd and iw_deliver processes
has been
  1. is enabled (see "Process Autorun").
  2. Configure Postfix server
which is
  1. embedded in the System (see "Configuring Postfix Server
embedded in Personal Data Protector system
  1. in Traffic Monitor System").
In the system.lua configuration file, which is located in the 
  1. Stop the iwtm service:
    iwtm stop
  2. Open the file luaengined.conf, located in /opt/iw/tm5/etc
/scripts directory, enter the code section for the selected mode:
  • If Copy mode is used:

   if not get_child(processing, 'transport_mode') then

   processing:add_child('transport_mode'):set_text('Copy');

  • If Block mode is used:

      if not get_child(processing, 'transport_mode') then

    processing:add_child('transport_mode'):set_text('Normal');

Предупреждение
titleWarning!

Chosen mode will be applied to SMTP and HTTP(S) interceptors. For more flexible configuration see "Configuring Inline Mode for Server Interceptors".

 
  1. , for editing;
  2. In Smtp property of TransportModes section, specify TM server name with interceptor (for example, tm-server1) and mode value Normal (Block mode): 
    "Smtp": [{"Server": "tm-server1", "Mode": "Normal"}]

    Предупреждение
    titleImportant!

    In case of distributed installation, the mode is defined by the local iw_luaengined process or the one located on another node. That is why on each node in the /opt/iw/tm5/etc/luaengined.conf file in the Smtp property of the TransportModes section you need to specify several pairs of valid FQDN names of TM servers and required modes. For example: 

    "Smtp": [{"Server": "tm-server1.local", "Mode": "Copy"}, {"Server":"tm-server2.local.ru", "Mode": "Normal"}]

    Important! The iwssid.lua and luaengined.conf files should be the same on all the nodes.

  3. Save the file.
  4. Start the iwtm services:
    iwtm start

For the traffic to be transmitted in spite of a verdict given:

  1. In the code in step 6 above, set the Transparent value for the TransportMode parameter.
  2. Save the file.
  3. Restart the System:
    iwtm restart

Delivering SMTP emails with processing errors sent in "inline mode"

SMTP emails processing of which caused errors are to be put into the error queues: queue/x2x-errors and queue/errors. Delivering SMTP emails (including the ones with Quarantine verdict assigned) is performed by iw_rammer daemon from error queues. After that the queues are to be refined. The System extracts the sender and recipient's addresses (if provided) from an XML file. Otherwise, the email cannot be delivered. When sending an email to Security officer, the sender and recipient's adresses are specified within the configuration file opt/iw/tm5/etc/rammer.conf. The email attachment contains XML and DAT object files. Email sending to the addressee as well as notification for Security officer is performed via Postfix mail server (port 2020). Notification is to be delivered to Security officer via event email and the sender is specified from initial message. Connection data (address and port), as well as the addressee and sender addresses, are set within the rammer.conf configuration file (for details, see the document "Configuration Files Guide", the rammer.conf file). 

SMTP email is to be delivered when meeting each of the following terms:

  1. If it wasn't delivered in a regular mode (by iw_messed daemon);
  2. If "Block" mode is assigned when processing the email and when the email got into error queue;
  3. If the email wasn't qualified as a Blocked one.

Forced delivery measure is opt/iw/tm5/rammer-tool utility. To view the list of available settings, enter in the command line:

/opt/iw/tm5/bin/rammer_tool --help