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

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

Ключ

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

Файл конфигурации sniffer.conf

Scroll Table Layout
widths40%, 60%

СодержимоеОписание
{
 
    "Use": {
 
        "SessionDump": false
Сохранять ли перехваченные пакеты, распределенные по сессиям. Служит для отладки. Настройки SessionDump часть 1.
    }, 
 
    "Statistics": {...},
см. Общая секция Statistics
    "Logging": {...},
см. Общая секция Logging
    "iscp": {
 
       "TCPKeepaliveProbing": {
Секция мониторинга активности соединения
           "ProbesIntervalSec": 230,
Интервал между отправкой keep alive пакетов (в секундах)
           "ProbesCount": 510,
Количество отправляемых keep alive пакетов
           "StartProbingInSec": 15300,
Время, в течении которого нет активности по соединению и по истечении которого начинается отправка keep alive пакетов (в секундах)
           "Enabled": true
Включена или выключена опция
        },
 
        "ListenPort": 4301
Порт сервера, на котором запущен процесс прослушивания. Значение по умолчанию 4101
    }, 
 
    "NookDir": "/opt/iw/tm5", 

В секции указывается рабочий каталог модуля. По умолчанию – /opt/iw/tm5.

    "Niceness": -15, 
Значение приоритета (nice) для потоков-обработчиков iscp-протокола
    "UsedAreas": [
Активные фильтры из числа объявленных ниже в секции ListenAreas. Выбор, к какой ListenArea подключается каждый агент, производится по названию (задается в настройках клиентов сниффера - capstack или proxy). Допускается существование неактивных фильтров (прим. - "pcap").
        "capstack", 
 
        "http", 
 
        "icq", 
 
        "smtp"
 
    ], 
 
    "UnsafeSignalHandlers":false
Поддержка работы с необрабатываемыми сигналами. По умолчанию выключена (false). При установке значения true позволяется устанавливать в коде обработчики "небезопасных" сигналов (например, SIGSEVG). Добавлять, включать/выключать данную настройку не рекомендуется без предварительной консультации с разработчиками.
    "DebugBreak": false, 
Посылать ли SIGTRAP (SIGBREAK на Windows) при обработке любого исключения. Служит для отладки
    "SessionDump": {
Настройки SessionDump часть 2.
        "BaseDirectory": "snif-sessions"
Место сохранения перехватываемых сессий (если SessionDump = true).
    }, 
 
    "DumpFileDir": "dump-all", 
НЕ ИСПОЛЬЗУЕТСЯ
    "ListenAreas": {
Каждая ListenArea - фильтр, по которому отбираются пакеты для обработки. Источником пакетов является сетевой интерфейс (через модуль ядра tmcap) или pcap-файл. Имена ListenArea используются агентами при подключении к снифферу.
        "capstack": {
 
            "MaxClient": 16, 
Сколько агентов можно одновременно подключить к одной ListenArea.
            "Rules": [
Цепочка последовательно применяемых правил выбора пакетов, захватываемых для данной ListenArea. Для каждого пакета применяется первое правило, под которое он подошел.
                {
 
                    "LoPort": 110, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 110, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 143, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 143, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 993, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 993, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 1352, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 1352, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }
 
            ], 
 
            "Balancer": "IpPref", 

Выбор оптимального типа нагрузки серверов Traffic Monitor, что позволяет избежать задержек в обработке данных и потерь пакетов данных:

  • По умолчанию InPref - распределение трафика между несколькими экземплярами сервера осуществляется на основании source_ip перехваченной сессии (весь трафик клиента для указанных портов обрабатывается только один сервером), максимальное количество агентов, между которыми будет распределяться трафик задается параметром MaxClient.
  • В режиме Easy нет ограничений по распределению перехваченных сессий между серверами, и выбирается сервер с наименьшей нагрузкой (не по CPU, а количеству принимаемого трафика от сниффера).
            "Timeouts": {
Таймауты для обработки TCP-соединений, перехватываемых для данной ListenArea.
                "OpenInSec": 120, 
Сколько ждать согласования открытия сессии (т.е. ответного SYN,ACK).
                "TailInSec": 15, 
После закрытия соединения могут приходить подтверждения или повторы. Пакеты с теми же параметрами, что и у закрытой сессии, приходящие в указанный промежуток времени после закрытия, будут отнесены к ней.
                "CloseInSec": 120, 
Сколько ждать согласования закрытия сессии (ответного FIN).
                "LiveInSec": 3600
Максимальный разрыв между временем поступления новых пакетов для открытой сессии.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Сколько всего памяти могут занимать данные, готовые к отправке и собранные в данной ListenArea. Эта память делится между подключенными агентами.
            "Interface": ""
Имя сетевого интерфейса, на котором модуль ядра будет собирать трафик для данной ListenArea. Вводится вручную в каждом конкретном случае
        }, 
 
        "pcap": {
 
            "Timeouts": {
Таймауты для обработки TCP-соединений, перехватываемых для данной ListenArea.
                "OpenInSec": 120, 
Время ожидания согласования открытия сессии (т.е. ответного SYN,ACK).
                "TailInSec": 15, 
Время ожидания доставки отправленных пакетов (в сек) после закрытия соединения. В этом случае могут приходить подтверждения или повторы. Пакеты с параметрами, идентичные параметрам закрытой сессии и приходящие в указанный промежуток времени после закрытия, будут отнесены к ней.
                "CloseInSec": 120, 
Время ожидания согласования закрытия сессии (ответного FIN).
                "LiveInSec": 3600
Максимальный разрыв между временем поступления новых пакетов для открытой сессии.
            }, 
 
            "PcapFile": "input.pcap", 
Путь до файла с дампом трафика (одновременно может быть указан либо PcapFile, либо Interface).
            "MaxClient": 16, 
Сколько агентов можно одновременно подключить к одной ListenArea.
            "Balancer": "IpPref"

Выбор оптимального типа нагрузки серверов Traffic Monitor, что позволяет избежать задержек в обработке данных и потерь пакетов данных:

  • По умолчанию InPref - распределение трафика между несколькими экземплярами сервера осуществляется на основании source_ip перехваченной сессии (весь трафик клиента для указанных портов обрабатывается только один сервером), максимальное количество агентов, между которыми будет распределяться трафик задается параметром MaxClient.
  • В режиме Easy нет ограничений по распределению перехваченных сессий между серверами, и выбирается сервер с наименьшей нагрузкой (не по CPU, а количеству принимаемого трафика от сниффера).
        }, 
 
        "icq": {
 
            "MaxClient": 16, 
Сколько агентов можно одновременно подключить к одной ListenArea.
            "Rules": [
Цепочка последовательно применяемых правил выбора пакетов, захватываемых для данной ListenArea. Для каждого пакета применяется первое правило, под которое он подошел.
                {
 
                    "LoPort": 443, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 443, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 5190, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 5190, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }
 
            ], 
 
            "Balancer": "IpPref", 

Выбор оптимального типа нагрузки серверов Traffic Monitor, что позволяет избежать задержек в обработке данных и потерь пакетов данных:

  • По умолчанию InPref - распределение трафика между несколькими экземплярами сервера осуществляется на основании source_ip перехваченной сессии (весь трафик клиента для указанных портов обрабатывается только один сервером), максимальное количество агентов, между которыми будет распределяться трафик задается параметром MaxClient.
  • В режиме Easy нет ограничений по распределению перехваченных сессий между серверами, и выбирается сервер с наименьшей нагрузкой (не по CPU, а количеству принимаемого трафика от сниффера).
            "Timeouts": {
Таймауты для обработки TCP-соединений, перехватываемых для данной ListenArea.
                "OpenInSec": 120, 
Сколько ждать согласования открытия сессии (т.е. ответного SYN,ACK).
                "TailInSec": 15, 
После закрытия соединения могут приходить подтверждения или повторы. Пакеты с теми же параметрами, что и у закрытой сессии, приходящие в указанный промежуток времени после закрытия, будут отнесены к ней.
                "CloseInSec": 120, 
Сколько ждать согласования закрытия сессии (ответного FIN).
                "LiveInSec": 86400
Максимальный разрыв между временем поступления новых пакетов для открытой сессии.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Сколько всего памяти могут занимать данные, готовые к отправке и собранные в данной ListenArea. Эта память делится между подключенными агентами.
            "Interface": "eth1"
Имя интерфейса, на котором модуль ядра будет собирать трафик для данной ListenArea.
        }, 
 
        "smtp": {
 
            "MaxClient": 16, 
Сколько агентов можно одновременно подключить к одной ListenArea.
            "Rules": [
Цепочка последовательно применяемых правил выбора пакетов, захватываемых для данной ListenArea. Для каждого пакета применяется первое правило, под которое он подошел.
                {
 
                    "LoPort": 25, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 25, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }
 
            ], 
 
            "Balancer": "IpPref", 

Выбор оптимального типа нагрузки серверов Traffic Monitor, что позволяет избежать задержек в обработке данных и потерь пакетов данных:

  • По умолчанию InPref - распределение трафика между несколькими экземплярами сервера осуществляется на основании source_ip перехваченной сессии (весь трафик клиента для указанных портов обрабатывается только один сервером), максимальное количество агентов, между которыми будет распределяться трафик задается параметром MaxClient.
  • В режиме Easy нет ограничений по распределению перехваченных сессий между серверами, и выбирается сервер с наименьшей нагрузкой (не по CPU, а количеству принимаемого трафика от сниффера).
            "Timeouts": {
Таймауты для обработки TCP-соединений, перехватываемых для данной ListenArea.
                "OpenInSec": 120, 
Сколько ждать согласования открытия сессии (т.е. ответного SYN,ACK).
                "TailInSec": 15, 
После закрытия соединения могут приходить подтверждения или повторы. Пакеты с теми же параметрами, что и у закрытой сессии, приходящие в указанный промежуток времени после закрытия, будут отнесены к ней.
                "CloseInSec": 120, 
Сколько ждать согласования закрытия сессии (ответного FIN).
                "LiveInSec": 3600
Максимальный разрыв между временем поступления новых пакетов для открытой сессии.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Сколько всего памяти могут занимать данные, готовые к отправке и собранные в данной ListenArea. Эта память делится между подключенными агентами.
            "Interface": "eth1"
Имя интерфейса, на котором модуль ядра будет собирать трафик для данной ListenArea.
        }, 
 
        "http": {
 
            "MaxClient": 16, 
Сколько агентов можно одновременно подключить к одной ListenArea.
            "Rules": [
Цепочка последовательно применяемых правил выбора пакетов, захватываемых для данной ListenArea. Для каждого пакета применяется первое правило, под которое он подошел.
                {
 
                    "LoPort": 80, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 80, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 443, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 443, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 3128, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 3128, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 8080, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 8080, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }, 
 
                {
 
                    "LoPort": 8888, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Адрес отправителя или получателя. Если и IP, и Mask не равны нулю, то должно выполняться следующее условие: IP & Mask == IP, где & - побитовое умножение.
                    "HiPort": 8888, 
Диапазон портов, к которым применяется данное правило. Принадлежность порта диапазону проверяется как: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

Правила применяются последовательно, и как только сработало одно из них, оставшиеся не применяются, так что если один и тот же пакет подходит под 2 правила, одно из которых DROP, а другое ACCEPT - применится первое в списке. Из операций поддерживаются только ACCEPT и DROP:

  • ACCEPT - прекратить проверку остальных правил, передать пакет на обработку
  • DROP - прекратить проверку остальных правил, прекратить обработку пакета
                    "Mask": "0.0.0.0"
Маска подсети
                }
 
            ], 
 
            "Balancer": "IpPref", 

Выбор оптимального типа нагрузки серверов Traffic Monitor, что позволяет избежать задержек в обработке данных и потерь пакетов данных:

  • По умолчанию InPref - распределение трафика между несколькими экземплярами сервера осуществляется на основании source_ip перехваченной сессии (весь трафик клиента для указанных портов обрабатывается только один сервером), максимальное количество агентов, между которыми будет распределяться трафик задается параметром MaxClient.
  • В режиме Easy нет ограничений по распределению перехваченных сессий между серверами, и выбирается сервер с наименьшей нагрузкой (не по CPU, а количеству принимаемого трафика от сниффера).
            "Timeouts": {
Таймауты для обработки TCP-соединений, перехватываемых для данной ListenArea.
                "OpenInSec": 120, 
Сколько ждать согласования открытия сессии (т.е. ответного SYN,ACK).
                "TailInSec": 15, 
После закрытия соединения могут приходить подтверждения или повторы. Пакеты с теми же параметрами, что и у закрытой сессии, приходящие в указанный промежуток времени (сек) после закрытия, будут отнесены к ней.
                "CloseInSec": 120, 
Сколько ждать согласования закрытия сессии (ответного FIN).
                "LiveInSec": 3600
Максимальный разрыв между временем поступления новых пакетов для открытой сессии.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Сколько всего памяти могут занимать данные, готовые к отправке и собранные в данной ListenArea. Эта память делится между подключенными агентами.
            "Interface": "eth1"
Имя интерфейса, на котором модуль ядра будет собирать трафик для данной ListenArea.
        }
 
    }
 
}
 


Unit-файл iw_sniffer.service 

Код
Описание

[Unit]

Раздел для определения метаданных демона и настройки его взаимодействия с другими демонами
Description=InfoWatch Traffic Monitor Sniffer

Название демона

After=network-online.service iwtm-consul.service Демоны, которые будут запущены до запуска текущего демона
  
[Service]Раздел настройки запуска демона

Type=simple

Тип запуска демона. simple - демон запускается и переходит в режим ожидания на консоли

PermissionsStartOnly=true

Запуск команд из ExecStartPre под пользователем root
ExecStartPre=/usr/sbin/modprobe tmcapПолный путь и аргументы команды, которые должны быть выполнены до запуска основного процесса. В данном случае - загрузка и выгрузка модуля ядра tmcap при запуске и остановке iw_sniffer
ExecStartPre=/usr/sbin/setcap cap_net_admin+ep /opt/iw/tm5/bin/snifferПолный путь и аргументы команды, которые должны быть выполнены до запуска основного процесса

ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_sniffer

Полный путь и аргументы команды, которые должны быть выполнены до запуска основного процесса

ExecStart=/opt/iw/tm5/bin/iw_sniffer -p /opt/iw/tm5/etc --backend $DB_BACKEND

Полный путь и аргументы команды, которая должна быть выполнена для запуска демона. Запускается от пользователя, указанного в User
#ExecStart=/usr/sbin/ip link set ens192promisc onКомментарий . Для отладки
#ExecStart=/bin/bash -e "ip link set ens192promisc on"Комментарий . Для отладки

ExecStop=/bin/kill -s SIGQUIT $MAINPID

Команда для остановки демона. Если не указано, процесс будет немедленно уничтожен, когда демон будет остановлен. Запускается от пользователя, указанного в User

ExecReload=/bin/kill -s SIGHUP $MAINPID

Команда для перезагрузки конфигурации демона, если она доступна. Запускается от пользователя, указанного в User

Restart=on-failure

Команда для рестарта демона, если он остановится или упадет. Значение on-failure означает, что демон будет перезапускаться, если он остановился с ненулевым кодом возврата или был завершен по сигналу (kill <pid_демона>)

RestartSec=5

Время ожидания перед попыткой перезапуска демона

RestartPreventExitStatus=SIGKILL

Команда, по которой можно принудительно завершить работу демона

TimeoutStopSec=0

Время, в течение которого система будет ждать остановки демона, прежде чем пометить его недоступный или завершенный принудительно

User=iwtm

Имя пользователя, от которого осуществляется запуск демона

Group=iwtm

Имя группы пользователя

LimitNOFILE=584000

Максимальное количество открытых файлов

LimitFSIZE=infinity

Максимальный размер файла (КБ). infinity - без ограничений

LimitNPROC=65536

Максимальное количество процессов

LimitCORE=infinity

Ограничение на размер coredump-файла (КБ)

LimitMEMLOCK=infinity

Максимальное заблокированное в памяти адресное пространство (КБ)

Nice=-17

Приоритет, который пользователь хотел бы назначить данному процессу. Чем ниже число, тем выше приоритет выполнения и тем реже планировщик задач будет его прерывать. Изменяется от -20 (высший) до +19 (низший).
AmbientCapabilites=CAP_NET_ADMINПривилегия, позволяющая демону выполнять различные операции, связанные с сетью: настраивать сетевой интерфейс, межсетевой экран, изменить таблицы маршрутизации и др.
  

[Install]

Определение поведения демона, если он включен или отключен

WantedBy=multi-user.target

Запускать этот демон, когда система грузится в multi-user режиме
Sv translation
languageen

The sniffer.conf configuration file:

ContentDescription
{
 
    "Use": {
 
        "SessionDump": false
If the intercepted packs, distributed by sessions are to be saved. Used for debugging purposes. SessionDump configuration part 1.
    }, 
 
    "Statistics": {...},
see General section Statistics
    "Logging": {...},
see General section Logging
    "iscp": {
 
 "TCPKeepaliveProbing": {
Monitoring of connection activity section
"ProbesIntervalSec": 230,
The interval (seconds) that divides sending of keep alive packages
 "ProbesCount": 510,
Number of keep alive packages being sent
  "StartProbingInSec": 15300,
The time (seconds) during wich no connection activity is detected and after it passes, the system starts sending keep alive packages  
"Enabled": true
Option is enabled or disabled
   },
 
        "ListenPort": 4301
Server port, where listening process is running. Default value - 4101
    }, 
 
    "NookDir": "/opt/iw/tm5", 

In this section the module working directory is specified. By default – /opt/iw/tm5.

    "Niceness": -15, 
Priority value (nice) for streams handling iscp-protocol.
    "UsedAreas": [
Active filters from the list in the below section ListenAreas. Alternative, where every agent is to be connected to any ListenArea, is performed by title (set within sniffer client configuration - capstack or proxy). Inactive filters are assumed ( "pcap").
        "capstack", 
 
        "http", 
 
        "icq", 
 
        "smtp"
 
    ], 
 
"UnsafeSignalHandlers":false
Unhandled signals support. Disabled by default (false). Once true is set, it is allowed to use unsafe handlers in code (e.g. SIGSEVG). Adding, enabling/disabling this parameter is not recommended without consultation with developers.
    "DebugBreak": false, 
If SIGTRAP should be sent (SIGBREAK to Windows) while any exception handling. Used for debugging purposes.
    "SessionDump": {
SessionDump configuration part 2.
        "BaseDirectory": "snif-sessions"
Intercepted sessions storage location (if SessionDump = true).
    }, 
 
    "DumpFileDir": "dump-all", 
NOT USED
    "ListenAreas": {
Every ListenArea - is a filter to select handling packs. The source of packs is a network interface (through tmcap core module) or pcap-file. ListenArea names are used by agents while connecting to sniffer.
        "capstack": {
 
            "MaxClient": 16, 
The number of clients to be connected to one ListenArea at one time.
            "Rules": [
Chain of applied in sequence rules to choose the packs, captured for ListenArea given. The first rule is applied for every pack, where it suits.
                {
 
                    "LoPort": 110, 
Range of ports, where thу given rule is applied to. Port affiliation to the range is verified this way: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 110, 
Range of ports, where the given rule is applied to. Port affiliation to the range is verified this way: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 143, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 143, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 993, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 993, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 1352, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 1352, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }
 
            ], 
 
            "Balancer": "IpPref", 

Selecting balanced type of workload for Traffic Monitor servers, to avoid data processing delay and data packs loss.

  • By default InPref - traffic distribution between few server instances is performed basing on the source_ip intercepted session (all client's traffic is processed by only one server), the maximum number of agents, where the traffic is to be distributed is set by MaxClient parameter.
  • In Easy mode there are no limits on intercepted sessions distribution between servers, and the server with the lowest load is taken (not by CPU, but the amount of traffic from sniffer).
            "Timeouts": {
Timeouts to handle TCP connections, intercepted for the given ListenArea.
                "OpenInSec": 120, 
Time to get approval for session opening (response SYN, ACK).
                "TailInSec": 15, 
After the connection is closed, confirmations and replays may occur. Packs with the same parameters that the closed session has, coming after the closure within the period specified will belong to the closed one.
                "CloseInSec": 120, 
Time to get approval for session closure (response FIN).
                "LiveInSec": 3600
Maximum time break between new packs arrival for open sessions.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Data memory capacity, ready to upload and collected within the given ListenArea. This memory is to be distributed between connected agents.
            "Interface": ""
Network interface name, where the core module will collect traffic for the given ListenArea. The value is provided manually in each case.
        }, 
 
        "pcap": {
 
            "Timeouts": {
Timeouts to handle TCP-connections intercepted for the given ListenArea.
                "OpenInSec": 120, 
Time to get approval for session opening (response SYN, ACK).
                "TailInSec": 15, 
Packs expectation time (sec) to be delivered after the connection closure. In this case, confirmations and replays may occur. Packs with parameters, similar to closed session parameters and coming after the closure within the period specified will belong to the closed one.
                "CloseInSec": 120, 
Time to get approval for session closure (response FIN).
                "LiveInSec": 3600
Maximum time break between new packs arrival for open session.
            }, 
 
            "PcapFile": "input.pcap", 
Path to dump traffic file ( PcapFile or Interface can be specified at a time).
            "MaxClient": 16, 
Number of agents to be connected at a time to one ListenArea.
            "Balancer": "IpPref"

Selecting balanced type of workload for Traffic Monitor servers, to avoid data processing delay and data packs loss. By default - InPref (traffic distribution between few server instances).

 

 

  • By default InPref - traffic distribution between few server instances is performed basing on source_ip intercepted session (all client's traffic is processed by only one server), maximum number of agents, where the traffic is to be distributed is set by MaxClient parameter.
  • In Easy mode there are no limits on intercepted sessions distribution between servers, and the server with the lowest load is taken (not by CPU, but the amount of traffic from sniffer).
        }, 
 
        "icq": {
 
            "MaxClient": 16, 
Number of agents to be connected at a time to one ListenArea.
            "Rules": [
Chain of packs selection rules, consistently applied, captured for the given ListenArea. Every pack is under the first rule capable for it.
                {
 
                    "LoPort": 443, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 443, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 5190, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 5190, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }
 
            ], 
 
            "Balancer": "IpPref", 

Selecting balanced type of workload for Traffic Monitor servers, to avoid data processing delay and data packs loss.

  • By default InPref - traffic distribution between few server instances is performed basing on source_ip intercepted session (all client's traffic is processed by only one server), maximum number of agents, where the traffic is to be distributed is set by MaxClient parameter.
  • In Easy mode, there are no limits on intercepted sessions distribution between servers, and the server with the lowest load is taken (not by CPU, but the amount of traffic from sniffer).
            "Timeouts": {
Timeouts to handle TCP connections intercepted for the given ListenArea.
                "OpenInSec": 120, 
Time to get approval for session opening (response SYN, ACK).
                "TailInSec": 15, 
After the connection is closed, confirmations and replays may occur. Packs with the same parameters that the closed session has, coming after the closure within the period specified will belong to the closed one.
                "CloseInSec": 120, 
Time to get approval for session closure (response FIN).
                "LiveInSec": 86400
Maximum time break between new packs arrival for open session.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Data memory capacity, ready to upload and collected within the given ListenArea. This memory is to be distributed between connected agents.
            "Interface": "eth1"
Interface name, where the core module will collect traffic for the given ListenArea.
        }, 
 
        "smtp": {
 
            "MaxClient": 16, 
Number of agents to be connected at a time to one ListenArea.
            "Rules": [
Chain of packs selection rules, consistently applied, captured for the given ListenArea. Every pack is under the first rule capable for it.
                {
 
                    "LoPort": 25, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 25, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet connection
                }
 
            ], 
 
            "Balancer": "IpPref", 

Selecting balanced type of workload for Traffic Monitor servers, to avoid data processing delay and data packs loss.

  • By default InPref - traffic distribution between few server instances is performed basing on source_ip intercepted session (all client's traffic is processed by only one server), maximum number of agents, where the traffic is to be distributed is set by MaxClient parameter.
  • In Easy mode there are no limits on intercepted sessions distribution between servers, and the server with the lowest load is taken (not by CPU, but the amount of traffic from sniffer).
            "Timeouts": {
Timeouts to handle TCP connections, intercepted for the given ListenArea.
                "OpenInSec": 120, 
Time to get approval for session opening (response SYN, ACK).
                "TailInSec": 15, 
After the connection is closed, confirmations and replays may occur. Packs with the same parameters that the closed session has, coming after the closure within the period specified will belong to the closed one.
                "CloseInSec": 120, 
Time to get approval for session closure (response FIN).
                "LiveInSec": 3600
Maximum time break between new packs arrival for open session.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Data memory capacity, ready to upload and collected within the given ListenArea. This memory is to be distributed between connected agents.
            "Interface": "eth1"
Interface name, where the core module will collect traffic for the given ListenArea.
        }, 
 
        "http": {
 
            "MaxClient": 16, 
Number of agents to be connected at a time to one ListenArea.
            "Rules": [
Chain of packs selection rules, consistently applied, captured for the given ListenArea. Every pack is under the first rule capable for it.
                {
 
                    "LoPort": 80, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 80, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 443, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 443, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 3128, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 3128, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 8080, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 8080, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }, 
 
                {
 
                    "LoPort": 8888, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "IP": "0.0.0.0", 
Sender or receiver address. If IP and Mask are not equal to zero, the following condition should be met: IP & Mask == IP, where & - bit-by-bit multiplication.
                    "HiPort": 8888, 
Range of ports, where the given rule is applied. To check where the port belongs to: LoPort <= portnum <= HiPort.
                    "Policy": "ACCEPT", 

The rules are applied in sequence and when one of them is affected the rest are not applied, so if one pack is suitable for 2 rules, where one is DROP and the other is ACCEPT - the first from the list to be applied. From operation only ACCEPT and DROP are supported:

  • ACCEPT - stop checking the rest of rules, pass the pack for handling 
  • DROP - stop checking the rest of rules, stop handling the pack
                    "Mask": "0.0.0.0"
Subnet mask
                }
 
            ], 
 
            "Balancer": "IpPref", 

Selecting balanced type of workload for Traffic Monitor servers, to avoid data processing delay and data packs loss.

  • By default InPref - traffic distribution between few server instances is performed basing on source_ip intercepted session (all client's traffic is processed by only one server), maximum number of agents, where the traffic is to be distributed is set by MaxClient parameter.
  • In Easy mode there are no limits on intercepted sessions distribution between servers, and the server with the lowest load is taken (not by CPU, but the amount of traffic from sniffer).
            "Timeouts": {
Timeouts to handle TCP connections intercepted for the given ListenArea.
                "OpenInSec": 120, 
Time to get approval for session opening (response SYN, ACK).
                "TailInSec": 15, 
After the connection is closed, confirmations and replays may occur. Packs with the same parameters that the closed session has, coming after the closure within the period specified will belong to the closed one.
                "CloseInSec": 120, 
Time to get approval for session closure (response FIN).
                "LiveInSec": 3600
Maximum time break between new packs arrival for open session.
            }, 
 
            "QueueMemorySizeInBytes": 67108864, 
Data memory capacity, ready to upload and collected within the given ListenArea. This memory is to be distributed between connected agents.
            "Interface": "eth1"
Interface name, where the core module will collect traffic for the given ListenArea.
        }
 
    } 
 
}
 

The iw_sniffer.service  unit file:

CodeDescription

[Unit]

A section where the daemon metadata is determined and interaction settings with other daemons are specified
Description=InfoWatch Traffic Monitor Sniffer

The daemon name

After=network-online.service iwtm-consul.service Daemons that will be started before the current one
  
[Service]A section where the daemon start settings are specified

Type=simple

Daemon start type. simple - the daemon is started and goes into standby on the console

PermissionsStartOnly=true

Running commands from ExecStartPre under root
ExecStartPre=/usr/sbin/modprobe tmcapThe full path and command arguments that should be executed before the main process is started. Here: - loading and unloading tmcap kernel module when iw_sniffer is started or stopped
ExecStartPre=/usr/sbin/setcap cap_net_admin+ep /opt/iw/tm5/bin/snifferThe full path and command arguments that should be executed before the main process is started

ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_sniffer

The full path and command arguments that should be executed before the main process is started

ExecStart=/opt/iw/tm5/bin/iw_sniffer -p /opt/iw/tm5/etc --backend $DB_BACKEND

The full path and command arguments that should be executed before starting the daemon. The command is run under user specified in the User field
#ExecStart=/usr/sbin/ip link set ens192promisc onA comment. Is used for debug purposes
#ExecStart=/bin/bash -e "ip link set ens192promisc on"A comment. Is used for debug purposes

ExecStop=/bin/kill -s SIGQUIT $MAINPID

A command to stop the daemon. If the command is not specified, the process will be killed once the daemon is stopped. The command is run under user specified in the User field

ExecReload=/bin/kill -s SIGHUP $MAINPID

A command that reloads the daemon configuration if it is available. The command is run under user specified in the User field

Restart=on-failure

A command that restarts the daemon when it stops or crashes. The on-failure value indicates that the daemon will be restarted if it has stopped with a non-zero return code or was ended by signal (kill <daemon_pid>)

RestartSec=5

A timeout before attempting to restart the daemon

RestartPreventExitStatus=SIGKILL

A command that forcibly ends the daemon operation

TimeoutStopSec=0

The time during which the system waits for the signal to stop before marking the process as unavailable or terminated

User=iwtm

The name of the user under whose account the daemon is started

Group=iwtm

Name of the user group

LimitNOFILE=584000

The maximum number of open files

LimitFSIZE=infinity

The maximum size of a file (KB). The infinity value means that the size is unlimited

LimitNPROC=65536

The maximum number of processes

LimitCORE=infinity

Limit for core dump size (KB)

LimitMEMLOCK=infinity

The maximum size of memory locked address space (KB)

Nice=-17

A priority that a user sets for the process. The lower the number, the higher the priority of execution is and the less often the task manager will interrupt the process. The range is from -20 (the highest) to +19 (the lowest).
AmbientCapabilites=CAP_NET_ADMINA privilege that allows the daemon to perform network-related operations: configure a network interface, firewall, change routing tables, etc.
  

[Install]

Defines the behavior of a daemon when it is enabled/disabled

WantedBy=multi-user.target

Start the daemon when the system is loaded in multi-user mode