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

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

Ключ

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

Если в Системе одновременно используются схемы работы "в разрыв" для SMTP- и HTTP(S)-трафика, то для более гибкой настройки Системы требуется изменить конфигурационный файл system.lua следующим образом.

  1. Войдите в систему от имени пользователя root:
    su – root
  2. Откройте файл system.lua, расположенный в директори /opt/iw/tm5/etc/scripts, на редактирование.
  3. Замените секцию кода
    if not get_child(processing, 'transport_mode') then
    processing:add_child('transport_mode'):set_text('Copy');
    end;
    на следующую:
    if not get_child(processing, 'transport_mode') then
    local monitor = get_monitor(root);
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Normal');
    elseif monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Normal');
    else
    processing:add_child('transport_mode'):set_text('Copy');
    end
    end;
  4. В зависимости от того, какой режим требуется включить для какого перехватчика, укажите:
    для SMTP-перехватчика
  • для использования режима «Копия»:
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Copy');
  • для использования режима «Блокировка»:
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Normal');

    для HTTP(S)-перехватчика
  • для использования режима «Копия»:
    if monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Copy');

  • для использования режима «Блокировка»:
    if monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Normal');
  1. Сохраните файл.

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

    При конфигурировании HTTP перехватчика, необходимо также отредактировать конфигурационный файл icap.conf в соответствии с выбранной схемой (см. "Настройка ICAP".)

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

 

Sv translation
languageen

In case system uses inline mode for SMTP- and HTTP(S)-traffic, than you need to change system.lua configuration file in a following way..

  1. Enter the system under root user:
    su – root
  2. Open system.lua file, located in /opt/iw/tm5/etc/scripts directory, to edit.
  3. Change code section
    if not get_child(processing, 'transport_mode') then
    processing:add_child('transport_mode'):set_text('Copy');
    end;
    to the next one:
    if not get_child(processing, 'transport_mode') then
    local monitor = get_monitor(root);
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Normal');
    elseif monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Normal');
    else
    processing:add_child('transport_mode'):set_text('Copy');
    end
    end;
  4. Depending on regime you want to enable for an interceptor, specify:
    For SMTP interceptor
  • To use «Copy» type:
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Copy');

  • To use «Block» type:
    if monitor == 'SMTP' then
    processing:add_child('transport_mode'):set_text('Normal');

    For HTTP(S)-interceptor

  • To use «Copy» type:
    if monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Copy');

  • To use «Block» type:
    if monitor == 'HTTP' then
    processing:add_child('transport_mode'):set_text('Normal');
  1. Save file.

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

    Configuring HTTP, it is also required to edit icap.conf according to the chosen mode (see "Configuring ICAP ".)

  2. Reboot the system:
    service iwtm restart