{"id":254948,"date":"2015-04-10T13:06:03","date_gmt":"2015-04-10T09:06:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254948"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254948","title":{"rendered":"\u0420\u0430\u0437\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u043e\u0442\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b Yandex.Root"},"content":{"rendered":"<p>     \t\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u043e\u0447\u044c\u044e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0433\u0440\u0430 \u043e\u0442\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u0442\u0443\u0440\u0430 <a href=\"https:\/\/root.yandex.com\/\">Yandex.Root<\/a> \u2014 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b \u0434\u043b\u044f Unix-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432. \u0412 \u043d\u0435\u0439 \u043f\u0440\u0438\u043d\u044f\u043b\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u0435 456 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438\u0437 229 \u043a\u043e\u043c\u0430\u043d\u0434, 194 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u0421\u043e \u0432\u0441\u0435\u043c\u0438 \u0434\u0435\u0432\u044f\u0442\u044c\u044e \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c 38 \u043a\u043e\u043c\u0430\u043d\u0434. <\/p>\n<p>  \u041c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043c Root \u0435\u0451 \u0432 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439 \u0440\u0430\u0437, \u043d\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u0430\u0441\u043a\u043e\u0432. \u0417\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0434\u0430\u0451\u043c \u043d\u0430 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0435, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b \u0441 \u0442\u0435\u043c\u0438, \u0447\u0442\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0440\u0435\u0448\u0430\u044e\u0442 \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b. \u0412 \u042f\u043d\u0434\u0435\u043a\u0441\u0435 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u044b\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u044d\u0442\u043e \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0442\u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>  <a href=\"http:\/\/habrahabr.ru\/company\/yandex\/blog\/255449\/\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/6d3\/4a2\/b15\/6d34a2b1590449159129c06e45e3a04a.png\"\/><\/a><\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432 \u2013 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0434\u043a\u0438\u0439 \u0436\u0430\u043d\u0440, \u0447\u0435\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u043e\u0434\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u043f\u0440\u043e\u0445\u043e\u0434\u0446\u0430\u043c\u0438. \u041c\u044b \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0430\u043a\u0438\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u043b\u0438 \u0431\u044b \u0432 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0432\u0430\u0436\u043d\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0441\u0443\u0434\u0438\u0442\u044c \u0432\u0430\u043c. <\/p>\n<p>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u043c \u043e\u0431 \u044d\u0442\u043e\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435. \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u0435. \u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0439\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0442\u044b\u0440\u0435 \u0434\u043d\u044f \u2014 \u0432\u043e \u0432\u0442\u043e\u0440\u043d\u0438\u043a 14 \u0430\u043f\u0440\u0435\u043b\u044f, \u0438 \u043d\u0430 \u043d\u0435\u0451 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/root.yandex.com\/team\/create\">\u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f<\/a>. <\/p>\n<h2> \u0418\u0433\u0440\u0430 Shannon<\/h2>\n<p>  \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u0433\u0440\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043e \u043b\u044e\u0434\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u0430\u0434 \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u042d\u0442\u0430 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Claude_Shannon\">\u041a\u043b\u043e\u0434\u0443 \u0428\u0435\u043d\u043d\u043e\u043d\u0443<\/a>, \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0443 \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u0430\u0440\u0438\u043b \u043d\u0430\u043c \u0441\u043b\u043e\u0432\u043e \u00ab\u0431\u0438\u0442\u00bb. \u041a\u0441\u0442\u0430\u0442\u0438, \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"https:\/\/root.yandex.ru\">root.yandex.ru<\/a> \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043d\u0430 compute \u0443\u0437\u043b\u0430\u0445 private cloud \u042f\u043d\u0434\u0435\u043a\u0441\u0430.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0426\u0435\u043b\u044c \u043e\u0442\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b \u2014 \u0440\u0435\u0448\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u041e\u0421: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 \u0438\u043b\u0438 \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0417\u0430\u0434\u0430\u0447\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438, \u0442\u0430\u043a \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u00ab\u0437\u0430\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u00bb, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c Critical (\u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c) \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b. \u0415\u0435 \u043e\u0431\u0440\u0430\u0437 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u043e\u0431\u0440\u0430\u0437 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u2014 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442\u0441\u044f \u0438 \u0440\u0430\u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u043f\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0433\u0440\u044b.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0438\u0433\u0440\u043e\u0432\u044b\u043c VPN. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f config-\u0444\u0430\u0439\u043b: \u043a\u0430\u043f\u0438\u0442\u0430\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e \u043f\u043e\u0447\u0442\u0435 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043a\u0438, \u0447\u043b\u0435\u043d\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u2014 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u043f\u0438\u0442\u0430\u043d\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0442\u0440\u0430\u0442\u044b \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u00abdownload\u00bb. \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a VPN \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0440\u0435\u0448\u0430\u0442\u044c \u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e. <\/p>\n<h3>Base<\/h3>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u044d\u0442\u043e\u0439 \u0438\u0433\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/en.wikipedia.org\/wiki\/Arch_Linux\">ArchLinux<\/a>. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u00abshannon login:\u00bb. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0443 \u0438\u0433\u0440\u043e\u043a\u0430 \u043d\u0435\u0442. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435\u043c \u00ab\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e\u00bb \u0434\u043e\u0441\u0442\u0443\u043f\u0430<br \/>  \u043a \u043c\u0430\u0448\u0438\u043d\u0435 \u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<ul>\n<li>\u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f, \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0441\u0447\u0451\u0442\u0430 \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0435 Grub;<\/li>\n<li>\u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c &#8216;e&#8217;, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 linux \u2026, \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 init=\/bin\/bash;<\/li>\n<li>\u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Ctrl-X, \u0436\u0434\u0451\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438;<\/li>\n<li>\u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>passwd<\/code>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c;<\/li>\n<li>\u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>exec \/sbin\/init<\/code>, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043d\u043e\u0432\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0437\u043d\u0430\u0447\u0438\u0442, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043a \u0440\u0430\u0431\u043e\u0442\u0435:<\/p>\n<ul>\n<li>\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c: <code>pacman-Sy<\/code>, <code>pacman-key --populate<\/code>;<\/li>\n<li>\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440: <code>pacman -S pacman<\/code>, <code>pacman-db-upgrade;<\/code><\/li>\n<li>\u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f tcpdump \u0438 strace: <br \/>  <code>pacman -S tcpdump strace.<\/code><\/li>\n<\/ul>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 <i>game<\/i>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b (\u0434\u0430\u043b\u0435\u0435 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438) \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0438\u0433\u0440\u0430 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c OpenVPN. \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 (\u043e\u043d \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0451\u043d \u043a \u043f\u0438\u0441\u044c\u043c\u0443 \u043e\u0442 Yandex.Root) \u0432 \/etc\/openvpn\/openvpn.conf \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>systemctl start openvpn@openvpn<\/code>.<\/p>\n<h3>1.SSL<\/h3>\n<p>  \u042d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u043c \u0438\u0437 \u0432\u0441\u0435\u0445. \u0421\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441 \u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 SudariLudari. \u0412 \u0437\u0430\u0434\u0430\u0447\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Set up a webserver with SSL<\/b><\/p>\n<div class=\"spoiler_text\">Here is a private key and a certificate for a CA to generate your certificate:<br \/>   &#8212;&#8212;BEGIN RSA PRIVATE KEY&#8212;&#8212;<br \/>   MIICXAIBAAKBgQCjKwGnBHUwQtTzLb5uhrh+eRRAQyQwGzCg+n4XWzt8M+iX\/OGx<br \/>   4QCG4GjKhi9Nqzhm41+AjPB5cndU3Oe5j1LrcvWvxe2n15FG7hPSLG5dHe97pzpj<br \/>   KVma8OkcrUc6WWIccZ48FlV21ZCeUFukthtqEDDEEw1CxEnwHgIydnynlwIDAQAB<br \/>   AoGADTAfrREmK6VrMtCCsMpAxTAiG+ORXDYGYyx73oVoNGy5ovc0gr0N3tjqf1wD<br \/>   HML3BxHfmTNLCHXhAUHtlMjpya7kkJELurrFgEQ9gkcdogcf8Iw\/J6GjBpJG2WlX<br \/>   vVL4zEiYw0T5TULGI54Iest0ZQx88EX8r+6x1jI668RHCtECQQDYUPLf2K\/0FUyk<br \/>   csXoKq1ECseSVpfhG5NITqsLOc93jh3xAQFYtSuM7E3CeHkP+ZoKY\/SGd9QkWrhd<br \/>   QQFoGL5vAkEAwRoCwNqlUWwTVayGdgw\/D\/mxtFelKRYl8kj50MeMraBqHM\/ijXZt<br \/>   +wF5exUmuPio+nF64UIqLA1VCYhnqJ49WQJAL3DJY0hdhnVpYqN9PeamK0cF79Un<br \/>   6AmpKnF+V67tDjZP4LwstGy\/SV\/FygGr41IFc4Pqa9c54mM3DdSk31SV5wJAHW9f<br \/>   mBI8PQsib17bKEd5nW\/MfNcXYAn2QtaI7iBc+2KGilnOCQ5SeX6iC\/cPbgbJi1Od<br \/>   DZVOZGSr38YhNvzYEQJBALoFJQEg6Xj44ClcJFIjbA+xyipk4h5JcmGvpUeKfaKF<br \/>   EBSJMECLR8wIa5XUkeRuM30JhTkd0s3WPUFaoBAvcvs=<br \/>   &#8212;&#8212;END RSA PRIVATE KEY&#8212;&#8212;<\/p>\n<p>   &#8212;&#8212;BEGIN CERTIFICATE&#8212;&#8212;<br \/>   MIIDHzCCAoigAwIBAgIJALEwbIlKhnreMA0GCSqGSIb3DQEBBQUAMGkxCzAJBgNV<br \/>   BAYTAlJVMQ8wDQYDVQQIEwZNb3Njb3cxDzANBgNVBAcTBk1vc2NvdzEPMA0GA1UE<br \/>   ChMGWWFuZGV4MQ0wCwYDVQQLEwRSb290MRgwFgYDVQQDEw9yb290LnlhbmRleC5j<br \/>   b20wHhcNMTUwNDA2MTY0MzA5WhcNMTYwNDA1MTY0MzA5WjBpMQswCQYDVQQGEwJS<br \/>   VTEPMA0GA1UECBMGTW9zY293MQ8wDQYDVQQHEwZNb3Njb3cxDzANBgNVBAoTBllh<br \/>   bmRleDENMAsGA1UECxMEUm9vdDEYMBYGA1UEAxMPcm9vdC55YW5kZXguY29tMIGf<br \/>   MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCjKwGnBHUwQtTzLb5uhrh+eRRAQyQw<br \/>   GzCg+n4XWzt8M+iX\/OGx4QCG4GjKhi9Nqzhm41+AjPB5cndU3Oe5j1LrcvWvxe2n<br \/>   15FG7hPSLG5dHe97pzpjKVma8OkcrUc6WWIccZ48FlV21ZCeUFukthtqEDDEEw1C<br \/>   xEnwHgIydnynlwIDAQABo4HOMIHLMB0GA1UdDgQWBBQG+ykV13EVW9XxCTncLjLV<br \/>   YVX83TCBmwYDVR0jBIGTMIGQgBQG+ykV13EVW9XxCTncLjLVYVX83aFtpGswaTEL<br \/>   MAkGA1UEBhMCUlUxDzANBgNVBAgTBk1vc2NvdzEPMA0GA1UEBxMGTW9zY293MQ8w<br \/>   DQYDVQQKEwZZYW5kZXgxDTALBgNVBAsTBFJvb3QxGDAWBgNVBAMTD3Jvb3QueWFu<br \/>   ZGV4LmNvbYIJALEwbIlKhnreMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD<br \/>   gYEAmvNk8iAbV4+YMq\/9oxkMeB6RxLs9m6jhYyAPuAI\/dUhWSX+D+BnRcbsHWK4r<br \/>   a9G\/riM1zerb5BD1apMz3faON2ydFJGB0thjlgr\/KXfgaUXjp15QslEhsyhZIgEB<br \/>   Tak+0BQkkh5+cFAvJhGCZqajr6m2I8Dix3mF3Ey7nSx1GDU=<br \/>   &#8212;&#8212;END CERTIFICATE&#8212;&#8212;<\/div>\n<\/div>\n<p>  \u0417\u0430\u043f\u0438\u0448\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u044b ca.crt \u0438 ca.key \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430:<\/p>\n<pre><code class=\"bash\"># openssl x509 -in ca.crt -noout -text Certificate:     Data:         Version: 3 (0x2)         Serial Number: 12767824280512002782 (0xb1306c894a867ade)     Signature Algorithm: sha1WithRSAEncryption         Issuer: C=RU, ST=Moscow, L=Moscow, O=Yandex, OU=Root, CN=root.yandex.com         Validity             Not Before: Apr  6 16:43:09 2015 GMT             Not After : Apr  5 16:43:09 2016 GMT         Subject: C=RU, ST=Moscow, L=Moscow, O=Yandex, OU=Root, CN=root.yandex.com         Subject Public Key Info:             Public Key Algorithm: rsaEncryption                 Public-Key: (1024 bit)                 Modulus:                     00:a3:2b:01:a7:04:75:30:42:d4:f3:2d:be:6e:86:                     b8:7e:79:14:40:43:24:30:1b:30:a0:fa:7e:17:5b:                     3b:7c:33:e8:97:fc:e1:b1:e1:00:86:e0:68:ca:86:                     2f:4d:ab:38:66:e3:5f:80:8c:f0:79:72:77:54:dc:                     e7:b9:8f:52:eb:72:f5:af:c5:ed:a7:d7:91:46:ee:                     13:d2:2c:6e:5d:1d:ef:7b:a7:3a:63:29:59:9a:f0:                     e9:1c:ad:47:3a:59:62:1c:71:9e:3c:16:55:76:d5:                     90:9e:50:5b:a4:b6:1b:6a:10:30:c4:13:0d:42:c4:                     49:f0:1e:02:32:76:7c:a7:97                 Exponent: 65537 (0x10001)         X509v3 extensions:             X509v3 Subject Key Identifier:                  06:FB:29:15:D7:71:15:5B:D5:F1:09:39:DC:2E:32:D5:61:55:FC:DD             X509v3 Authority Key Identifier:                  keyid:06:FB:29:15:D7:71:15:5B:D5:F1:09:39:DC:2E:32:D5:61:55:FC:DD                 DirName:\/C=RU\/ST=Moscow\/L=Moscow\/O=Yandex\/OU=Root\/CN=root.yandex.com                 serial:B1:30:6C:89:4A:86:7A:DE              X509v3 Basic Constraints:                  CA:TRUE     Signature Algorithm: sha1WithRSAEncryption          9a:f3:64:f2:20:1b:57:8f:98:32:af:fd:a3:19:0c:78:1e:91:          c4:bb:3d:9b:a8:e1:63:20:0f:b8:02:3f:75:48:56:49:7f:83:          f8:19:d1:71:bb:07:58:ae:2b:6b:d1:bf:ae:23:35:cd:ea:db:          e4:10:f5:6a:93:33:dd:f6:8e:37:6c:9d:14:91:81:d2:d8:63:          96:0a:ff:29:77:e0:69:45:e3:a7:5e:50:b2:51:21:b3:28:59:          22:01:01:4d:a9:3e:d0:14:24:92:1e:7e:70:50:2f:26:11:82:          66:a6:a3:af:a9:b6:23:c0:e2:c7:79:85:dc:4c:bb:9d:2c:75:          18:35<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0441 \u0442\u0435\u043c\u0438 \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438:<\/p>\n<pre><code class=\"bash\"># openssl req -out cert.csr -new -nodes  Country Name (2 letter code) [AU]:RU State or Province Name (full name) [Some-State]:Moscow Locality Name (eg, city) []: Organization Name (eg, company) [Internet Widgits Pty Ltd]:Yandex Organizational Unit Name (eg, section) []:Root Common Name (e.g. server FQDN or YOUR name) []:10.0.0.15 Email Address []:  Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:<\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430:<\/p>\n<pre><code class=\"bash\"># mkdir \/etc\/ssl\/newcerts # echo 01 &gt; \/etc\/ssl\/serial # touch \/etc\/ssl\/index.txt<\/code><\/pre>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0435\u0440\u043d\u0451\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u0442\u0435\u043a\u0441\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u0441\u0442\u043e\u043b\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d:<\/p>\n<pre><code># openssl ca -cert ca.crt -keyfile ca.key -in cert.csr -out cert.crt Using configuration from \/etc\/ssl\/openssl.cnf Check that the request matches the signature Signature ok The stateOrProvinceName field needed to be the same in the CA certificate (Moscow) and the request (Moscow)<\/code><\/pre>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435<br \/>  \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u0445. \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b <i>\/etc\/ssl\/openssl.cnf<\/i> \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>string_mask<\/code> \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <code>[req]<\/code> \u043d\u0430 <code>pkix<\/code>.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"bash\"># mv privkey.pem cert.key # cat ca.crt &gt;&gt; cert.crt<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 <code>(pacman -S nginx)<\/code> \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c SSL \u0432 <i>\/etc\/nginx\/nginx.conf%<\/i>, \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e <i>server{}<\/i>.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<pre><code class=\"bash\"># nginx -t nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful # systemctl restart nginx<\/code><\/pre>\n<p>  \u041d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u043e\u0439 <i>\u00abSSLv3 is weak\u00bb<\/i>. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u0443\u044e <a href=\"https:\/\/mozilla.github.io\/server-side-tls\/ssl-config-generator\/\">Mozilla<\/a>:<\/p>\n<ul>\n<li>\u043e\u0442\u043c\u0435\u0442\u0438\u043c \u043e\u043f\u0446\u0438\u0438 Nginx \u0438 Modern, \u0432\u0441\u0442\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432 <i>nginx.conf<\/i>;<\/li>\n<li>\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430: <code>openssl dhparam -out dhparam.pem -outform PEM -2 2048<\/code>;<\/li>\n<li>\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <i>nginx<\/i>: <code>systemctl restart nginx.<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<h3>2.MariaDB repair<\/h3>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<blockquote><p>There is a MariaDB database in \/var\/lib\/mysql. We had access there with login &#8216;checker&#8217; and password &#8216;masterkey&#8217;, but something went wrong.  <\/p>\n<pre><code class=\"bash\">BTW, the `data` table structure was:      +-------+---------+------+-----+---------+-------+   | Field | Type    | Null | Key | Default | Extra |   +-------+---------+------+-----+---------+-------+   | name  | text    | YES  |     | NULL    |       |   | hits  | int(11) | YES  |     | NULL    |       |   | size  | int(11) | YES  |     | NULL    |       |   +-------+---------+------+-----+---------+-------+<\/code><\/pre>\n<\/blockquote>\n<p>  \u0418\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 <a href=\"https:\/\/en.wikipedia.org\/wiki\/MariaDB\">MariaDB<\/a>, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043a MySQL.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0421\u0423\u0411\u0414: <code>pacman -S mariadb<\/code> \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>systemctl start mysqld<\/code>. \u0418\u0437 \u043b\u043e\u0433\u043e\u0432 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e <i>mysqld<\/i> \u0438\u0449\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0432 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0418\u0437 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>\/etc\/mysql\/my.cnf<\/code> \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0441\u0435\u0442\u0435\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <i>skip-networking<\/i>, <i>bind-address<\/i>, \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>datadir<\/i>. \u0427\u0442\u043e\u0431\u044b \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f, \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0447\u0438\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438; \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0439:<\/p>\n<pre><code class=\"bash\">[mysqld] key_buffer_size = 16M max_allowed_packet = 1M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M tmpdir = '\/var\/tmp'<\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u2014 <code>chown -R mysql:mysql \/var\/lib\/mysql<\/code>, \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0435\u0449\u0451 \u0440\u0430\u0437 \u2014 <code>systemctl restart mysqld<\/code>.<\/p>\n<p>  \u0423\u0440\u0430, <i>mysqld<\/i> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f:  <\/p>\n<pre><code class=\"bash\"># mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)<\/code><\/pre>\n<p>  \u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430, \u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0430\u043c \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d\/ \u0417\u043d\u0430\u0447\u0438\u0442, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0433\u043e:<\/p>\n<ul>\n<li>\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <code>mysqld: systemctl stop mysqld<\/code>;<\/li>\n<li>\u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u0441\u0431\u0440\u043e\u0441\u0430: <code>echo &quot;UPDATE mysql.user SET password = PASSWORD('root') where user = 'root';&quot; &gt; \/tmp\/reset.sql<\/code>;<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c mysqld \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430: <code>mysqld --user=mysql --init-file=\/tmp\/reset.sql<\/code>;<\/li>\n<li>\u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <i>mysqld<\/i> \u0448\u0442\u0430\u0442\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u044c <code>Ctrl-\\<\/code>;<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c unit \u0441\u043d\u043e\u0432\u0430 \u2014 <code>systemctl start mysqld<\/code><\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043c\u044b \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c <code>root<\/code>. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c: <code>mysql -ppassword -uroot<\/code>. \u0418\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>show databases<\/code> \u0432\u0438\u0434\u0438\u043c \u0444\u0430\u043a\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b <code>db<\/code>, \u043d\u043e \u0432 \u043d\u0435\u0439 \u043d\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b <code>data<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u0436\u0435, \u044d\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0435\u0441\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 <code>(\/var\/lib\/mysql\/db\/data.ibd)<\/code>. \u041d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 table definition (data.frm).<\/p>\n<p>  \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u0442\u044c frm \u0431\u0435\u0437 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441: <\/p>\n<pre><code class=\"bash\">create table data2 (name text, hits int(11), size int(11));<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c data \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0441\u0451 \u0435\u0449\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0435\u0451 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0444\u0430\u0439\u043b \u0434\u0430\u043d\u043d\u044b\u0445 \u043a \u043d\u0430\u0448\u0435\u0439 \u043d\u043e\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043c \u00ab\u043f\u0443\u0441\u0442\u043e\u0439\u00bb ibd-\u0444\u0430\u0439\u043b \u043e\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b: <code>alter table data2 discard tablespace;<\/code>, \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u043c <code>mv data.ibd data2.ibd<\/code> \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e <code>alter table data2 import tablespace;<\/code>.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a db.data \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0447\u0438\u0441\u043b\u0438\u0442\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445, \u0442\u043e <code>drop table db.data<\/code> \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c. \u041f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u043d\u0435\u0451 \u043d\u043e\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0443\u044e, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e:<\/p>\n<pre><code class=\"bash\">rename table db.data2 to db2.data; drop database db; create database db character set utf8; rename table db2.data to db.data; alter table db.data engine = innodb;<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043b\u0438\u0448\u044c \u0432\u044b\u0434\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e: <code>grant all privileges on db.* to 'checker'@'%' identified by 'masterkey';<\/code>. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0438\u0437-\u0437\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e tcpdump \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e mysqld \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0444\u0430\u0435\u0440\u0432\u043e\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>iptables-save<\/code> \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u043b\u043e\u0434\u0435\u0435\u043c, \u2014 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 nat \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u041e\u0434\u043d\u0430\u043a\u043e, \u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0435\u0442\u0438 \u2014 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043d\u043e\u0432\u0430.<\/p>\n<p>  \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u0437\u0432\u0430\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u043e\u0439 <i>crontab<\/i>. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c <code>(crontab -l, cat \/etc\/cron.* \/etc\/crontab \/etc\/cron.d\/*)<\/code> \u0438 \u0443\u0434\u0430\u043b\u0438\u043c \u0432\u0441\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <code>(crontab -r)<\/code>.<\/p>\n<h3>3.Binary<\/h3>\n<p>  <\/p>\n<blockquote><p>Run 1.exe<\/p><\/blockquote>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u00ab\u043d\u0435\u043e\u0431\u044b\u0447\u043d\u0443\u044e\u00bb \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443. \u0418\u0437 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u2014 \u00ab1.exe\u00bb. \u041d\u0430\u0439\u0434\u0451\u043c \u0444\u0430\u0439\u043b \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/p>\n<pre><code class=\"bash\"># find \/ -iname 1.exe \/root\/1\/1.exe # file \/root\/1\/1.exe \/root\/1\/1.exe: PE32 executable (console) Intel 80386 Mono\/.Net assembly, for MS Windows<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 .NET-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 <i>GNU\/Linux<\/i> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0440\u0435\u0434\u0430 mono. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0451 <code>(pacman -S mono)<\/code> \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443:<\/p>\n<pre><code class=\"bash\"># cd \/root\/1 # mono 1.exe <\/code><\/pre>\n<p>  \u041d\u043e \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043d\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043a\u0430\u043a \u043a\u0430\u0436\u0435\u0442\u0441\u044f. \u0412 \u043e\u0442\u0432\u0435\u0442, <i>game<\/i> \u0432\u0435\u0440\u043d\u0451\u0442:<\/p>\n<pre><code class=\"bash\">Name: Binary Status: uncompleted Output: bad program<\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 1.exe. \u0417\u0430\u043f\u0443\u0441\u043a <i>mono<\/i> \u043f\u043e\u0434 <i>strace<\/i> \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 TCP-\u0441\u043e\u043a\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439. \u041f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <i>tcpdump<\/i> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0438\u0445.<\/p>\n<p>  \u0427\u0430\u0441\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043f\u043e\u0438\u0441\u043a\u0430\u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043f\u0440\u0438\u0451\u043c\u043e\u043c \u2014 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c <code>binutils<\/code> \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 <i>strings<\/i> \u043d\u0430 \u0444\u0430\u0439\u043b 1.exe. \u041e\u0434\u0438\u043d \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439:<\/p>\n<pre><code class=\"bash\">System.Core mscorlib System.Xml dnAnalytics<\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u0440\u043e\u043c\u0435 <i>dnAnalytics<\/i>, \u0432\u0445\u043e\u0434\u044f\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 <i>mono<\/i> \u2014 \u044d\u0442\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 <code>(pacman -Ql mono)<\/code>.<\/p>\n<h3>4.Mongo<\/h3>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 MongoDB, \u0437\u0430\u043f\u0438\u0441\u0430\u0432 \u0432 \u043d\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438.<\/p>\n<blockquote><p>There is a database in \/var\/lib\/db.tar.gz.<\/p>\n<p>   Make a root.features collection with 2 shards and make it available on the standard port.  <\/p><\/blockquote>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c mongodb: <code>pacman -S mongodb<\/code>. \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0430\u0440\u0445\u0438\u0432 \u0441 \u0431\u0430\u0437\u043e\u0439, \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0435\u0433\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e:<\/p>\n<pre><code class=\"bash\">cd \/var\/lib\/mongodb tar jxf \/var\/lib\/db.tar.bz2 mongod --dbpath db mongodump rm -rf db<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0430\u044f \u0431\u0430\u0437\u0430, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f <i>configdb<\/i>. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0451:<\/p>\n<pre><code class=\"bash\">mkdir -p \/data\/configdb mongod --configsvr &<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u00ab\u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u00bb mongos: <code>mongos --configdb localhost &<\/code>. \u0412 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0434\u0432\u0430 \u0448\u0430\u0440\u0434\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0434\u0432\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 <i>mongod<\/i>:<\/p>\n<pre><code class=\"bash\">mkdir \/var\/lib\/mongodb\/s1 \/var\/lib\/mongodb\/s2 mongod --dbpath \/var\/lib\/mongodb\/s1 --port 30001 --nojournal & mongod --dbpath \/var\/lib\/mongodb\/s1 --port 30002 --nojournal &<\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0438\u0445 \u043a <i>mongos<\/i>:<\/p>\n<pre><code class=\"bash\"># mongo mongos&gt; sh.addShard(&quot;localhost:30001&quot;) mongos&gt; sh.addShard(&quot;localhost:30002&quot;) mongos&gt; sh.enableSharding(&quot;root&quot;)<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0430\u043c\u043f \u043e\u0431\u0440\u0430\u0442\u043d\u043e: <code>mognorestore --port 30001 dump\/<\/code>.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f root.features \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0448\u0430\u0440\u0434\u0430\u043c\u0438. \u0420\u0435\u0448\u0438\u043c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0441\u043e\u0437\u0434\u0430\u0432 \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0432 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a:<\/p>\n<pre><code class=\"bash\"># mongo root mongos&gt; db.features.ensureIndex({&quot;_id&quot;:&quot;hashed&quot;}) mongos&gt; sh.shardCollection(&quot;root.features&quot;, {&quot;_id&quot;:&quot;hashed&quot;}) mongos&gt; sh.enableBalancing(&quot;root.features&quot;)<\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043e\u0436\u0434\u0430\u0432, \u043f\u043e\u043a\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0448\u0430\u0440\u0434\u0430\u043c\u0438, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e.<\/p>\n<h3>5.Strange protocol<\/h3>\n<p>  \u042d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u0430\u043c\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u0430\u043a \u043c\u044b \u0438 \u0441\u0430\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438.  <\/p>\n<blockquote><p>Set up an echo server on port 13000.<\/p><\/blockquote>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0445\u043e-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 13000.<\/p>\n<p>  \u042d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u2014 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u044d\u0445\u043e-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u0436\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Xinetd\">xinetd<\/a>. \u0417\u0430\u043f\u0443\u0441\u043a <i>tcpdump port 13000<\/i> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0431\u043c\u0435\u043d \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 UDP, \u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <i>echo-dgram<\/i> \u0432 <i>xinetd<\/i> \u043d\u0435 \u0434\u0430\u0451\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u0440\u0430\u0444\u0438\u043a \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u2014 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <i>tcpdump<\/i>, \u043d\u043e \u0443\u0436\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c -X. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c:<\/p>\n<pre><code class=\"bash\"> 0x0010:  0a00 000f ebee 32c8 0012 ffd6 656e 6574  ......2.....enet         0x0020:  2065 7272 6f72                           .error <\/code><\/pre>\n<p>  \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0443 <code>enet<\/code> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u0430\u0439\u0442\u0443, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 enet, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 UDP, \u043d\u0435 \u0437\u0430\u0431\u043e\u0442\u044f\u0441\u044c \u043e \u043f\u043e\u0442\u0435\u0440\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 (\u043a\u0430\u043a \u0432 TCP).<\/p>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <code>pyenet<\/code>, \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0435 \u043a <i>enet<\/i> \u0434\u043b\u044f \u044f\u0437\u044b\u043a\u0430 Python, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443:<\/p>\n<pre><code class=\"python\">import enet import sys  host = enet.Host(enet.Address(b'0.0.0.0', 13000), 100, 0, 0)  while True:     evt = host.service(0)     if evt.type == enet.EVENT_TYPE_RECEIVE:         data = evt.packet.data         evt.peer.send(0, enet.Packet(data))<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<pre><code class=\"bash\">pacman -S git git clone git:\/\/github.com\/aresch\/pyenet cd pyenet git clone git:\/\/github.com\/lsalzman\/enet pacman -S cython base-devel python setup.py build python setup.py install<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<h3>6.File<\/h3>\n<p>  \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0438 root.txt \u0433\u0434\u0435-\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 <i>\/root\/file<\/i>.  <\/p>\n<blockquote><p>There is a \/root\/file inside your image. Find a good root.txt file and make it available via <a href=\"http:\/\/image_ip\/root.txt\">image_ip\/root.txt<\/a>.<\/p><\/blockquote>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0435\u043c \u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <i>\/root\/file<\/i>:<\/p>\n<pre><code class=\"bash\"># file \/root\/file  \/root\/file: LVM2 PV (Linux Logical Volume Manager), UUID: XT6zLL-YAUv-nmA9-BSrw-2pBV-CTi2-vqKe35, size: 31457280<\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043e\u0431\u0440\u0430\u0437 \u0434\u0438\u0441\u043a\u0430. \u0412 Linux \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430 <i>loop<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0431\u043b\u043e\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0438\u043c:<\/p>\n<pre><code class=\"bash\">losetup \/dev\/loop0 \/root\/file<\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e\u043c LVM, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e \u0448\u0442\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438:  <\/p>\n<pre><code class=\"bash\"># vgchange -ay   1 logical volume(s) in volume group &quot;VolGroup00&quot; now active <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438:<\/p>\n<pre><code class=\"bash\">mount \/dev\/mapper\/VolGroup00-lv0 \/mnt ls \/mnt<\/code><\/pre>\n<p>  \u0412\u0438\u0434\u0438\u043c <i>root.txt.gz<\/i>, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c: <code>gunzip \/mnt\/root.txt.gz<\/code>.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 nginx \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f SSL, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0438\u043c \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e HTTP:  <\/p>\n<pre><code class=\"bash\">umount \/mnt mount \/dev\/mapper\/VolGroup00-lv0 \/usr\/share\/nginx\/html\/ <\/code><\/pre>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u2014 \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043d\u0435 \u0442\u043e\u0442 <i>root.txt<\/i>. \u0411\u0443\u0434\u0435\u043c \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0430\u044f \u0443 \u043d\u0430\u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430:  <\/p>\n<pre><code class=\"bash\"> # file -s \/dev\/dm-0 \/dev\/dm-0: BTRFS Filesystem sectorsize 4096, nodesize 4096, leafsize 4096)<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Btrfs\">btrfs<\/a> \u0435\u0441\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u0438\u0435 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Btrfs#Subvolumes_and_snapshots\">subvolume<\/a>, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0438\u0445 \u0441\u043f\u0438\u0441\u043e\u043a:<\/p>\n<pre><code class=\"bash\"># pacman -S btrfs-progs # btrfs subvolume list \/usr\/share\/nginx\/html\/ ID 256 gen 14 top level 5 path root ID 257 gen 11 top level 5 path root_1<\/code><\/pre>\n<p>  \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d <i>subvolume<\/i> \u2014 root_1. \u0421\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e:<\/p>\n<pre><code class=\"bash\">umount \/usr\/share\/nginx\/html mount -t btrfs -o subvol=root_1 \/dev\/mapper\/VolGroup00-lv0 \/usr\/share\/nginx\/html\/<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b <i>root.txt.gz<\/i>. \u0420\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0435\u0433\u043e: <nobr>gunzip<code>\/usr\/share\/nginx\/html\/root.txt.gz<\/code><\/nobr>.<\/p>\n<p>  \u042d\u0442\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<h3>7.MariaDB Tuning<\/h3>\n<p>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 MariaDB repair \u043c\u044b \u043f\u043e\u0447\u0438\u043d\u0438\u043b\u0438 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e. \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e.<\/p>\n<blockquote><p>The repaired MariaDB is slow. Tune it up.<\/p><\/blockquote>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0433\u0434\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442 \u043d\u0430\u0448\u0430 \u0431\u0430\u0437\u0430. \u0412\u043a\u043b\u044e\u0447\u0438\u043c <i>slow query log<\/i>, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0434\u043e\u043b\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b:<\/p>\n<pre><code class=\"bash\"> mysql -u root -ppassword db mysql&gt; set global slow_query_log = ON; mysql&gt; set global long_query_time = 1;<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043b\u043e\u0433: <code>tail \/var\/lib\/mysql\/shannon-slow.log<\/code>.<\/p>\n<p>  \u0412\u0438\u0434\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441 <code>SELECT COUNT(*) FROM db.data WHERE size &lt; 10;<\/code>.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u043b\u0430\u043d \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<pre><code class=\"bash\">mysql&gt; explain SELECT COUNT(*) FROM db.data WHERE size &lt; 10 \\G *************************** 1. row ***************************            id: 1   select_type: SIMPLE         table: data          type: ALL possible_keys: NULL           key: NULL       key_len: NULL           ref: NULL          rows: 25061163         Extra: Using where 1 row in set (0.00 sec)<\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u2014 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043d\u0434\u0435\u043a\u0441: <code>mysql&gt; create index data_size on data(size);<\/code>.<\/p>\n<p>  \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043d\u0430\u043c \u0442\u0443 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0434\u043b\u044f data(hits), \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0440\u0435\u0448\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<h3>8.HG<\/h3>\n<p>  \u0412 <code>\/root\/repo \u043b\u0435\u0436\u0438\u0442 mercurial<\/code> \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0447\u0435\u0440\u0435\u0437 http.<\/p>\n<blockquote><p>There is a HG repository in \/root\/repo.<\/p>\n<p>   Drop all .gz files in all revisions and make it available via <a href=\"http:\/\/ip\">ip<\/a>:8000\/  <\/p><\/blockquote>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <i>mercurial<\/i>: <code>pacman -S mercurial<\/code>. \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f <i>convert<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d. \u0412\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre><code class=\"bash\"> # cat &lt;&lt;EOF &gt; ~\/.hgrc [extensions] hgext.convert= EOF<\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0443\u043c\u0435\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0438 \u0446\u0435\u043b\u0435\u0432\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438. \u0422\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <code>filemap<\/code>. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b\u043a\u0438\u043d\u0435\u0442 \u0444\u0430\u0439\u043b <i>2.osm.gz<\/i>:<\/p>\n<pre><code class=\"bash\"> echo 'exclude &quot;2.osm.gz&quot;' &gt; \/root\/fmap hg convert --filemap ~\/fmap \/root\/repo \/root\/repo1<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <i>\/root\/repo1<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0438\u0448\u0451\u043d \u0444\u0430\u0439\u043b\u0430 <i>2.osm.gz<\/i> \u0432\u043e \u0432\u0441\u0435\u0445 \u0440\u0435\u0432\u0438\u0437\u0438\u044f\u0445. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0441\u043d\u0430\u0440\u0443\u0436\u0438. \u0412 <i>mercurial<\/i> \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f:<\/p>\n<pre><code class=\"bash\">cd \/root\/repo1 hg serve<\/code><\/pre>\n<p>  <\/p>\n<h3>9.Strange File<\/h3>\n<p>  \u0421 \u044d\u0442\u0438\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0441\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u2014\u00a0151. \u041d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <i>tester\/file<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n<blockquote><p>We got a strange file in ~tester\/file. No one can change it. Fix it.<\/p><\/blockquote>\n<p>  \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0444\u0430\u0439\u043b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u2014 \u0434\u0430\u0436\u0435 \u0438\u0437-\u043f\u043e\u0434 \u0440\u0443\u0442\u0430:  <\/p>\n<pre><code class=\"bash\"> # echo test &gt;&gt; ~tester\/file -bash: \/home\/tester\/file: Permission denied<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0437\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0442\u0430\u043a\u0430\u044f:  <\/p>\n<pre><code class=\"bash\"># mount | grep ' on \/ ' \/dev\/sda2 on \/ type ext4 (rw,relatime,data=ordered)<\/code><\/pre>\n<p>  \u0418\u0437 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e ext4 <code>(man 5 ext4)<\/code> \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u044d\u0442\u043e\u0439 \u0424\u0421 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c<br \/>  \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">FILE ATTRIBUTES<\/b><\/p>\n<div class=\"spoiler_text\">The ext2, ext3, and ext4 filesystems support setting the following file attributes on<br \/>   Linux systems using the chattr(1) utility:<\/p>\n<p>  a \u2014 append only<\/p>\n<p>  A \u2014 no atime updates<\/p>\n<p>  d \u2014 no dump<\/p>\n<p>  D \u2014 synchronous directory updates<\/p>\n<p>  i \u2014 immutable<\/p>\n<p>  S \u2014 synchronous updates<\/p>\n<p>  u \u2014 undeletable<\/p>\n<p>  In addition, the ext3 and ext4 filesystems support the following flag:<\/p>\n<p>  j \u2014 data journaling<\/p>\n<p>  Finally, the ext4 filesystem also supports the following flag:<\/p>\n<p>  e \u2014 extents format<\/p>\n<p>  For descriptions of these attribute flags, please refer to the chattr(1) man page.<\/p><\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <i>chattr(1)<\/i>, \u0433\u0434\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c <i>immutable<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">ATTRIBUTES<\/b><\/p>\n<div class=\"spoiler_text\">A file with the &#8216;i&#8217; attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the supe\u2010ruser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.<\/div>\n<\/div>\n<p>  \u041e\u0442\u0432\u0435\u0442 \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d \u2014 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u0441 \u0444\u0430\u0439\u043b\u0430: <code>chattr -i ~tester\/file<\/code>. \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0435\u043d\u0430.     \t<\/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\/255449\/\"> http:\/\/habrahabr.ru\/post\/255449\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u043e\u0447\u044c\u044e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0433\u0440\u0430 \u043e\u0442\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u0442\u0443\u0440\u0430 <a href=\"https:\/\/root.yandex.com\/\">Yandex.Root<\/a> \u2014 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b \u0434\u043b\u044f Unix-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432. \u0412 \u043d\u0435\u0439 \u043f\u0440\u0438\u043d\u044f\u043b\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u0435 456 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438\u0437 229 \u043a\u043e\u043c\u0430\u043d\u0434, 194 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u0421\u043e \u0432\u0441\u0435\u043c\u0438 \u0434\u0435\u0432\u044f\u0442\u044c\u044e \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c 38 \u043a\u043e\u043c\u0430\u043d\u0434. <\/p>\n<p>  \u041c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043c Root \u0435\u0451 \u0432 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439 \u0440\u0430\u0437, \u043d\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u0430\u0441\u043a\u043e\u0432. \u0417\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0434\u0430\u0451\u043c \u043d\u0430 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0435, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b \u0441 \u0442\u0435\u043c\u0438, \u0447\u0442\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0440\u0435\u0448\u0430\u044e\u0442 \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b. \u0412 \u042f\u043d\u0434\u0435\u043a\u0441\u0435 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u044b\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u044d\u0442\u043e \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0442\u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>  <a href=\"http:\/\/habrahabr.ru\/company\/yandex\/blog\/255449\/\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/6d3\/4a2\/b15\/6d34a2b1590449159129c06e45e3a04a.png\"\/><\/a><\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432 \u2013 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0434\u043a\u0438\u0439 \u0436\u0430\u043d\u0440, \u0447\u0435\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u043e\u0434\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u043f\u0440\u043e\u0445\u043e\u0434\u0446\u0430\u043c\u0438. \u041c\u044b \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0430\u043a\u0438\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u043b\u0438 \u0431\u044b \u0432 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0432\u0430\u0436\u043d\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0441\u0443\u0434\u0438\u0442\u044c \u0432\u0430\u043c. <\/p>\n<p>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u043c \u043e\u0431 \u044d\u0442\u043e\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435. \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u0435. \u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0439\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0442\u044b\u0440\u0435 \u0434\u043d\u044f \u2014 \u0432\u043e \u0432\u0442\u043e\u0440\u043d\u0438\u043a 14 \u0430\u043f\u0440\u0435\u043b\u044f, \u0438 \u043d\u0430 \u043d\u0435\u0451 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/root.yandex.com\/team\/create\">\u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f<\/a>. <\/p>\n<h2> \u0418\u0433\u0440\u0430 Shannon<\/h2>\n<p>  \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u0433\u0440\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043e \u043b\u044e\u0434\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u0430\u0434 \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u042d\u0442\u0430 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Claude_Shannon\">\u041a\u043b\u043e\u0434\u0443 \u0428\u0435\u043d\u043d\u043e\u043d\u0443<\/a>, \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0443 \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u0430\u0440\u0438\u043b \u043d\u0430\u043c \u0441\u043b\u043e\u0432\u043e \u00ab\u0431\u0438\u0442\u00bb. \u041a\u0441\u0442\u0430\u0442\u0438, \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"https:\/\/root.yandex.ru\">root.yandex.ru<\/a> \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043d\u0430 compute \u0443\u0437\u043b\u0430\u0445 private cloud \u042f\u043d\u0434\u0435\u043a\u0441\u0430.  <\/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-254948","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254948","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=254948"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254948\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}