{"id":269144,"date":"2015-11-27T09:26:02","date_gmt":"2015-11-27T06:26:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269144"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269144","title":{"rendered":"Asterisk: \u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0430\u0446\u0438\u044f VoIP \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0434\u0432\u0443\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 MikroTik"},"content":{"rendered":"<p>       \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u0435\u0449\u0438, \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0441\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u043e\u0432\u0435\u0442\u044b \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439\u00bb, \u0433\u043b\u044b\u0431 \u0438 \u0434\u0430\u0436\u0435 \u0441\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439.<\/p>\n<p>  \u041d\u043e \u044d\u0442\u043e \u0432\u0441\u0435 \u0441\u043b\u043e\u0432\u0430, \u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443.<br \/>  \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u2014 Asterisk \u0432\u043d\u0443\u0442\u0440\u0438 \u041b\u041a\u0421, \u0437\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c MikroTik.<br \/>  \u0414\u0430\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 PBX, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0432\u044b\u0434\u0435\u043b\u044f\u044f \u0435\u0433\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e IP. <br \/>  \u0418\u043b\u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443 PBX, \u043d\u043e \u0438 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443. <br \/>  \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c? \u0410 \u0432\u043e\u0442 \u0438 \u043d\u0435\u0442. <\/p>\n<p>  \u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043b\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0443\u0434\u0430-\u043b\u0438\u0431\u043e \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0430\u0444\u0444\u0438\u043a\u0430? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u043e\u043d \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 MikroTik \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442 PBX, \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0441 IP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u0430\u0440\u043e \u043a\u0430\u043a \u0441\u0430\u043c IPv4 \u2014 \u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 Asterisk \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u044e, \u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b MikroTik \u044d\u0442\u043e \u043c\u043e\u0433 \u00ab\u0443\u0432\u0438\u0434\u0435\u0442\u044c\u00bb, \u043e\u0442\u043c\u0430\u0442\u0447\u0438\u0442\u044c(\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u0435 \u0437\u0430 \u0441\u0442\u043e\u043b\u044c \u0433\u0440\u0443\u0431\u044b\u0439 \u0430\u043d\u0433\u043b\u0438\u0446\u0438\u0437\u043c) \u0438 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u0443 \u043d\u0430\u0441 \u0438\u0434\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u043e\u0442 \u0434\u0432\u0443\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432.<br \/>  \u0414\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u0432 \u0441\u0432\u043e\u0435\u043c \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b MikroTik, \u0437\u043d\u0430\u043a\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437 wiki \u2014 <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Failover_Scripting\">wiki.mikrotik.com\/wiki\/Failover_Scripting<\/a><br \/>  \u041e\u043d \u0432\u0441\u0435\u043c \u0445\u043e\u0440\u043e\u0448, \u043d\u043e \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u00ab\u043d\u043e\u00bb.<br \/>  \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0441\u043e\u043c\u043e\u043c\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u044f \u00abConnection tracking\u00bb \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d\u043e \u0432\u043e\u0442 \u0432 \u0447\u0435\u043c:<br \/>  \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0448 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 ISP \u0438\u0437\u0432\u043e\u043b\u0438\u0442 \u043e\u0442\u0434\u043e\u0445\u043d\u0443\u0442\u044c \u043e\u0442 \u0442\u0440\u0443\u0434\u043e\u0432 \u043f\u0440\u0430\u0432\u0435\u0434\u043d\u044b\u0445, \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e.<\/p>\n<p>  \u0412\u0441\u0435 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b, \u044e\u0442\u0443\u0431 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u044f\u043f \u0442\u043e\u0436\u0435, \u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u044b \u043c\u044b \u043d\u0435 \u043a\u0440\u0438\u0447\u0430\u043b\u0438 <s>\u044d\u043a\u0441\u043f\u0435\u043a\u0442\u043e \u043f\u043e\u0442\u0440\u043e\u043d\u0443\u043c<\/s>  <\/p>\n<pre><code>sip reload<\/code><\/pre>\n<p>  \u0438 \u0432 \u043e\u0442\u0447\u0430\u044f\u043d\u0438\u0438 \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u0433\u0438\u044e \u0432\u044b\u0441\u0448\u0438\u0445 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432  <\/p>\n<pre><code>core restart now<\/code><\/pre>\n<p>  SIP-\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0435 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u0410 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0435 \u00abConnection tracking\u00bb \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432\u0438\u0441\u0435\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0442 \u00ab\u0441\u0442\u0430\u0440\u043e\u0433\u043e\u00bb(\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e) \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0443\u0442\u0441\u044f \u0438 \u0437\u0432\u043e\u043d\u043a\u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c MikroTik&#8217;\u0443 \u043a\u0442\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0432\u0435\u0440\u0431\u043b\u044e\u0434, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0441\u0431\u0440\u043e\u0441 \u00ab\u0441\u0442\u0430\u0440\u044b\u0445\u00bb \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0442\u043e \u0432\u0430\u043c \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0430\u0446\u0438\u044f VoIP \u0442\u0440\u0430\u0444\u0438\u043a\u0430<\/h3>\n<p>  \u041e\u0442 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043b\u043e\u0432\u043e\u043e\u0445\u043e\u0442\u043b\u0438\u0432\u043e\u0433\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<br \/>  \u041a\u0430\u043a \u0436\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0443 \u043c\u0435\u0442\u043a\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b MikroTik?<br \/>  \u041e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0441\u0442 \u2014 DSCP!<br \/>  \u041e\u041a, \u0430 \u0447\u0442\u043e \u043d\u0430 \u0441\u0447\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0434\u0435\u043c\u043e\u043d\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u0442 Asterisk?<br \/>  \u0418 \u0437\u0434\u0435\u0441\u044c \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0441\u044d\u0440(\u043c\u0430\u0434\u0430\u043c) \u2014 iptables &#8212;uid-owner!<\/p>\n<p>  \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 PBX \u0443\u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0439 user id \u0443 \u043d\u0430\u0448\u0435\u0439 Asterisk(\u0437\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0430 \u2014 \u043e\u043d\u0430)  <\/p>\n<pre><code>grep -i asterisk \/etc\/passwd|cut -d: -f3 1001 <\/code><\/pre>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f DSCP(\u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 VoIP \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c CS5, \u0438\u043b\u0438, \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u2014 40)  <\/p>\n<pre><code>iptables -I OUTPUT 1 -t mangle -m owner --uid-owner 1001 -j DSCP --set-dscp 40 <\/code><\/pre>\n<p>  <i>*\u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u2014 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0443 \u0441\u0441\u044b\u043b\u043a\u0438, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0441 \u0447\u0435\u0433\u043e \u044f \u044d\u0442\u043e \u0432\u0437\u044f\u043b<br \/>  <\/i><\/p>\n<p>  \u0417\u0430 \u0441\u0438\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 IP \u0410\u0422\u0421 \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043c \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430.<br \/>  \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u2014 <a href=\"http:\/\/voxlink.ru\/kb\/voip-devices-configuration\/mikrotik-voip-traffic-configuration\/\">voxlink.ru\/kb\/voip-devices-configuration\/mikrotik-voip-traffic-configuration<\/a><br \/>  \u0420\u0435\u043f\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u0442\u0430\u043c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u043e, \u043f\u043e\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0438.<br \/>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 MANGLE \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b\u0430:  <\/p>\n<pre><code>\/ip f m exp # nov\/26\/2015 17:09:20 by RouterOS 6.21.1 # software id = 5QIF-MH9A # \/ip firewall mangle add action=mark-packet chain=forward new-packet-mark=def_out src-address=192.168.5.0\/24 add action=mark-packet chain=forward new-packet-mark=def_out src-address=192.168.6.0\/24 add action=mark-packet chain=forward dst-address=192.168.5.0\/24 new-packet-mark=def_in add action=mark-packet chain=forward dst-address=192.168.6.0\/24 new-packet-mark=def_in add action=mark-packet chain=forward dscp=40 new-packet-mark=voip_out src-address=192.168.7.10 add action=mark-packet chain=forward dscp=40 dst-address=192.168.7.10 new-packet-mark=voip_in <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u2014 \u043c\u0430\u0442\u0447\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e IP \u0438 \u043f\u043e \u043f\u043e\u043b\u044e DSCP.<\/p>\n<p>  \u0418 \u043e\u0447\u0435\u0440\u0435\u0434\u0438:  <\/p>\n<pre><code>\/queue tree export  # nov\/26\/2015 17:09:27 by RouterOS 6.21.1 # software id = 5QIF-MH9A # \/queue tree add max-limit=30M name=in parent=global add max-limit=28M name=def-in packet-mark=def_in parent=in add limit-at=1M max-limit=2M name=voip-in packet-mark=voip_in parent=in priority=1 add max-limit=30M name=out parent=global add max-limit=28M name=def-out packet-mark=def_out parent=out add limit-at=1M max-limit=2M name=voip-out packet-mark=voip_out parent=out priority=1 <\/code><\/pre>\n<p>  \u041a \u0441\u043b\u043e\u0432\u0443, \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0438 \u0442\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u0441 \u0431\u041e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c DSCP, \u043d\u043e \u044f \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u0438\u043b \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0441\u0443 \u0432 2\u041c\u0431\/\u0441.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 2. \u0421\u043a\u0440\u0438\u043f\u0442 failover&#8217;\u0430<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430, \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043b\u0438\u043d\u043a\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f.<br \/>  \u0415\u0441\u0442\u044c \u0434\u0432\u0430 ISP, \u043e\u0434\u0438\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e ethernet, \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e PPPoE.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0438. Ethernet \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code>[f@777777] &gt; ip addr pr where interface=ether7 Flags: X - disabled, I - invalid, D - dynamic   #   ADDRESS            NETWORK         INTERFACE                                                                                           0   46.11.6.78\/30    46.11.6.76    ether7        <\/code><\/pre>\n<p>  PPPoE:  <\/p>\n<pre><code>[f@777777] &gt; int pppoe-cl pr  Flags: X - disabled, R - running   0  R name=&quot;rtk&quot; max-mtu=auto max-mru=auto mrru=disabled interface=ether8 user=&quot;f&quot; password=&quot;w&quot; profile=default        keepalive-timeout=60 service-name=&quot;&quot; ac-name=&quot;&quot; add-default-route=no dial-on-demand=no use-peer-dns=yes        allow=pap,chap,mschap1,mschap2  <\/code><\/pre>\n<p>  \u0437\u0430\u043c\u0435\u0442\u044c\u0442\u0435 \u2014 \u044f \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/p>\n<p>  \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u0438\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438  <\/p>\n<pre><code>[fessae@777777] &gt; ip r p d t  0 A S  comment=RTK_TABLE dst-address=0.0.0.0\/0 gateway=rtk gateway-status=rtk reachable distance=1 scope=30 target-scope=10 routing-mark=RTK_mark   1 A S  comment=GoodLine_TABLE dst-address=0.0.0.0\/0 gateway=46.18.6.77 gateway-status=46.18.6.77 reachable via  ether7 distance=1 scope=30 target-scope=10 routing-mark=GoodLine_mark   2 A S  comment=MAIN_TABLE dst-address=0.0.0.0\/0 gateway=46.18.6.77 gateway-status=46.18.6.77 reachable via  ether7 distance=1 scope=30 target-scope=10   3   S  comment=MAIN_TABLE dst-address=0.0.0.0\/0 gateway=rtk gateway-status=rtk reachable distance=2 scope=30 target-scope=10   4 ADC  dst-address=10.155.177.1\/32 pref-src=10.155.177.13 gateway=pptp-out1 gateway-status=pptp-out1 reachable distance=0 scope=10   5   S  dst-address=10.155.177.1\/32 gateway=pptp-out1 gateway-status=pptp-out1 reachable distance=1 scope=30 target-scope=10   6 ADC  dst-address=46.18.6.76\/30 pref-src=46.18.6.78 gateway=ether7 gateway-status=ether7 reachable distance=0 scope=10   7 ADC  dst-address=172.16.79.1\/32 pref-src=172.16.79.251 gateway=l2tp-out1 gateway-status=l2tp-out1 reachable distance=0 scope=10   8 ADC  dst-address=192.168.77.0\/24 pref-src=192.168.77.1 gateway=bridge-local gateway-status=bridge-local reachable distance=0 scope=10   9 A S  comment=thecall dst-address=192.168.254.0\/24 gateway=172.16.79.1 gateway-status=172.16.79.1 reachable via  l2tp-out1 distance=1 scope=30 target-scope=10  10 ADC  dst-address=213.22.11.99\/32 pref-src=217.11.15.125 gateway=rtk gateway-status=rtk reachable distance=0 scope=10  <\/code><\/pre>\n<p>  \u0442\u0443\u0442 \u043c\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 0,1,2,3 <br \/>  2 \u0438 3 \u2014 \u044d\u0442\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, 2 \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u043e\u0439(distance) \u00ab1\u00bb \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438 3 \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u043e\u0439 \u00ab2\u00bb, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f<\/p>\n<p>  0 \u0438 1 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u0440\u0448\u0442\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043c\u043e\u0433 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0441 \u0442\u043e\u0433\u043e \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0448\u0435\u043b \u0437\u0430\u043f\u0440\u043e\u0441, \u0442.\u0435. \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u043e\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0430\u043a\u0442\u0438\u0432\u0435\u043d<br \/>  \u044d\u0442\u043e\u0439 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0435 \u0441\u043b\u0443\u0436\u0430\u0442 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 0,1 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438:  <\/p>\n<pre><code>[f@777777] &gt; ip r ru pr   Flags: X - disabled, I - inactive   0   src-address=217.11.15.125\/32 action=lookup table=RTK_mark    1   src-address=46.18.6.78\/30 action=lookup table=GoodLine_mark    2   dst-address=192.168.77.0\/24 action=lookup table=main <\/code><\/pre>\n<p>  \u043f\u0440\u0430\u0432\u0438\u043b\u043e 2 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0437\u0430 MikroTik.<\/p>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u043c\u043a\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u00abPolicy based routing\u00bb \u0438 \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043e\u043f\u0443\u0441\u0430 \u044f \u0434\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0442\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432-\u043f\u0440\u0430\u0432\u0438\u043b.<br \/>  <i>*\u0434\u0430, \u0443 \u043c\u0435\u043d\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0441\u0430\u043c\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043d\u043e \u044d\u0442\u043e \u0442\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u0435<br \/>  <\/i><br \/>  \u0421 \u0430\u043f\u0435\u0440\u0435\u0442\u0438\u0432\u043e\u043c \u043c\u044b \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c, \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0431\u043b\u044e\u0434\u043e\u043c.<br \/>  \u041b\u0438\u0441\u0442\u0438\u043d\u0433 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c, \u0442.\u043a. \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u0435\u043b\u0438\u043a.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code># ------------------- header ------------------- # Script by Tomas Kirnak, version 1.0.7 # If you use this script, or edit and # re-use it, please keep the header intact. # # For more information and details about # this script please visit the wiki page at # http:\/\/wiki.mikrotik.com\/wiki\/Failover_Scripting # ------------------- header -------------------  #------------------- header_1 ------------------ # FessAectan has made some changes:  # - add ISPs link state checking - # - add clearing connection tracking states for selected IP -  # ------------------ header_1 ------------------  # ------------- start editing here ------------- # Edit the variables below to suit your needs  # Please fill the WAN interface names :local InterfaceISP1 ether7 :local InterfaceISP2 rtk  # Please fill the gateway  IPs (or interface names in case of PPP) :local GatewayISP1 46.18.6.77 :local GatewayISP2 rtk  # Please fill the ping check host - currently: resolver1.opendns.com :local PingTarget 21.7.2.77  # Please fill how many ping failures are allowed before fail-over happends :local FailTreshold 1  # Define the distance increase of a route when it fails :local DistanceIncrease 2  # Editing the script after this point may break it # -------------- stop editing here --------------  # Declare the global variables :global PingFailCountISP1 :global PingFailCountISP2 :global InterfaceFailISP1 :global InterfaceFailISP2  # This inicializes the PingFailCount variables, in case this is the 1st time the script has ran :if ([:typeof $PingFailCountISP1] = &quot;nothing&quot;) do={:set PingFailCountISP1 0} :if ([:typeof $PingFailCountISP2] = &quot;nothing&quot;) do={:set PingFailCountISP2 0}  # IntercaceFail variables. First time initialization. :if ([:typeof $InterfaceFailISP1] = &quot;nothing&quot;) do={:set InterfaceFailISP1 0} :if ([:typeof $InterfaceFailISP2] = &quot;nothing&quot;) do={:set InterfaceFailISP2 0}  # This variable will be used to keep results of individual ping attempts :local PingResult  # Your PBX IP :local PBXIP 192.168.77.10  # Check ISP1  :if ([\/interface get value-name=running $InterfaceISP1])  do={ :set PingResult [ping $PingTarget count=3 interface=$InterfaceISP1]  :if ($PingResult = 0) do={     :if ($PingFailCountISP1 &lt; ($FailTreshold)) do={         :set PingFailCountISP1 ($PingFailCountISP1 + 1)}                  :if ($PingFailCountISP1 = $FailTreshold) do={         :log warning &quot;ISP1 has a problem en route to $PingTarget - increasing distance of routes.&quot;         :foreach i in=[\/ip route find gateway=$GatewayISP1 && static && comment=MAIN_TABLE] do=\\             {\/ip route set $i distance=([\/ip route get $i distance] + $DistanceIncrease)}         :log warning &quot;Route distance increase finished.&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] }     } } } else={         :if ($InterfaceFailISP1 = 0) do={         :set InterfaceFailISP1 1          :log warning &quot;ISP1 intarface link is down - clear all connections from $PBXIP&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] } } }  :if ([\/interface get value-name=running $InterfaceISP1])  do={         :if ($InterfaceFailISP1 = 1) do={         :set InterfaceFailISP1 0         :log warning &quot;ISP1 intarface link is up - clear all connections from $PBXIP&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] } } }  :if ($PingResult &gt; 0) do={     :if ($PingFailCountISP1 &gt; 0) do={         :set PingFailCountISP1 ($PingFailCountISP1 - 1)                  :if ($PingFailCountISP1 = ($FailTreshold -1)) do={         :log warning &quot;ISP1 can reach $PingTarget again - bringing back original distance of routes.&quot;         :foreach i in=[\/ip route find gateway=$GatewayISP1 && static  && comment=MAIN_TABLE] do=\\             {\/ip route set $i distance=([\/ip route get $i distance] - $DistanceIncrease)}         :log warning &quot;Route distance decrease finished.&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] }     }     } }  # Check ISP2  :if ([\/interface  get value-name=running $InterfaceISP2]) do={  :set PingResult [ping $PingTarget count=3 interface=$InterfaceISP2]  :if ($PingResult = 0) do={     :if ($PingFailCountISP2 &lt; ($FailTreshold)) do={         :set PingFailCountISP2 ($PingFailCountISP2 + 1)}                  :if ($PingFailCountISP2 = $FailTreshold) do={         :log warning &quot;ISP2 has a problem en route to $PingTarget - increasing distance of routes.&quot;         :foreach i in=[\/ip route find gateway=$GatewayISP2 && static  && comment=MAIN_TABLE] do=\\             {\/ip route set $i distance=([\/ip route get $i distance] + $DistanceIncrease)}         :log warning &quot;Route distance increase finished.&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] }     } } } else={        :if ($InterfaceFailISP2 = 0) do={        :set InterfaceFailISP2 1        :log warning &quot;ISP2 interface link is down - clear all connections from $PBXIP&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] } } }  :if ([\/interface get value-name=running $InterfaceISP2]) do={         :if ($InterfaceFailISP2 = 1) do={         :set InterfaceFailISP2 0         :log warning &quot;ISP2 intarface link is up - clear all connections from $PBXIP&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] } } }  :if ($PingResult &gt; 0) do={     :if ($PingFailCountISP2 &gt; 0) do={         :set PingFailCountISP2 ($PingFailCountISP2 - 1)                  :if ($PingFailCountISP2 = ($FailTreshold -1)) do={         :log warning &quot;ISP2 can reach $PingTarget again - bringing back original distance of routes.&quot;         :foreach i in=[\/ip route find gateway=$GatewayISP2 && static  && comment=MAIN_TABLE] do=\\             {\/ip route set $i distance=([\/ip route get $i distance] - $DistanceIncrease)}         :log warning &quot;Route distance decrease finished.&quot;         \/ip firewall connection { remove [find src-address~&quot;$PBXIP&quot;] }     }     } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0441\u0435 \u044f\u0441\u043d\u043e, \u0434\u0430\u043b\u0435\u0435 \u043a\u0440\u0430\u0442\u043a\u043e \u0441\u0430\u043c\u0430 \u043b\u043e\u0433\u0438\u043a\u0430:<br \/>  1. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0441\u0442\u044c \u043b\u0438 \u043b\u0438\u043d\u043a \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 PPPoE \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435)<br \/>  2. \u0415\u0441\u0442\u044c \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c $PingTarget<br \/>  2\u0430. \u041d\u0435\u0442 \u2014 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 src-address \u043d\u0430\u0448\u0435\u0439 PBX. \u0410\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u043e\u0439 \u00ab2\u00bb, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438\u0441\u044c SIP-\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c. <br \/>  3. $PingTarget \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u2014 \u0438\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c ISP2<br \/>  3a. $PingTarget \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u2014 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 ISP1 \u043d\u0430 2 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438\u0437 \u00abConnection tracking\u00bb<\/p>\n<p>  \u0417\u0430\u0447\u0435\u043c \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430?<br \/>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 \u043d\u0435\u0442 \u043b\u0438\u043d\u043a\u0430, \u0442\u043e \u043d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0441\u043b\u0430\u0442\u044c \u043f\u0438\u043d\u0433.<br \/>  \u0418\u043b\u0438, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 PPP \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438(\u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f), \u043f\u0438\u043d\u0433 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0438 \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.  <\/p>\n<pre><code>[f@777777] &lt;SAFE&gt; interface pppoe-cl di 0 [f@777777] &lt;SAFE&gt;  [f@777777] &lt;SAFE&gt;  [f@777777] &lt;SAFE&gt;  [f@777777] &lt;SAFE&gt;  [f@777777] &lt;SAFE&gt; :if ([\/ping 8.8.8.8 interface=rtk count=3]&gt;0) do={:put &quot;Yes sir&quot;}   SEQ HOST                                     SIZE TTL TIME  STATUS                                                                                                                                              &lt;!-- \u0442\u0443\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0442\u0443\u043f\u043e \u0432\u0438\u0441\u043d\u0435\u0442 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 - \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0442\u043e \u043d\u0435\u0442 --&gt;  [f@777777] &lt;SAFE&gt; interface pppoe-cl en 0                                             [f@777777] &lt;SAFE&gt; :if ([\/ping 8.8.8.8 interface=rtk count=3]&gt;0) do={:put &quot;Yes sir&quot;}   SEQ HOST                                     SIZE TTL TIME  STATUS                                                                                                                                                  0 8.8.8.8                                                 timeout                                                                                                                                                 1 8.8.8.8                                                 timeout                                                                                                                                                 2 8.8.8.8                                    56 254 52ms      sent=3 received=1 packet-loss=66% min-rtt=52ms avg-rtt=52ms max-rtt=52ms   Yes sir  <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0432 \u0448\u0435\u0434\u0443\u043b\u0435\u0440 \u0440\u043e\u0443\u0442\u0435\u0440\u0430.  <\/p>\n<pre><code>[f@777777] &gt; sys sch exp # nov\/26\/2015 17:37:29 by RouterOS 6.30 # software id = LY7Z-747B # \/system scheduler add interval=30s name=check_ISPs on-event=check_gateways policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=nov\/20\/2015 start-time=05:37:37 <\/code><\/pre>\n<p>  \u0418 \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0434\u0435\u0441\u0435\u0440\u0442\u0443 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 3. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b<\/h3>\n<p>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e DSCP, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u0442 \u044d\u0442\u0438\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438:<br \/>  1. <a href=\"http:\/\/www.cisco.com\/cisco\/web\/support\/RU\/9\/92\/92093_dscpvalues.html\">cisco<\/a><br \/>  2. <a href=\"https:\/\/ru.wikipedia.org\/wiki\/DiffServ_Code_Point\">ru.wikipedia<\/a><br \/>  3. <a href=\"https:\/\/msdn.microsoft.com\/ru-ru\/library\/cc787218(v=ws.10).aspx\">msdn.microsoft<\/a><br \/>  4. <a href=\"http:\/\/microsin.ru\/content\/view\/254\/43\/\">microsin<\/a><\/p>\n<p>  \u041e \u0442\u043e\u043c \u043a\u0430\u043a \u0445\u043e\u0434\u044f\u0442 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 MikroTik, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f Policy routing<br \/>  1. <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Manual:Packet_Flow\">wiki Manual:Packet_Flow<\/a><br \/>  2. <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Policy_Base_Routing\">wiki Policy_Base_Routing<\/a><br \/>  3. <a href=\"http:\/\/nixman.info\/?p=133\">nixman Policy_Base_Routing<\/a><br \/>  4. <a href=\"http:\/\/blog.butchevans.com\/2008\/09\/mikrotik-policy-routing-implementation-example\/\">blog.butchevans Policy_Base_Routing<\/a><\/p>\n<p>  \u041f\u0430\u0440\u043e\u0447\u043a\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445, \u0445\u043e\u0442\u044f \u0434\u0443\u043c\u0430\u044e \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445, \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u043f\u043e Iptables<br \/>  1. <a href=\"https:\/\/ru.wikibooks.org\/wiki\/Iptables\">ru.wikibooks.org\/wiki\/Iptables<\/a><br \/>  2. <a href=\"https:\/\/www.opennet.ru\/docs\/RUS\/iptables\/\">opennet iptables guid<\/a><\/p>\n<p>  \u0412\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438, \u0432\u0441\u0435!               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/271747\/\"> http:\/\/habrahabr.ru\/post\/271747\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u0435\u0449\u0438, \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0441\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u043e\u0432\u0435\u0442\u044b \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439\u00bb, \u0433\u043b\u044b\u0431 \u0438 \u0434\u0430\u0436\u0435 \u0441\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439.<\/p>\n<p>  \u041d\u043e \u044d\u0442\u043e \u0432\u0441\u0435 \u0441\u043b\u043e\u0432\u0430, \u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443.<br \/>  \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u2014 Asterisk \u0432\u043d\u0443\u0442\u0440\u0438 \u041b\u041a\u0421, \u0437\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c MikroTik.<br \/>  \u0414\u0430\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 PBX, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0432\u044b\u0434\u0435\u043b\u044f\u044f \u0435\u0433\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e IP. <br \/>  \u0418\u043b\u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443 PBX, \u043d\u043e \u0438 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443. <br \/>  \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c? \u0410 \u0432\u043e\u0442 \u0438 \u043d\u0435\u0442. <\/p>\n<p>  \u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043b\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0443\u0434\u0430-\u043b\u0438\u0431\u043e \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0430\u0444\u0444\u0438\u043a\u0430? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u043e\u043d \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 MikroTik \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442 PBX, \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0441 IP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u0430\u0440\u043e \u043a\u0430\u043a \u0441\u0430\u043c IPv4 \u2014 \u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 Asterisk \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u044e, \u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b MikroTik \u044d\u0442\u043e \u043c\u043e\u0433 \u00ab\u0443\u0432\u0438\u0434\u0435\u0442\u044c\u00bb, \u043e\u0442\u043c\u0430\u0442\u0447\u0438\u0442\u044c(\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u0435 \u0437\u0430 \u0441\u0442\u043e\u043b\u044c \u0433\u0440\u0443\u0431\u044b\u0439 \u0430\u043d\u0433\u043b\u0438\u0446\u0438\u0437\u043c) \u0438 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u0443 \u043d\u0430\u0441 \u0438\u0434\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u043e\u0442 \u0434\u0432\u0443\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432.<br \/>  \u0414\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u0432 \u0441\u0432\u043e\u0435\u043c \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b MikroTik, \u0437\u043d\u0430\u043a\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437 wiki \u2014 <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Failover_Scripting\">wiki.mikrotik.com\/wiki\/Failover_Scripting<\/a><br \/>  \u041e\u043d \u0432\u0441\u0435\u043c \u0445\u043e\u0440\u043e\u0448, \u043d\u043e \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u00ab\u043d\u043e\u00bb.<br \/>  \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0441\u043e\u043c\u043e\u043c\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u044f \u00abConnection tracking\u00bb \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d\u043e \u0432\u043e\u0442 \u0432 \u0447\u0435\u043c:<br \/>  \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0448 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 ISP \u0438\u0437\u0432\u043e\u043b\u0438\u0442 \u043e\u0442\u0434\u043e\u0445\u043d\u0443\u0442\u044c \u043e\u0442 \u0442\u0440\u0443\u0434\u043e\u0432 \u043f\u0440\u0430\u0432\u0435\u0434\u043d\u044b\u0445, \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e.<\/p>\n<p>  \u0412\u0441\u0435 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b, \u044e\u0442\u0443\u0431 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u044f\u043f \u0442\u043e\u0436\u0435, \u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u044b \u043c\u044b \u043d\u0435 \u043a\u0440\u0438\u0447\u0430\u043b\u0438 <s>\u044d\u043a\u0441\u043f\u0435\u043a\u0442\u043e \u043f\u043e\u0442\u0440\u043e\u043d\u0443\u043c<\/s>  <\/p>\n<pre><code>sip reload<\/code><\/pre>\n<p>  \u0438 \u0432 \u043e\u0442\u0447\u0430\u044f\u043d\u0438\u0438 \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u0433\u0438\u044e \u0432\u044b\u0441\u0448\u0438\u0445 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432  <\/p>\n<pre><code>core restart now<\/code><\/pre>\n<p>  SIP-\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0435 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u0410 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0435 \u00abConnection tracking\u00bb \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432\u0438\u0441\u0435\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0442 \u00ab\u0441\u0442\u0430\u0440\u043e\u0433\u043e\u00bb(\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e) \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0443\u0442\u0441\u044f \u0438 \u0437\u0432\u043e\u043d\u043a\u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c MikroTik&#8217;\u0443 \u043a\u0442\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0432\u0435\u0440\u0431\u043b\u044e\u0434, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0441\u0431\u0440\u043e\u0441 \u00ab\u0441\u0442\u0430\u0440\u044b\u0445\u00bb \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0442\u043e \u0432\u0430\u043c \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/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-269144","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269144","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=269144"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269144\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}