{"id":780,"date":"2026-09-17T21:39:36","date_gmt":"2026-09-17T18:39:36","guid":{"rendered":"https:\/\/imaxis.ru\/?p=780"},"modified":"2026-09-18T00:06:04","modified_gmt":"2026-09-17T21:06:04","slug":"ustanovka-i-nastroyka-suricata-8-na-ubuntu-ids-ips-dlya-zaschity-seti","status":"publish","type":"post","link":"https:\/\/imaxis.ru\/?p=780","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Suricata 8 \u043d\u0430 Ubuntu: IDS\/IPS \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0441\u0435\u0442\u0438"},"content":{"rendered":"<h1>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Suricata 8 \u043d\u0430 Ubuntu: IDS\/IPS \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0441\u0435\u0442\u0438<\/h1>\n<p>Suricata \u2014 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 IDS (\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u0439), IPS (\u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435) \u0438 NSM (\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438). \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 \u0441\u0442\u0438\u043b\u0435 Snort \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a \u0432 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u2014 \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0430. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0438 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043f\u0440\u0430\u0432\u0438\u043b \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<hr \/>\n<h2>\u0420\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0443\u0436\u043d\u0430, \u0432\u0430\u0436\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c\u044b:<\/p>\n<ul>\n<li><strong>IDS<\/strong> \u2014 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0430\u0442\u0430\u043a\u0438, \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044f \u0438\u0445.<\/li>\n<li><strong>IPS<\/strong> \u2014 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a.<\/li>\n<li><strong>NSM<\/strong> \u2014 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u043e\u043c.<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b Suricata \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0442\u043e\u044f\u0442\u044c \u043d\u0430 \u043f\u0443\u0442\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u2014 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c (\u0448\u043b\u044e\u0437). \u041f\u043e\u0434 Linux \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430:<\/p>\n<ul>\n<li><strong>NFQUEUE<\/strong> \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u044f\u0434\u0440\u0430 (iptables\/nftables). \u041f\u0440\u043e\u0449\u0435 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435.<\/li>\n<li><strong>AF_PACKET<\/strong> \u2014 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c. \u0411\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0448\u043b\u044e\u0437\u043e\u043c.<\/li>\n<\/ul>\n<p>\u0418\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Ubuntu Suricata \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 NFQUEUE. \u0414\u043b\u044f AF_PACKET \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0445\u043e\u0442\u044f \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 (7.x\/8.x) AF_PACKET \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0432 \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>\u0414\u043b\u044f IDS\/NSM \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043f\u0443\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u2014 \u043c\u043e\u0436\u043d\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0447\u0435\u0440\u0435\u0437 SPAN-\u043f\u043e\u0440\u0442 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430.<\/p>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h2>\n<p>Suricata \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430 \u043a \u0442\u043e\u0447\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438 timestamps \u0441\u0442\u0440\u043e\u044f\u0442\u0441\u044f \u043d\u0430 \u043d\u0451\u043c.<\/p>\n<pre><code class=\"language-bash\">timedatectl set-timezone Europe\/Moscow\n# \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043e\u043d: timedatectl list-timezones\n<\/code><\/pre>\n<pre><code class=\"language-bash\">apt-get install chrony\nsystemctl enable chrony\n<\/code><\/pre>\n<hr \/>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/h2>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430 Ubuntu 24.04\/26.04:<\/p>\n<pre><code class=\"language-bash\">apt-get install software-properties-common\nadd-apt-repository ppa:oisf\/suricata-stable\n<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Enter<\/strong>, \u0437\u0430\u0442\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">apt-get update\napt-get install suricata\nsystemctl enable suricata\n<\/code><\/pre>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2014 <strong>Suricata 8.0.6<\/strong> (\u0438\u044e\u043b\u044c 2026). \u0418\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Ubuntu 24.04 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f 7.x \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u2014 \u043e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043b\u0443\u0447\u0448\u0435 PPA-\u043a\u0430\u043d\u0430\u043b.<\/p>\n<hr \/>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432<\/h2>\n<p>\u041d\u0443\u0436\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u043f\u0446\u0438\u044f\u043c\u0438: CUDA (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 GPU \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f), \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0438\u043b\u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u0430\u0442\u0447\u0438.<\/p>\n<h3>1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0441\u0431\u043e\u0440\u043a\u0435<\/h3>\n<pre><code class=\"language-bash\">apt-get install libpcre3 libpcre3-dev build-essential autoconf automake libtool \n    libpcap-dev libnet1-dev libyaml-dev zlib1g-dev libcap-ng-dev make \n    libmagic-dev libjansson-dev pkg-config rustc cargo\n<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0440\u0435\u0436\u0438\u043c\u0430 IPS \u0442\u0430\u043a\u0436\u0435:<\/p>\n<pre><code class=\"language-bash\">apt-get install libnetfilter-queue-dev libnetfilter-queue1 libnfnetlink-dev libnfnetlink0\n<\/code><\/pre>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 <a href=\"https:\/\/openinfosecfoundation.org\/download\/\">openinfosecfoundation.org\/download\/<\/a>:<\/p>\n<pre><code class=\"language-bash\">wget https:\/\/openinfosecfoundation.org\/download\/suricata-8.0.6.tar.gz\ntar zxvf suricata-8.0.6.tar.gz\ncd suricata-8.0.6\n<\/code><\/pre>\n<h3>2. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>\u0414\u043b\u044f IDS:<\/p>\n<pre><code class=\"language-bash\">.\/configure --prefix=\/usr --sysconfdir=\/etc --localstatedir=\/var\n<\/code><\/pre>\n<p>\u0414\u043b\u044f IPS (\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u043f\u0430\u043a\u0435\u0442\u043e\u0432):<\/p>\n<pre><code class=\"language-bash\">.\/configure --enable-af-packet --prefix=\/usr --sysconfdir=\/etc --localstatedir=\/var\n<\/code><\/pre>\n<blockquote>\n<p>\u0427\u0442\u043e\u0431\u044b IPS \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043d\u0443\u0436\u043d\u0430 \u043e\u043f\u0446\u0438\u044f <code>--enable-af-packet<\/code> \u043b\u0438\u0431\u043e <code>--enable-nfqueue<\/code>.<\/p>\n<\/blockquote>\n<pre><code class=\"language-bash\">make\nmake install\nmake install-conf\n<\/code><\/pre>\n<p>\u0423\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b:<\/p>\n<pre><code class=\"language-bash\">apt-get install python3-pip\npip3 install --upgrade suricata-update\n<\/code><\/pre>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/h2>\n<h3>1. \u0424\u0430\u0439\u043b \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p><code>vi \/etc\/default\/suricata<\/code>:<\/p>\n<pre><code class=\"language-ini\">RUN=yes\nRUN_AS_USER=suricata\nSURCONF=\/etc\/suricata\/suricata.yaml\nLISTENMODE=af-packet\nIFACE=enp0s3\nNFQUEUE=&quot;-q 0&quot;\nCUSTOM_NFQUEUE=&quot;-q 0 -q 1 -q 2 -q 3&quot;\nPIDFILE=\/var\/run\/suricata.pid\n<\/code><\/pre>\n<h3>2. \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0432\u044b\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b<\/h3>\n<pre><code class=\"language-bash\"># \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432\nsuricata-update update-sources\n\n# \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\/\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\nsuricata-update\n<\/code><\/pre>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u043e\u0440 <strong>Emerging Threats (Open)<\/strong>. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>enable-source<\/code>.<\/p>\n<h3>3. \u0421\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/h3>\n<p>\u0423\u0437\u043d\u0430\u0451\u043c \u0438\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:<\/p>\n<pre><code class=\"language-bash\">ip a\n<\/code><\/pre>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445. \u0412 <code>vi \/etc\/default\/suricata<\/code>:<\/p>\n<pre><code>IFACE=enp0s3\n<\/code><\/pre>\n<p>\u0412 <code>vi \/etc\/suricata\/suricata.yaml<\/code> \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432 \u0441\u0435\u043a\u0446\u0438\u044f\u0445 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430:<\/p>\n<pre><code class=\"language-yaml\">af-packet:\n  - interface: enp0s3\n\npcap:\n  - interface: enp0s3\n<\/code><\/pre>\n<h3>4. \u0417\u0430\u043f\u0443\u0441\u043a<\/h3>\n<pre><code class=\"language-bash\">systemctl daemon-reload\nsystemctl restart suricata\n<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0430:<\/p>\n<pre><code class=\"language-bash\">systemctl status suricata\njournalctl -u suricata -f\n<\/code><\/pre>\n<hr \/>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0442\u0440\u0430\u0444\u0438\u043a\u0430:<\/p>\n<pre><code class=\"language-bash\">suricata -T -c \/etc\/suricata\/suricata.yaml   # \u0442\u0435\u0441\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\nsuricata-update check                        # \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\n<\/code><\/pre>\n<p>C\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043b\u043e\u0433\u043e\u0432 (<code>\/var\/log\/suricata\/<\/code>): \u0444\u0430\u0439\u043b\u044b <code>fast.log<\/code>, <code>eve.json<\/code> (\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 JSON, \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f Grafana\/Loki \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439).<\/p>\n<hr \/>\n<h2>\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438, \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h2>\n<ul>\n<li><strong>Suricata 8 \u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/strong> \u2014 \u043d\u0430\u0431\u043e\u0440\u044b \u043f\u0440\u0430\u0432\u0438\u043b Emerging\/ET Open \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430; \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0435 \u0441 7.x \u043d\u0430 8.0 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 <code>suricata-update<\/code>.<\/li>\n<li><strong>\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 NFQUEUE<\/strong> \u2014 \u0435\u0441\u043b\u0438 IPS \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 AF_PACKET: \u043e\u043d \u0434\u0430\u0451\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u044b\u0445 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044f\u0445.<\/li>\n<li><strong>\u0414\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043b\u044f \u0448\u043b\u044e\u0437\u0430<\/strong> \u2014 \u0432 AF_PACKET \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0438\u0434\u0451\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445, \u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0414\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0448\u043b\u044e\u0437\u0430 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0440\u0435\u0436\u0438\u043c NFQUEUE.<\/li>\n<li><strong>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/strong> \u2014 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0441\u0432\u0435\u0440\u043a\u0430 \u0447\u0430\u0441\u043e\u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430; \u0441\u043d\u043e\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043b\u043e\u043c\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/li>\n<li><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0430\u043c\u0438<\/strong> \u2014 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 <code>suricata-update<\/code> \u0432 cron \u0438\u043b\u0438 systemd-timer, \u0438\u043d\u0430\u0447\u0435 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u0435\u0442.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b (cron)<\/h2>\n<pre><code class=\"language-bash\">crontab -e\n# \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438\n0 4 * * * suricata-update &amp;&amp; systemctl reload suricata\n<\/code><\/pre>\n<hr \/>\n<h2>\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/h2>\n<pre><code class=\"language-bash\">add-apt-repository ppa:oisf\/suricata-stable\napt-get update &amp;&amp; apt-get install suricata\nsuricata-update update-sources\nsuricata-update\nvi \/etc\/suricata\/suricata.yaml   # af-packet -&gt; interface\nsystemctl restart suricata\n# \u0441\u0442\u0430\u0442\u0443\u0441: systemctl status suricata\n<\/code><\/pre>\n<p><em>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430: Ubuntu 22.04\/24.04\/26.04 + Suricata 8.0.6.<\/em><br \/>\n<em>\u0414\u0430\u0442\u0430: \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Suricata 8 \u043d\u0430 Ubuntu: IDS\/IPS \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-780","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":8,"_links":{"self":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=780"}],"version-history":[{"count":2,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions\/783"}],"wp:attachment":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}