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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Sv translation
languageru

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

  1. Войдите в систему от имени пользователя пользователя root:
    su – root
  2. Откройте файлsystem iwssid.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
    endis_generic then
         local emitter = first_text_default(root:xFind('/root/envelope/headers/emitter').nodes, '');
         if emitter == 'ICAP' then
             TransportMode = 'Normal';
         end;
     end;

    а также:

    if not is_generic then
         TransportMode = 'Normal';
    end;

  4. В зависимости от того, какой режим требуется включить для какого перехватчика, укажите:

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

    • для использования режима «Блокировка»:
      if
monitor
    • emitter == '
SMTP
    • ICAP' then
processing:add_child('transport_mode'):set_text(
    •  TransportMode = 'Normal'
)
    • ; 

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

    • для использования режима «Блокировка»:
      if
monitor == 'HTTP' then
processing:add_child('transport_mode'):set_text(
    • not is_generic then
           TransportMode = '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');
  5. Save file.

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

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

  6. Reboot the system:
    service iwtm restart