{"id":267974,"date":"2015-11-11T14:52:04","date_gmt":"2015-11-11T11:52:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267974"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267974","title":{"rendered":"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438"},"content":{"rendered":"<p>       \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u0437\u0430\u043e\u0441\u0442\u0440\u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b <a href=\"http:\/\/habrahabr.ru\/post\/219623\/\">\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u0445 \u0438\u0445 \u043e\u0431\u0445\u043e\u0434\u0430<\/a> <a href=\"http:\/\/rutracker.wiki\/\u041a\u0430\u043a_\u043e\u0431\u043e\u0439\u0442\u0438_\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443_\u0441\u0430\u0439\u0442\u0430_\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c\">\u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e<\/a> <a href=\"http:\/\/rublacklist.net\/bypass\/\">\u043d\u0435\u043c\u0430\u043b\u043e<\/a>, \u0438 \u043f\u0435\u0440\u0435\u0436\u0435\u0432\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u043d\u0435\u0437\u0430\u0447\u0435\u043c. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u0430 (\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e, \u0441 \u0447\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043a \u0430\u0439\u0442\u0438 \u043d\u0435\u0431\u043b\u0438\u0437\u043a\u0438\u0439).<\/p>\n<p>  \u041d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c, \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c, \u0447\u0442\u043e \u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0430\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0445 <a href=\"http:\/\/geektimes.ru\/post\/265514\/#comment_8869950\">\u043a\u043e\u043f\u0438\u0440\u0430\u0441\u0442\u043e\u0432-\u043f\u043b\u0430\u0433\u0438\u0430\u0442\u043e\u0440\u043e\u0432<\/a>. <\/p>\n<p>  \u0421\u0430\u043c\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0443\u0436\u0435 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435 \u0438 \u0433\u043e\u043d\u044f\u0442\u044c \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 VPN \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e, \u0430 \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 VPN-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0435\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 OpenWrt \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<p>  \u041d\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 VPN \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432\u0441\u0435 \u0436\u0435 \u043e\u0442\u0441\u0442\u0430\u044e\u0442 \u043e\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0434\u0430 \u0438 VPN-\u0441\u0435\u0440\u0432\u0438\u0441 \u043b\u0438\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u0434\u0435\u043d\u0435\u0433, \u043b\u0438\u0431\u043e \u0438\u043c\u0435\u0435\u0442 \u043c\u0430\u0441\u0441\u0443 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439, \u043b\u0438\u0431\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u043b\u043e\u0433\u0438\u043d\u043e\u0432. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0442\u0440\u0430\u0442, \u043a\u0430\u043a \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445, \u0442\u0430\u043a \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 Tor, \u043d\u043e \u0435\u0433\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0435\u0449\u0435 \u0445\u0443\u0436\u0435, \u0430 \u0433\u043e\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Tor \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u044b \u0438 \u0432\u043e\u0432\u0441\u0435 \u0438\u0434\u0435\u044f \u043d\u0435 \u043b\u0443\u0447\u0448\u0430\u044f.<\/p>\n<p>  \u0412\u044b\u0445\u043e\u0434 \u2014 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 VPN\/Tor \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c.<\/p>\n<p>  <b>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043d\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432: \u043b\u044e\u0431\u0430\u044f \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 IP.<\/b> <\/p>\n<p>  \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 OpenWrt \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0441\u0442\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0434\u043e \u043d\u0435\u0435.<\/p>\n<h4>\u0422\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0444\u0438\u043a\u0430 \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c<\/h4>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VPN \u0438\u043b\u0438 Tor&#8217;\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430. Tor \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d, \u043a\u0430\u043a \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 proxy (\u043b\u0438\u0431\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0443 \u0438\u0437 tor \u0438 <a href=\"https:\/\/code.google.com\/p\/badvpn\/wiki\/tun2socks\">tun2socks<\/a>). \u0422.\u043a. \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u0435\u0442\u0441\u044f \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0440\u043a\u043d, \u0442\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 Tor&#8217;\u0430 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043d\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438 \u0420\u0424 (<code>&lt;ExcludeExitNodes {RU}<\/code>).<\/p>\n<p>  \u0412 Tor\u2019\u0430 \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c \u0441 <code>REDIRECT<\/code>\u2019\u043e\u043c \u043d\u0430 \u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 <code>PREROUTING<\/code> \u0442\u0430\u0431\u043b\u0438\u0446\u044b <code>nat<\/code> netfilter\u2019\u0430. <\/p>\n<p>  \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 VPN (\u0438\u043b\u0438 Tor + tun2socks) \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043c\u0430\u0440\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code>mangle<\/code>, \u043c\u0435\u0442\u043a\u0430 \u0437\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f <a href=\"http:\/\/habrahabr.ru\/post\/108690\/\">\u0432\u044b\u0431\u043e\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/a>, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<br \/>  \u0412 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0444\u0438\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>ipset<\/code> \u0441 \u0445\u043e\u0441\u0442\u0430\u043c\u0438, \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u043c\u0438 (\u0440\u0430\u0437)\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435.<\/p>\n<h4>\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <code>ipset<\/code> c (\u0440\u0430\u0437)\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u0445\u043e\u0441\u0442\u0430\u043c\u0438<\/h4>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u00ab\u0437\u0430\u0433\u043d\u0430\u0442\u044c \u0432\u0441\u0435 IP \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430\u00bb \u0432 ipset \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b: \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435 \u0432\u0441\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0443\u0439\u0442\u0438 \u043e\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 IP \u0430\u0434\u0440\u0435\u0441 \u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f (\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043e\u0431 \u044d\u0442\u043e\u043c \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442, \u0430 \u043c\u044b \u2013 \u0435\u0449\u0435 \u043d\u0435\u0442), \u043d\u0443 \u0438 \u0432 \u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u2013 false positives \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 shared hosting\u2019\u0435 \u0441\u0430\u0439\u0442\u043e\u0432.<\/p>\n<p>  \u0413\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u043e\u0433\u043e\u0440\u043e\u0434 \u0441 dpi \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f: \u043a\u0430\u043a-\u043d\u0438\u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u0430\u0431\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435. \u0412\u044b\u0445\u043e\u0434 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u0435\u043d: dnsmasq (DNS \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d) \u0443\u043c\u0435\u0435\u0442 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 ipset (\u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u0446\u0438\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435). \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e: \u0432\u043d\u043e\u0441\u0438\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432\u0441\u0435 \u0434\u043e\u043c\u0435\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 dnsmasq \u0441\u0430\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 ipset \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442 ip \u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0443.<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0438 \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f, \u0447\u0442\u043e dnsmasq \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u0432 \u043f\u043e\u043b\u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0442\u044b\u0441\u044f\u0447 \u0441\u0442\u0440\u043e\u043a (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0443\u0448\u043a\u0438 \u0438 \u0443\u0442\u0440\u044f\u0441\u043a\u0438), \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d\u0438 \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0431\u0435\u0437\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b.<\/p>\n<p>  \u041b\u043e\u0436\u043a\u0430 \u0434\u0435\u0433\u0442\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 dnsmasq \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c, \u0442.\u043a. \u043f\u043e SIGHUP \u043e\u043d \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u0442.<\/p>\n<h4>\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432<\/h4>\n<p>  \u0414\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. <\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435): \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e cron&#8217;\u0443.<br \/>  \u0420\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440 \u0448\u0438\u0440\u043e\u043a\u043e\u0439 \u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u0438\u0440 \u043d\u0435 \u0431\u0435\u0437 \u0434\u043e\u0431\u0440\u044b\u0445 \u043b\u044e\u0434\u0435\u0439 \u0438 \u0435\u0441\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c <a href=\"http:\/\/reestr.rublacklist.net\">\u0434\u0432\u0430<\/a> <a href=\"http:\/\/antizapret.info\">\u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/a>, \u0433\u0434\u0435 \u0441 \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f. \u0418, \u0447\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e, API \u0443 \u043d\u0438\u0445 \u0442\u043e\u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f. \u041f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0435\u0441\u0442\u044c, \u0447\u0442\u043e <i>\u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043c\u0435\u043d<\/i> \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043c\u0435\u043d \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438 IP \u0430\u0434\u0440\u0435\u0441\u0430. \u0418\u0445 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e (\u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430 \u043d\u0438\u0445 \u0437\u0430\u0431\u0438\u0442\u044c: \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 0,1% \u043e\u0442 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u0432\u0440\u044f\u0434\u043b\u0438 \u043e\u043d\u0438 \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u044b). \u041a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043c\u0435\u043d\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 punycode. \u041d\u0435\u043c\u0430\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0434\u043e\u043c\u0435\u043d\u044b \u0441 www\/\u0431\u0435\u0437 www \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u0438. \u0412\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0441\u043f\u0438\u0441\u043a\u0443 \u043e\u0442 rublacklist.net (\u043e\u043d \u0432 \u0434\u043e\u0431\u0430\u0432\u043e\u043a \u0435\u0449\u0435 \u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d). \u0418\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0433\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u043c\u043e\u043d\u0441\u0442\u0440\u0443\u043e\u0437\u043d\u044b\u0439 lua-script (\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0438\u0436\u0435), \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u0438 \u0441\u0436\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0447\u0442\u0438 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430. C antizapret.info \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441\u0438\u043b\u044c\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u043d\u0430 awk.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0435\u043c: \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044e \u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0443 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0430 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443 \u043e\u0431 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>http:\/\/block.mts.ru\/?host=&lt;host&gt;&url=&lt;url&gt;&amp;params=&lt;params&gt;<\/code>. \u041f\u043e\u0434\u043c\u0435\u043d\u0438\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0433\u043e \u0436\u0435 dnsmasq (<code>address=\/block.mts.ru\/192.168.1.1<\/code>) A-\u0437\u0430\u043f\u0438\u0441\u044c <i>block.mts.ru<\/i> \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 (\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u043d\u0430 \u043d\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442) \u043c\u043e\u0436\u043d\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0441\u0435\u0442\u0438 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 dnsmasq, \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c nslookup (\u0447\u0442\u043e\u0431\u044b ip \u0430\u0434\u0440\u0435\u0441 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0441\u044f \u0432 ipset) \u0438 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 URL. \u041d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c dnsmasq \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0445\u043e\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u0442. \u0414\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f http.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0449\u0435 \u043e\u0431 \u043e\u0434\u043d\u043e\u0439 \u043b\u043e\u0436\u043a\u0435 \u0434\u0435\u0433\u0442\u044f: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u044b \u0437\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u043a\u043d \u0441\u0430\u0439\u0442\u043e\u0432 \u0441\u0430\u043c\u043e\u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u043d\u0435 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0435\u0441\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u0442\u0438\u0445\u043e\u0439 \u0441\u0430\u043f\u043e\u0439 \u0438 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u044f\u0442. \u0422\u0430\u043a \u0447\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0431\u0435\u0437 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0430 \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c.<\/p>\n<h4>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f<\/h4>\n<p>  DNS \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043f\u0441\u0442\u0440\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442. \u0418\u0431\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438 \u0435\u0449\u0435 \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430. \u041e\u0442\u0434\u0430\u0441\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0430 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u0447\u0442\u043e \u044d\u0442\u043e CNAME block.mts.ru \u0438 \u0432\u0441\u0435. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 <code>server=8.8.8.8, server=8.8.4.4<\/code>. \u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 DNS-\u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043b\u0438\u0447\u043d\u043e \u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u2014 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438\u0437 \u0437\u0430\u043f\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u043f\u0441\u0442\u0440\u0438\u043c (\u0447\u0435\u0440\u0435\u0437 VPN\/Tor), \u043e\u0434\u043d\u0430\u043a\u043e \u0431\u0435\u0437 \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u044f \u0431\u044b \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0435 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u043b.<\/p>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Tor&#8217;a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0444\u0438\u043d\u0433\u0430 \u043f\u043e .onion \u0441\u0430\u0439\u0442\u0430\u043c: Tor \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 dns-\u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u0435\u0433\u043e \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0430 \u043f\u0440\u043e\u043a\u0441\u0438 Tor&#8217;\u0430 \u0438 voila. \u041d\u043e \u0435\u0449\u0435 \u0440\u0430\u0437 \u043d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441 \u0438\u0437\u0431\u0438\u0440\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442.<\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 OpenWrt (15.05)<\/h4>\n<p>  \u0421\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043f\u043b\u043e\u0445\u043e\u0439, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Tor\u2019\u0430. MIPS 400MHz@32MB RAM \u044d\u0442\u043e \u0442\u043e\u0442 \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 USB-\u043f\u043e\u0440\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u043b\u0435\u0448\u0430 <a href=\"https:\/\/wiki.openwrt.org\/doc\/howto\/extroot#chaos_calmer\">\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c USB-\u0444\u043b\u0435\u0448\u043a\u043e\u0439<\/a> (\u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0434\u0440\u0430\u0432\u043e\u0439 \u0438\u0434\u0435\u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0444\u043b\u0435\u0448 \u0434\u043b\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<p>  \u0428\u0442\u0430\u0442\u043d\u043e \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430\u0445 OpenWrt \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0443\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 dnsmasq, \u043d\u0435 \u0443\u043c\u0435\u044e\u0449\u0438\u0439 ipset. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 <i>dnsmasq-full<\/i>.<\/p>\n<p>  \u0418\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445, \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f <i>ipset<\/i>, <i>tor<\/i> \u0438 <i>tor-geoip<\/i>.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043b\u0438\u0431\u043e \u043f\u0430\u043a\u0435\u0442 <i>luasocket<\/i>, \u043b\u0438\u0431\u043e (\u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0444\u043b\u0435\u0448\u0430) \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e <a href=\"https:\/\/github.com\/diegonehab\/luasocket\/blob\/master\/src\/ltn12.lua\">ltn12.lua<\/a> \u0432 \u043f\u0430\u043f\u043a\u0435 \/usr\/lib\/lua. \u0414\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438\u0437 utf8 \u0432 punycode \u043d\u0443\u0436\u043d\u044b <a href=\"https:\/\/github.com\/haste\/lua-idn\/blob\/master\/idn.lua\">idn.lua<\/a> \u0432 \/usr\/lib\/lua \u0438 \u043f\u0430\u043a\u0435\u0442 <i>luabitop<\/i> (\u043b\u0438\u0431\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430).<\/p>\n<h6>\u0421\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/h6>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/usr\/bin\/rublupdate.lua<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"lua\">local config = {     blSource = &quot;antizapret&quot;, -- antizapret \u0438\u043b\u0438 rublacklist     groupBySld = 32, -- \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432\u0435\u0441\u044c \u0434\u043e\u043c\u0435\u043d \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c     neverGroupMasks = { &quot;^%a%a%a?.%a%a$&quot; }, -- \u043d\u0435 \u043f\u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043d\u0430 org.ru, net.ua \u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435     neverGroupDomains = { [&quot;livejournal.com&quot;] = true, [&quot;facebook.com&quot;] = true , [&quot;vk.com&quot;] = true },     stripWww = true,     convertIdn = true,     torifyNsLookups = false, -- \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c DNS \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 TOR     blMinimumEntries = 1000, -- \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0435\u0441\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043a\u043e\u0440\u043e\u0447\u0435, \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c     dnsmasqConfigPath = &quot;\/etc\/runblock\/runblock.dnsmasq&quot;,     ipsetConfigPath = &quot;\/etc\/runblock\/runblock.ipset&quot;,     ipsetDns = &quot;rublack-dns&quot;,     ipsetIp = &quot;rublack-ip&quot;,     torDnsAddr = &quot;127.0.0.1#9053&quot; }   local function prequire(package)     local result, err = pcall(function() require(package) end)     if not result then         return nil, err     end     return require(package) -- return the package value end  local idn = prequire(&quot;idn&quot;) if (not idn) and (config.convertIdn) then     error(&quot;you need either put idn.lua (github.com\/haste\/lua-idn) in script dir  or set 'convertIdn' to false&quot;) end  local http = prequire(&quot;socket.http&quot;) if not http then     local ltn12 = require(&quot;ltn12&quot;) end if not ltn12 then     error(&quot;you need either install luasocket package (prefered) or put ltn12.lua in script dir&quot;) end  local function hex2unicode(code)     local n = tonumber(code, 16)     if (n &lt; 128) then         return string.char(n)     elseif (n &lt; 2048) then         return string.char(192 + ((n - (n % 64)) \/ 64), 128 + (n % 64))     else         return string.char(224 + ((n - (n % 4096)) \/ 4096), 128 + (((n % 4096) - (n % 64)) \/ 64), 128 + (n % 64))     end end  local function rublacklistExtractDomains()     local currentRecord = &quot;&quot;     local buffer = &quot;&quot;     local bufferPos = 1     local streamEnded = false     return function(chunk)         local retVal = &quot;&quot;         if chunk == nil then             streamEnded = true         else             buffer = buffer .. chunk         end          while true do             local escapeStart, escapeEnd, escapedChar = buffer:find(&quot;\\\\(.)&quot;, bufferPos)             if escapedChar then                 currentRecord = currentRecord .. buffer:sub(bufferPos, escapeStart - 1)                 bufferPos = escapeEnd + 1                 if escapedChar == &quot;n&quot; then                     retVal = currentRecord                     break                 elseif escapedChar == &quot;u&quot; then                     currentRecord = currentRecord .. &quot;\\\\u&quot;                 else                     currentRecord = currentRecord .. escapedChar                 end             else                 currentRecord = currentRecord .. buffer:sub(bufferPos, #buffer)                 buffer = &quot;&quot;                 bufferPos = 1                 if streamEnded then                     if currentRecord == &quot;&quot; then                         retVal = nil                     else                         retVal = currentRecord                     end                 end                 break             end         end         if retVal and (retVal ~= &quot;&quot;) then             currentRecord = &quot;&quot;             retVal = retVal:match(&quot;^[^;]*;([^;]+);[^;]*;[^;]*;[^;]*;[^;]*.*$&quot;)             if retVal then                 retVal = retVal:gsub(&quot;\\\\u(%x%x%x%x)&quot;, hex2unicode)             else                 retVal = &quot;&quot;             end         end         return (retVal)     end end  local function antizapretExtractDomains()     local currentRecord = &quot;&quot;     local buffer = &quot;&quot;     local bufferPos = 1     local streamEnded = false     return function(chunk)         local haveOutput = 0         local retVal = &quot;&quot;         if chunk == nil then             streamEnded = true         else             buffer = buffer .. chunk         end         local newlinePosition = buffer:find(&quot;\\n&quot;, bufferPos)         if newlinePosition then             currentRecord = currentRecord .. buffer:sub(bufferPos, newlinePosition - 1)             bufferPos = newlinePosition + 1             retVal = currentRecord         else             currentRecord = currentRecord .. buffer:sub(bufferPos, #buffer)             buffer = &quot;&quot;             bufferPos = 1             if streamEnded then                 if currentRecord == &quot;&quot; then                     retVal = nil                 else                     retVal = currentRecord                 end             end         end         if retVal and (retVal ~= &quot;&quot;) then             currentRecord = &quot;&quot;         end         return (retVal)     end end  local function normalizeFqdn()     return function(chunk)         if chunk and (chunk ~= &quot;&quot;) then             if config[&quot;stripWww&quot;] then chunk = chunk:gsub(&quot;^www%.&quot;, &quot;&quot;) end             if idn and config[&quot;convertIdn&quot;] then chunk = idn.encode(chunk) end             if #chunk &gt; 255 then chunk = &quot;&quot; end             chunk = chunk:lower()         end         return (chunk)     end end  local function cunstructTables(bltables)     bltables = bltables or { fqdn = {}, sdcount = {}, ips = {} }     local f = function(blEntry, err)         if blEntry and (blEntry ~= &quot;&quot;) then             if blEntry:match(&quot;^%d+%.%d+%.%d+%.%d+$&quot;) then                 -- ip \u0430\u0434\u0440\u0435\u0441\u0430 - \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f iptables                 if not bltables.ips[blEntry] then                     bltables.ips[blEntry] = true                 end             else                 -- \u043a\u0430\u043a \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, FQDN \u043b\u0438 \u044d\u0442\u043e. \u0437\u0430\u043e\u0434\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0434\u043e\u043c\u0435\u043d 2 \u0443\u0440\u043e\u0432\u043d\u044f (\u0435\u0441\u043b\u0438 \u0432 bl \u0441\u0442\u0430\u043d\u0443\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c TLD - \u0434\u0435\u043b\u043e \u043f\u043b\u043e\u0445\u043e :))                 local subDomain, secondLevelDomain = blEntry:match(&quot;^([a-z0-9%-%.]-)([a-z0-9%-]+%.[a-z0-9%-]+)$&quot;)                 if secondLevelDomain then                     bltables.fqdn[blEntry] = secondLevelDomain                     if 1 &gt; 0 then                         bltables.sdcount[secondLevelDomain] = (bltables.sdcount[secondLevelDomain] or 0) + 1                     end                 end             end         end         return 1     end     return f, bltables end  local function compactDomainList(fqdnList, subdomainsCount)     local domainTable = {}     local numEntries = 0     if config.groupBySld and (config.groupBySld &gt; 0) then         for sld in pairs(subdomainsCount) do             if config.neverGroupDomains[sld] then                 subdomainsCount[sld] = 0                 break             end             for _, pattern in ipairs(config.neverGroupMasks) do                 if sld:find(pattern) then                     subdomainsCount[sld] = 0                     break                 end             end         end     end     for fqdn, sld in pairs(fqdnList) do         if (not fqdnList[sld]) or (fqdn == sld) then             local keyValue;             if config.groupBySld and (config.groupBySld &gt; 0) and (subdomainsCount[sld] &gt; config.groupBySld) then                 keyValue = sld             else                 keyValue = fqdn             end             if not domainTable[keyValue] then                 domainTable[keyValue] = true                 numEntries = numEntries + 1             end         end     end     return domainTable, numEntries end  local function generateDnsmasqConfig(configPath, domainList)     local configFile = assert(io.open(configPath, &quot;w&quot;), &quot;could not open dnsmasq config&quot;)     for fqdn in pairs(domainList) do         if config.torifyNsLookups then             configFile:write(string.format(&quot;server=\/%s\/%s\\n&quot;, fqdn, config.torDnsAddr))         end         configFile:write(string.format(&quot;ipset=\/%s\/%s\\n&quot;, fqdn, config.ipsetDns))     end     configFile:close() end  local function generateIpsetConfig(configPath, ipList)     local configFile = assert(io.open(configPath, &quot;w&quot;), &quot;could not open ipset config&quot;)     configFile:write(string.format(&quot;flush %s-tmp\\n&quot;, config.ipsetIp))     for ipaddr in pairs(ipList) do         configFile:write(string.format(&quot;add %s %s\\n&quot;, config.ipsetIp, ipaddr))     end     configFile:write(string.format(&quot;swap %s %s-tmp\\n&quot;, config.ipsetIp, config.ipsetIp))     configFile:close() end  local retVal, retCode, url  local output, bltables = cunstructTables() if config.blSource == &quot;rublacklist&quot; then     output = ltn12.sink.chain(ltn12.filter.chain(rublacklistExtractDomains(), normalizeFqdn()), output)     url = &quot;http:\/\/reestr.rublacklist.net\/api\/current&quot; elseif config.blSource == &quot;antizapret&quot; then     output = ltn12.sink.chain(ltn12.filter.chain(antizapretExtractDomains(), normalizeFqdn()), output)     url = &quot;http:\/\/api.antizapret.info\/group.php?data=domain&quot; else     error(&quot;blacklist source should be either 'rublacklist' or 'antizapret'&quot;) end  if http then     retVal, retCode = http.request { url = url, sink = output } else     retVal, retCode = ltn12.pump.all(ltn12.source.file(io.popen(&quot;wget -qO- &quot; .. url)), output) end  if (retVal == 1) and ((retCode == 200) or (http == nil)) then     local domainTable, recordsNum = compactDomainList(bltables.fqdn, bltables.sdcount)     if recordsNum &gt; config.blMinimumEntries then         generateDnsmasqConfig(config.dnsmasqConfigPath, domainTable)         generateIpsetConfig(config.ipsetConfigPath, bltables.ips)         print(string.format(&quot;blacklists updated. %d entries.&quot;, recordsNum))         os.exit(0)     end end os.exit(1) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 dnsmasq<\/h6>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/etc\/dnsmasq.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>server=\/onion\/127.0.0.1#9053 ipset=\/onion\/onion  conf-file=\/etc\/runblock\/runblock.dnsmasq <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0435\u043a\u0446\u0438\u044e dnsmasq \/etc\/config\/dhcp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>    list server '8.8.8.8'     list server '8.8.4.4'     list rebind_domain 'onion' <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 netfilter<\/h6>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \/etc\/config\/firewall<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>config ipset \toption name 'rublack-dns' \toption storage 'hash' \toption match 'dest_ip' \toption timeout '86400'  config ipset \toption name 'rublack-ip' \toption storage 'hash' \toption match 'dest_ip'  config ipset \toption name 'rublack-ip-tmp' \toption storage 'hash' \toption match 'dest_ip'  config ipset \toption name 'onion' \toption storage 'hash' \toption match 'dest_ip' \toption timeout '86400'  config redirect \toption name 'torify-blocked-dns' \toption src 'lan' \toption proto 'tcp' \toption ipset 'rublack-dns' \toption dest_port '9040' \toption dest 'lan'  config redirect \toption name 'torify-blocked-ip' \toption src 'lan' \toption proto 'tcp' \toption ipset 'rublack-ip' \toption dest_port '9040' \toption dest 'lan'  config redirect \toption name 'torify-onion' \toption src 'lan' \toption proto 'tcp' \toption ipset 'onion' \toption dest_port '9040' \toption dest 'lan' <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \/etc\/firewall.user<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>cat \/etc\/runblock\/runblock.ipset | ipset restore <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Tor <\/h6>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/etc\/torrc<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>User tor PidFile \/var\/run\/tor.pid DataDirectory \/var\/lib\/tor     ExcludeExitNodes {RU} VirtualAddrNetwork 10.254.0.0\/16  # \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043b\u044f .onion \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432  AutomapHostsOnResolve 1 TransPort 9040 TransListenAddress 127.0.0.1 TransListenAddress 192.168.1.1    #\u0430\u0434\u0440\u0435\u0441 LAN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 DNSPort 9053 DNSListenAddress 127.0.0.1 #AvoidDiskWrites 1 # \u0432 OpenWrt \/var \u0438 \u0442\u0430\u043a \u0432 RAM (tmpfs) \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0432 \u043e\u043f\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <code>\/etc\/runblock<\/code>, \u0440\u0430\u0437\u043e\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043a\u0440\u0438\u043f\u0442 <code>lua \/usr\/bin\/rublupdate.lua<\/code>, \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 cron (\u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u2014 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e) \u0438 \u0437\u0430\u0431\u044b\u0442\u044c \u043e \u0440\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440\u0435. \u041d\u0443 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0447\u043d\u0443\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0440, \u0438\u043b\u0438 \u0441\u0430\u0439\u0442\u044b, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0435\u0441\u0442\u0440).       <\/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\/270657\/\"> http:\/\/habrahabr.ru\/post\/270657\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u0437\u0430\u043e\u0441\u0442\u0440\u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b <a href=\"http:\/\/habrahabr.ru\/post\/219623\/\">\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u0445 \u0438\u0445 \u043e\u0431\u0445\u043e\u0434\u0430<\/a> <a href=\"http:\/\/rutracker.wiki\/\u041a\u0430\u043a_\u043e\u0431\u043e\u0439\u0442\u0438_\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443_\u0441\u0430\u0439\u0442\u0430_\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c\">\u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e<\/a> <a href=\"http:\/\/rublacklist.net\/bypass\/\">\u043d\u0435\u043c\u0430\u043b\u043e<\/a>, \u0438 \u043f\u0435\u0440\u0435\u0436\u0435\u0432\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u043d\u0435\u0437\u0430\u0447\u0435\u043c. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u0430 (\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e, \u0441 \u0447\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043a \u0430\u0439\u0442\u0438 \u043d\u0435\u0431\u043b\u0438\u0437\u043a\u0438\u0439).<\/p>\n<p>  \u041d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c, \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c, \u0447\u0442\u043e \u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0430\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0445 <a href=\"http:\/\/geektimes.ru\/post\/265514\/#comment_8869950\">\u043a\u043e\u043f\u0438\u0440\u0430\u0441\u0442\u043e\u0432-\u043f\u043b\u0430\u0433\u0438\u0430\u0442\u043e\u0440\u043e\u0432<\/a>. <\/p>\n<p>  \u0421\u0430\u043c\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0443\u0436\u0435 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435.  <\/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-267974","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267974","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=267974"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267974\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}