{"id":291102,"date":"2018-10-20T22:45:03","date_gmt":"2018-10-20T18:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291102"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-10-20T18:45:03","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291102","title":{"rendered":"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u043e\u0433\u0438 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430 Mikrotik \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0431\u043e\u0440\u0430 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u041c\u0438\u043a\u0440\u043e\u0442\u0438\u043a.<\/p>\n<p>  <b>\u0426\u0435\u043b\u044c:<\/b> \u0426\u0435\u043b\u044c\u044e \u0431\u0443\u0434\u0435\u0442, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u00ab\u043f\u0435\u0440\u0435\u0436\u0435\u0432\u0430\u043d\u043d\u044b\u0445\u00bb \u043b\u043e\u0433\u043e\u0432 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>  <b>\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430:<\/b> \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043b\u044e\u0431\u043e\u0439 \u0441\u0432\u0435\u0436\u0438\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Linux \u0441 rsyslogd v8 \u0438 \u0432\u044b\u0448\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 v7. \u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0421\u0423\u0411\u0414, \u044f \u0432\u044b\u0431\u0440\u0430\u043b mariadb. \u041f\u0440\u0438\u0440\u043e\u0441\u0442 \u0411\u0414 \u0431\u0443\u0434\u0435\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0430\u0448\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f 30-40 \u043f\u0440\u0430\u0432\u0438\u043b, \u0447\u0442\u043e \u0432 \u0434\u0435\u043d\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1200 \u0442\u044b\u0441\u044f\u0447 \u0441\u0442\u0440\u043e\u043a. \u0417\u0430 \u043c\u0435\u0441\u044f\u0446 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0411\u0414 \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0434\u043e 3,8\u0413\u0431.<\/p>\n<p>  <b>\u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430:<\/b> \u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043b\u043e\u0433 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e UDP. \u0421\u0435\u0440\u0432\u0435\u0440 rsyslog \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0441\u0442\u0440\u043e\u043a \u043e\u0442 \u043b\u0438\u0448\u043d\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 SQL \u0432\u0441\u0442\u0430\u0432\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0451 \u0432 \u0421\u0423\u0411\u0414. \u0421\u0423\u0411\u0414, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0434\u043e \u0432\u0441\u0442\u0430\u0432\u043a\u0438, \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0432 rsyslog.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c RSYSLOG<\/b><\/h4>\n<p>  \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/rsyslog.conf<br \/>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>module(load=&quot;ommysql&quot;) module(load=&quot;imudp&quot;) input(type=&quot;imudp&quot; port=&quot;514&quot;) <\/code><\/pre>\n<p>  \u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c 514 \u043f\u043e\u0440\u0442 UDP.<\/p>\n<p>  \u0421\u0442\u0440\u043e\u043a\u0430 \u043b\u043e\u0433\u0430 \u043e\u0442 \u041c\u0438\u043a\u0440\u043e\u0442\u0438\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>20180927155341  BLOCKSMKNETS forward: in:ether6 - LocalTORF out:VLAN55 - RT_INET, src-mac 00:15:17:31:b8:d7, proto TCP (SYN), 192.168.0.234:2457-&gt;192.168.6.14:65535, len 60<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u043c\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432 \u0411\u0414 \u0438 \u0432\u043d\u044f\u0442\u043d\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0430.<br \/>  \u041f\u043e \u0438\u0434\u0435\u0435, \u043c\u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code>20180927155341 ether6 VLAN5 192.168.0.234 2457 192.168.6.14 65535 00:15:17:31:b8:d7 TCP forward BLOCKSMKNETS 60<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e rsyslog \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438 rsyslog \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 POSIX ERE\/BRE, \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0444\u0438\u0447\u0438 \u043a\u0430\u043a, lookahead \u0438\u043b\u0438 lookbehind. <\/p>\n<p>  <a href=\"https:\/\/www.rsyslog.com\/regex\/\">\u0422\u0443\u0442<\/a> \u0435\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u043a, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0440\u0442 \u043e\u0442 \u0430\u0434\u0440\u0435\u0441\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043e\u0442 in: \u0438 out:. \u0422\u043e\u043b\u044c\u043a\u043e \u0443\u0447\u0442\u0438\u0442\u0435 \u0447\u0442\u043e \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 sport \u0438 dport \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442.<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a:<\/p>\n<pre><code>20180927155341 in:ether6 out:VLAN5 192.168.0.234:2457 192.168.6.14:65535 00:15:17:31:b8:d7 TCP forward BLOCKSMKNETS 60<\/code><\/pre>\n<p>  <a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/property_replacer.html\">\u0422\u0443\u0442<\/a> \u0435\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a\u0430\u043a \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438 rsyslog.<\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u0435\u043c\u0430 \u043b\u043e\u0433\u0430 \u043e\u0442 \u041c\u0438\u043a\u0440\u043e\u0442\u0438\u043a\u0430 \/etc\/rsyslog.d\/20-remote.conf \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code>$template tpl_traflog,&quot;insert into traflog.traffic (datetime, inif, outif, src, dst, smac, proto, chain, logpref, len) values ('%timereported:::date-mysql%', '%msg:R,ERE,0,BLANK,0:in:[a-zA-Z]+[0-9]+|in:&lt;[a-zA-Z]+-[a-zA-Z]+&gt;--end%', '%msg:R,ERE,0,BLANK,0:out:[a-zA-Z]+[0-9]+|out:&lt;[a-zA-Z]+-[a-zA-Z]+&gt;--end%', '%msg:R,ERE,0,BLANK,0:([0-9]+\\.){3}[0-9]+[:]?([0-9]+)?--end%', '%msg:R,ERE,0,BLANK,1:([0-9]+\\.){3}[0-9]+[:]?([0-9]+)?--end%', '%msg:R,ERE,0,BLANK:([0-f]+:){5}[0-f]+--end%', '%msg:R,ERE,0,DFLT:\\b[A-X]{3,4}\\b--end%', '%msg:R,ERE,0,BLANK:[a-x]+--end%', '%msg:F,32:2%', '%msg:R,ERE,0,BLANK:[0-9]+$--end%' )&quot;,SQL if ($fromhost-ip == '192.168.0.230') then {action(type=&quot;ommysql&quot; server=&quot;localhost&quot; serverport=&quot;3306&quot; db=&quot;traflog&quot; uid=&quot;rsyslogger&quot; pwd=&quot;...&quot; template=&quot;tpl_traflog&quot;) stop} <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430(template) \u2014 \u0441\u0442\u0440\u043e\u043a\u0430 SQL \u043a\u043e\u0434\u0430, \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0435\u0451 \u0432 \u0421\u0423\u0411\u0414.<br \/>  \u0412\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u044d\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0421\u0423\u0411\u0414. <br \/>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: \u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043b\u043e\u0433\u0430 = 192.168.0.230 (<code>if ($fromhost-ip == '192.168.0.230')<\/code>), \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u043e\u0434\u0443\u043b\u044c ommysql \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (<code>then {action(type=&quot;ommysql&quot; server=&quot;localhost&quot; serverport=&quot;3306&quot; db=&quot;traflog&quot; uid=&quot;rsyslogger&quot; pwd=&quot;...&quot; <\/code>) \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d tpl_traflog (<code>template=&quot;tpl_traflog&quot;)<\/code>), \u0430 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 (<code>stop}<\/code>).<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u043f\u043e\u0439\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u043c\u0438 \u043b\u043e\u0433\u043e\u0432, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435. \u0414\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435, \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438 \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<pre><code>$template tpl_traflog_test,&quot;'%timereported:::date-mysql%', '%msg:R,ERE,0,BLANK,0:in:[a-zA-Z]+[0-9]+|in:&lt;[a-zA-Z]+-[a-zA-Z]+&gt;--end%', '%msg:R,ERE,0,BLANK,0:out:[a-zA-Z]+[0-9]+|out:&lt;[a-zA-Z]+-[a-zA-Z]+&gt;--end%', '%msg:R,ERE,0,BLANK,0:([0-9]+\\.){3}[0-9]+[:]?([0-9]+)?--end%', '%msg:R,ERE,0,BLANK,1:([0-9]+\\.){3}[0-9]+[:]?([0-9]+)?--end%', '%msg:R,ERE,0,BLANK:([0-f]+:){5}[0-f]+--end%', '%msg:R,ERE,0,BLANK:\\b[A-X]{3,4}\\b--end%', '%msg:R,ERE,0,BLANK:[a-x]+--end%', '%msg:F,32:2%', '%msg:R,ERE,0,BLANK:[0-9]+$--end%' &quot; if ($fromhost-ip == '192.168.0.230') then {action(type=&quot;omfile&quot; file=&quot;\/var\/log\/remote\/192.168.0.230.log&quot; )} if ($fromhost-ip == '192.168.0.230') then {action(type=&quot;omfile&quot; file=&quot;\/var\/log\/remote\/192.168.0.230.log&quot; template=&quot;tpl_traflog_test&quot; ) stop}<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043b\u043e\u0433\u0433\u0435\u0440.<\/p>\n<p>  \u0428\u0430\u0431\u043b\u043e\u043d tpl_traflog_test \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d tpl_traflog \u043d\u043e \u0431\u0435\u0437 SQL INSERT.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 %msg% \u0432 \u0444\u0430\u0439\u043b \/var\/log\/remote\/192.168.0.230.log.<\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0442\u043e\u0442 \u0436\u0435 \u0444\u0430\u0439\u043b. \u0422\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h4><b>\u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0411\u0414<\/b><\/h4>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0421\u0423\u0411\u0414 \u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0442\u0443\u0442 \u0432\u0441\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c mysql \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"sql\">--\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 create database traflog character set utf8 collate utf8_bin; use traflog;  --\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 create table traffic (id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, datetime DATETIME, inif VARCHAR(20), outif VARCHAR(20), src VARCHAR(21), sport INT(5), dst VARCHAR(21), dport INT(5), smac VARCHAR(17), proto VARCHAR(4), chain VARCHAR(8), logpref VARCHAR(24), len INT(5)) ENGINE=MYISAM;  --\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f create user rsyslogger@localhost identified by '...'; grant all privileges on traflog.* to rsyslogger@localhost; <\/code><\/pre>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0433\u043e\u0442\u043e\u0432\u0430, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0435\u0441\u0442\u044c.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440, \u043e\u043d \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043b\u043e\u0433\u0433\u0435\u0440\u0443, \u043e\u0442\u0434\u0435\u043b\u0438\u0442 \u0430\u0434\u0440\u0435\u0441 \u043e\u0442 \u043f\u043e\u0440\u0442\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432:<\/p>\n<pre><code class=\"sql\">--\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440 DELIMITER \/\/ create TRIGGER delim_ip_port BEFORE insert ON traffic FOR EACH ROW begin set NEW.inif = REGEXP_REPLACE ((NEW.inif), 'in:', '' ); set NEW.outif = REGEXP_REPLACE ((NEW.outif), 'out:', '' ); set NEW.sport = REGEXP_REPLACE ((NEW.src), '([0-9]+\\.){3}[0-9]+:|([0-9]+\\.){3}[0-9]+', '' ); set NEW.src = REGEXP_REPLACE ((NEW.src), ':[0-9]+', '' ); set NEW.dport = REGEXP_REPLACE ((NEW.dst), '([0-9]+\\.){3}[0-9]+:|([0-9]+\\.){3}[0-9]+', '' ); set NEW.dst = REGEXP_REPLACE ((NEW.dst), ':[0-9]+', '' ); end \/\/ delimiter ;<\/code><\/pre>\n<p>  REGEXP_REPLACE \u0438\u0449\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440(\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0443) \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430 \u0442\u0440\u0435\u0442\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u0435\u0440\u0435\u0442 \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0432\u0441\u0442\u0430\u0432\u043a\u0443, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0433\u0435\u0440:<\/p>\n<pre><code class=\"sql\">--\u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 insert into traffic (datetime, inif, outif, src, dst, smac, proto, chain, logpref) values (20180730075437, 'in:ether6', 'out:VLAN55', '192.168.0.234:4997', '192.168.6.18:65535', '00:15:17:31:b8:d7', 'TCP', 'forward', 'BLOCKSMKNETS');<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"sql\">select * from tarffic;<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432\u0435\u0440\u043d\u043e, \u0442\u043e\u0433\u0434\u0430 \u0438\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0438\u0449\u0435\u043c \u0432 \u0447\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0438\u043d\u0434\u0435\u043a\u0441. \u042f \u043d\u0435 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043d\u043e \u043a\u0430\u043a \u043f\u043e\u043d\u044f\u043b, \u0432 mysql \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0442\u044b\u043a\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u043d\u0434\u0435\u043a\u0441(\u0438\u043b\u0438 \u044f \u043d\u0435 \u043f\u0440\u0430\u0432?). \u0415\u0441\u043b\u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u044d\u0442\u043e\u0433\u043e:<\/p>\n<pre><code class=\"sql\">--\u0434\u043e\u0431\u0430\u043b\u0432\u044f\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441 create index traffic_index on traffic (src, dst, dport, datetime);<\/code><\/pre>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043b\u043e\u0433\u043e\u0432 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043a \u043d\u0435\u043c\u0443, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u043f\u0446\u0438\u044e log \u0432 \u043e\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0430\u0432\u0438\u043b \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 24 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043c\u0438\u043a\u0440\u043e\u0442\u0438\u043a\u0430 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>\/system logging action set 3 remote=192.168.0.94 src-address=192.168.0.230 add name=remote2 remote=192.168.0.19 syslog-facility=local6 target=remote \/system logging add action=remote topics=error,account,critical,event,info add action=remote2 topics=firewall  \/ip firewall filter ... add action=drop chain=input comment=&quot;drop ssh brute forcers&quot; dst-port=22,8291 log=yes log-prefix=DROP_SSH_BRUTE protocol=tcp src-address-list=ssh_blacklist ... <\/code><\/pre>\n<p>  \u0413\u0434\u0435 192.168.0.230 \u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430, 192.168.0.19 \u0430\u0434\u0440\u0435\u0441 \u043b\u043e\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u043b\u043e\u0433\u043e\u0432 \u0444\u0430\u0435\u0440\u0432\u043e\u043b, \u0430 192.168.0.94 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u043b\u043e\u0433 \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u0443\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0432\u0430\u043b\u044f\u0442\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043b\u043e\u0433\u0438 \u043c\u0438\u043a\u0440\u043e\u0442\u0438\u043a\u0430, \u043e\u043d \u043d\u0430\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u041d\u0430\u0448\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u044d\u0442\u043e remote2.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u043f\u043e\u0432\u0430\u043b\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b:<\/p>\n<pre><code>tail -f \/var\/log\/remote\/192.168.0.230.log<\/code><\/pre>\n<p>  \u0412 \u0444\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0441\u044b\u043f\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0430\u0441\u0442\u043e. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043f\u043e\u043b\u0435\u0439 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c datetime, inif, outif, src, dst, smac, proto, chain, logpref, len, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u043b\u043e\u0433\u0433\u0435\u0440\u0430, \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c BLANK \u043d\u0430 DLFT. \u0422\u043e\u0433\u0434\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0443\u0441\u0442\u043e\u0442\u044b \u043a\u0430\u043a\u043e\u0433\u043e \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u044f \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0431\u0443\u043a\u0432\u044b, \u043d\u0435\u043f\u043e\u043c\u043d\u044e \u0443\u0436\u0435 \u043a\u0430\u043a\u0438\u0435. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u0437\u043d\u0430\u0447\u0438\u0442 \u0441 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u043e\u0439 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0438 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u043e\u0448\u043b\u043e \u043a\u0430\u043a \u043d\u0430\u0434\u043e \u0442\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u0448\u0430\u0431\u043b\u043e\u043d.<\/p>\n<p>  \u0415\u0449\u0435 \u043d\u0430\u0434\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432 \/etc\/rsyslog.d\/ \u0441\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0438\u0436\u0435, \u044f \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u0432 50-default.conf, \u0434\u0430\u0431\u044b remote \u043b\u043e\u0433\u0438 \u043d\u0435 \u0441\u044b\u043f\u0430\u043b\u0438\u0441\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0436\u0443\u0440\u043d\u0430\u043b \/var\/log\/message<br \/>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043b\u043e\u0433\u0433\u0435\u0440.<\/p>\n<p>  \u041f\u043e\u0434\u043e\u0436\u0434\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u043f\u043e\u043a\u0430 \u043d\u0430\u0448\u0430 \u0411\u0414 \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0443.<\/p>\n<p>  <b>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430:<\/b><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0427\u0442\u043e \u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0411\u0414 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"sql\">MariaDB [traflog]&gt; select table_schema as &quot;database&quot;, round(sum(data_length + index_length)\/1024\/1024,2) as &quot;size Mb&quot;, TABLE_ROWS as &quot;count rows&quot; from information_schema.tables group by table_schema;        +--------------------+---------+------------+ | database           | size Mb | count rows | +--------------------+---------+------------+ | information_schema |    0.17 |       NULL | | traflog            | 3793.39 |   21839553 | +--------------------+---------+------------+ 2 rows in set (0.48 sec) <\/code><\/pre>\n<p>  \u0417\u0430 \u043c\u0435\u0441\u044f\u0446 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u043f\u043e\u0447\u0442\u0438 4\u0413\u0431, \u043d\u043e \u044d\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043b\u043e\u0433\u0433\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043b\u043e\u0433\u0433\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043b\u043e\u0433\u0433\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u043d\u0435 \u0440\u0430\u0432\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0430\u0432\u0438\u043b, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432? \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043d\u0438\u043c \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b?:<\/p>\n<pre><code class=\"sql\">MariaDB [traflog]&gt; select logpref,count(logpref) from traffic group by logpref order by count(logpref) desc; +----------------------+----------------+ | logpref              | count(logpref) | +----------------------+----------------+ | ACCEPT_TORF_INET     |       14582602 | | ACCEPT_SMK_PPP       |        1085791 | | DROP_FORWARD_INVALID |         982374 | | REJECT_BNK01         |         961503 | | ACCEPT_MMAX_TORF     |         802455 | | ACCEPT_TORF_PPP      |         736803 | | SMTP_DNAT            |         689533 | | ACCEPT_SMK_INET      |         451411 | | ACCEPT_INET_TORF     |         389857 | | BLOCK_SMKNETS        |         335424 | | DROP_SMTP_BRUTE      |         285850 | | ACCEPT_ROZN_TORF     |         154811 | | ACCEPT_TORF_MMAX     |         148393 | | DROP_ETHALL_ETHALL   |          80679 | | ACCEPT_SMTP          |          48921 | | DROP_SMTP_DDOS       |          32190 | | RDP_DNAT             |          28757 | | ACCEPT_TORF_ROZN     |          18456 | | SIP_DNAT             |          15494 | | 1CWEB_DNAT           |           6406 | | BLOCKSMKNETS         |           5789 | | DROP_SSH_BRUTE       |           3162 | | POP_DNAT             |           1997 | | DROP_RDP_BRUTE       |            442 | | DROP_BNK01           |            291 | | DROPALL              |            138 | | ACCEPT_RTP_FORWARD   |             90 | | REJECT_SMTP_BRUTE    |             72 | | L2TP_INPUT_ACCEPT    |             33 | +----------------------+----------------+ 29 rows in set (2 min 51.03 sec)<\/code><\/pre>\n<p>  ACCEPT_TORF_INET \u0432 \u043b\u0438\u0434\u0435\u0440\u0430\u0445, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u0441\u0445\u043e\u0434\u0438\u043b \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438\u0437 \u043d\u0430\u0448\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0438 \u043f\u043e\u0440\u0442\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b, \u043d\u0430\u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e\u0435-\u043a\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442. \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043e\u043f\u043e\u0440\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438.  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041b\u0438\u0434\u0435\u0440 smtp \u0442\u044b\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0442\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043a smtp \u0441\u0435\u0440\u0432\u0435\u0440\u0443:<\/p>\n<pre><code class=\"sql\">MariaDB [traflog]&gt; select src,count(dport) from traffic where logpref='SMTP_DNAT' and datetime &gt; '2018101600000000' group by src order by count(dport) desc limit 10; +----------------+--------------+ | src            | count(dport) | +----------------+--------------+ | 191.96.249.92  |        12440 | | 191.96.249.24  |         4556 | | 191.96.249.61  |         4537 | | 185.255.31.122 |         3119 | | 178.57.79.250  |          226 | | 185.36.81.174  |          216 | | 185.234.219.32 |          211 | | 89.248.162.145 |           40 | | 45.125.66.157  |           32 | | 188.165.124.31 |           21 | +----------------+--------------+ 10 rows in set, 1 warning (21.36 sec)<\/code><\/pre>\n<p>  \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0443\u0437\u0435\u043b 191.96.249.92 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044c. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043a\u0430\u043a\u0438\u0445 \u043b\u043e\u0433\u0433\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0445 \u043e\u043d \u0435\u0449\u0435 \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043b:<\/p>\n<pre><code class=\"sql\">MariaDB [traflog]&gt; select src,dport,count(dport),logpref from traffic where src='191.96.249.92' group by logpref order by count(dport) desc; +---------------+-------+--------------+-----------------+ | src           | dport | count(dport) | logpref         | +---------------+-------+--------------+-----------------+ | 191.96.249.92 |    25 |       226989 | SMTP_DNAT       | | 191.96.249.92 |    25 |       170714 | DROP_SMTP_BRUTE | | 191.96.249.92 |    25 |         2907 | DROP_SMTP_DDOS  | | 191.96.249.92 |    25 |         2061 | ACCEPT_SMTP     | +---------------+-------+--------------+-----------------+ 4 rows in set (10 min 44.21 sec) <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 smtp, ~1% \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0438\u043b\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0444\u0438\u0433\u043d\u0438, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0448\u043b\u043e \u0432 \u0431\u0430\u043d\u044e.<\/p>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f 10 \u043c\u0438\u043d\u0443\u0442 \u044d\u0442\u043e \u043c\u043d\u043e\u0433\u043e, \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u043d\u0435\u0433\u043e, \u043b\u0438\u0431\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441, \u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0431 \u044d\u0442\u043e\u043c.  <\/div>\n<\/div>\n<p>  \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u0442\u0438\u043f\u043e\u0432\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0430\u043c\u0438.<br \/>  \u0412\u0435\u043a\u0442\u043e\u0440 \u0437\u0430\u0434\u0430\u043d, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>  <b>\u0421\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b: <\/b><\/p>\n<p>  <a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e rsyslog <\/a><br \/>  <a href=\"https:\/\/mariadb.com\/kb\/en\/library\/documentation\/\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e mysql<\/a><br \/>  <a href=\"https:\/\/wiki.mikrotik.com\/wiki\/Manual:System\/Log\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Mikrotik logging<\/a><\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443 LOR \u0437\u0430 <a href=\"https:\/\/www.linux.org.ru\/forum\/general\/14370252\">\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438<\/a><\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/427159\/\"> https:\/\/habr.com\/post\/427159\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0431\u043e\u0440\u0430 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u041c\u0438\u043a\u0440\u043e\u0442\u0438\u043a.<\/p>\n<p>  <b>\u0426\u0435\u043b\u044c:<\/b> \u0426\u0435\u043b\u044c\u044e \u0431\u0443\u0434\u0435\u0442, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u00ab\u043f\u0435\u0440\u0435\u0436\u0435\u0432\u0430\u043d\u043d\u044b\u0445\u00bb \u043b\u043e\u0433\u043e\u0432 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>  <b>\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430:<\/b> \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043b\u044e\u0431\u043e\u0439 \u0441\u0432\u0435\u0436\u0438\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Linux \u0441 rsyslogd v8 \u0438 \u0432\u044b\u0448\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 v7. \u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0421\u0423\u0411\u0414, \u044f \u0432\u044b\u0431\u0440\u0430\u043b mariadb. \u041f\u0440\u0438\u0440\u043e\u0441\u0442 \u0411\u0414 \u0431\u0443\u0434\u0435\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0430\u0448\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f 30-40 \u043f\u0440\u0430\u0432\u0438\u043b, \u0447\u0442\u043e \u0432 \u0434\u0435\u043d\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1200 \u0442\u044b\u0441\u044f\u0447 \u0441\u0442\u0440\u043e\u043a. \u0417\u0430 \u043c\u0435\u0441\u044f\u0446 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0411\u0414 \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0434\u043e 3,8\u0413\u0431.<\/p>\n<p>  <b>\u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430:<\/b> \u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043b\u043e\u0433 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e UDP. \u0421\u0435\u0440\u0432\u0435\u0440 rsyslog \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0441\u0442\u0440\u043e\u043a \u043e\u0442 \u043b\u0438\u0448\u043d\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 SQL \u0432\u0441\u0442\u0430\u0432\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0451 \u0432 \u0421\u0423\u0411\u0414. \u0421\u0423\u0411\u0414, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0434\u043e \u0432\u0441\u0442\u0430\u0432\u043a\u0438, \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0432 rsyslog.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-291102","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=291102"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291102\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}