{"id":254587,"date":"2015-04-06T14:03:01","date_gmt":"2015-04-06T10:03:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254587"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254587","title":{"rendered":"\u041e\u0431\u043b\u0430\u043a\u0430 \u2014 \u0431\u0435\u043b\u043e\u0433\u0440\u0438\u0432\u044b\u0435 \u043b\u043e\u0448\u0430\u0434\u043a\u0438 \u0438\u043b\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 ownCloud \u0434\u043b\u044f \u00ab\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445\u00bb \u0432 FreeNAS"},"content":{"rendered":"<p> \t\t\t<img decoding=\"async\" src=\"http:\/\/hsto.org\/storage2\/d22\/026\/79b\/d2202679b359b8ed7d307d6c648ee8de.jpg\" alt=\"image\"\/><br \/>  <b>ownCloud<\/b>, \u043a\u0430\u043a \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f \u2014 \u044d\u0442\u043e \u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u00ab\u043e\u0431\u043b\u0430\u043a\u0435\u00bb. \u0418, \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, ownCloud, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 <b>FreeNAS<\/b>, \u0434\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0438\u043c\u0435\u0435\u0442 \u0440\u044f\u0434 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043e\u043c\u0430:  <\/p>\n<ul>\n<li>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 <b>SQLite<\/b>, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0423 \u043c\u0435\u043d\u044f \u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0443\u0436\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0437\u043b\u043e\u0441\u044c \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 5Tb \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c ownCloud \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432. \u0414\u0430 \u0438 \u0431\u0435\u0437 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0434\u0430\u0447\u0430 \u043e\u0442 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435 \u0432\u0435\u043b\u0438\u043a\u0430. <b>\u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 MariaDB<\/b>.<\/li>\n<li>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e https, \u0430 \u043c\u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u043c\u043e\u0438 \u0444\u0430\u0439\u043b\u044b. \u0412\u043a\u043b\u044e\u0447\u0438\u043c https.<\/li>\n<li>\u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043d\u0430\u0447\u0438\u0441\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430. \u0417\u0430\u0449\u0438\u0442\u0438\u043c\u0441\u044f \u043e\u0442 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e fail2ban.<\/li>\n<li>\u0412-\u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0445, \u043c\u043d\u0435 \u043b\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0432\u0437\u043b\u043e\u043c\u0430, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043e \u0442\u0430\u043a\u0438\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c push-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 pushover.net.<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0425\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f. \u042f \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0441\u044c IT-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u043c, \u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u00ab\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u00bb \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0441\u0435 4 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043f\u0443\u043d\u043a\u0442\u0430 \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, FreeNAS \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0438\u0437-\u043f\u043e\u0434 Esxi. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u043c \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u0435\u0441\u0442\u044c \u044f\u0432\u043d\u044b\u0435 \u043b\u044f\u043f\u044b \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0445, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u0445 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>  \u0412\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0440\u0443\u0447\u043a\u0430\u043c\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u043e \u043a \u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u044d\u0442\u043e, \u043a\u0430\u043a \u043c\u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0441\u044f, \u0434\u0435\u043b\u0430\u044e\u0442 \u00ab\u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0435\u00bb \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u0438.<\/p>\n<h5><b>1 \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Jail \u0434\u043b\u044f ownCloud<\/b><\/h5>\n<p>  <\/p>\n<h6><b>1.1 \u0421\u043e\u0437\u0434\u0430\u0451\u043c Jail<\/b><\/h6>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0448\u0430\u0433 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c FreeNAS \u0438 \u043e\u043d \u0443 \u0432\u0430\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u0443 \u0432\u0430\u0441 \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e Jail \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<h6><b>1.2 \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e SSH \u043a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 Jail<\/b><\/h6>\n<p>  \u0423\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 web-\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443-\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <b>putty<\/b>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e <b>SSH<\/b> \u043a \u043d\u0430\u0448\u0435\u043c\u0443 <b>Jail<\/b> \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443.<\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 <b>FreeNAS<\/b> \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 Jail \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0432\u043d\u0438\u0437\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 <b>Shell<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/be2\/2f0\/195\/be22f0195c634c698235afdff463cd53.png\" alt=\"image\"\/><\/p>\n<p>  \u0412 \u0432\u0435\u0431-\u043a\u043e\u043d\u0441\u043e\u043b\u0438 Jail \u0432\u0432\u043e\u0434\u0438\u043c:<\/p>\n<pre><code class=\"dos\"># sysrc sshd_enable=&quot;YES&quot; <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0435\u043c\u043e\u043d \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b <b>ssh<\/b>:<\/p>\n<pre><code class=\"dos\"># service sshd start <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 <b>superuser<\/b>, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 <b>wheel<\/b>.<\/p>\n<pre><code class=\"dos\"># adduser <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 adduser<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>  <b>Usrname:<\/b> \u041d\u043e\u0432\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. \u0412\u0432\u043e\u0434\u0438\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <b>superstepa<\/b>.<br \/>  <b>Full name:<\/b> \u041f\u043e\u043b\u043d\u043e\u0435 \u0438\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0412\u0432\u043e\u0434\u0438\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <b>Dyadya Stepa Policeman<\/b>.<br \/>  <b>Uid (Leave empty for default):<\/b> \u041d\u0443 \u0440\u0430\u0437 \u043f\u0440\u043e\u0441\u044f\u0442 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c, \u0442\u043e \u0442\u0430\u043a \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c. \u0421\u043c\u0435\u043b\u043e \u0436\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Login group [superstepa]:<\/b> \u041c\u044b \u0445\u043e\u0442\u0438\u043c \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u043b\u0430\u0434\u0430\u043b \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043c\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u2014 superuser, \u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 <b>wheel<\/b>.<br \/>  <b>Login group is wheel. Invite superstepa into other groups? []:<\/b> \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <b>Enter<\/b>.<br \/>  <b>Login class [default]:<\/b> \u0416\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Shell (sh csh tcsh git-shell nologin) [sh]:<\/b> \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e sh. \u041f\u0440\u043e\u0441\u0442\u043e \u0436\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Home directory [\/home\/superstepa]:<\/b> \u0418 \u043e\u043f\u044f\u0442\u044c <b>Enter<\/b>.<br \/>  <b>Home directory permissions (Leave empty for default):<\/b> \u0418 \u0441\u043d\u043e\u0432\u0430 <b>Enter<\/b>.<br \/>  <b>Use password-based athentications? [yes]:<\/b> \u0425\u043e\u0442\u0438\u043c \u0447\u0442\u043e\u0431\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u043f\u043e \u043f\u0430\u0440\u043e\u043b\u044e? \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u0430! \u0416\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Use an empty password? (yes\/no) [no]:<\/b> \u041c\u044b \u0436\u0435 \u0437\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 superuser \u0431\u044b\u043b \u043f\u0443\u0441\u0442\u043e\u0439 \u043f\u0430\u0440\u043e\u043b\u044c. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u0436\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Use a random password? (yes\/no) [no]:<\/b> \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439. \u0418 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e. \u0410 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e <b>Enter<\/b>.<br \/>  <b>Enter password:<\/b> \u0410\u0433\u0430, \u0430 \u0432\u043e\u0442 \u0438 \u043e\u043d. \u0412\u0432\u043e\u0434\u0438\u043c \u0441\u0432\u043e\u0439 \u043f\u0430\u0440\u043e\u043b\u044c.<br \/>  <b>Enter password again:<\/b> \u0412\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u0441\u043d\u043e\u0432\u0430.<br \/>  <b>Lock out the account after creation? [no]:<\/b> \u041d\u0435\u0442, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. <b>\u041f\u0440\u043e\u0441\u0442\u043e Enter<\/b>.<br \/>  <b>OK? (yes\/no):<\/b> \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0441\u0451 \u043b\u0438 \u0432\u0435\u0440\u043d\u043e \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043f\u0435\u0448\u0435\u043c <b>yes<\/b>.<br \/>  <b>Add another user? (yes\/no):<\/b> \u0414\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u043c \u043d\u0435 \u043d\u0430\u0434\u043e. <b>No<\/b>.  <\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h5><b>2 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0440\u0430\u0431\u043e\u0442\u0435 ownCloud<\/b><\/h5>\n<p>  \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b-\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 Jail. <br \/>  \u0412\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044c. <br \/>  \u041d\u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 <b>$<\/b> \u043f\u0438\u0448\u0435\u043c <b>su<\/b>. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 <b>root@ownCloud:\/usr\/home\/superstepa #<\/b>, \u0430 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 superuser. <br \/>  \u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u044f \u0431\u0443\u0434\u0443 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <b>#<\/b>, \u0430 \u043c\u043e\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e, \u0431\u0443\u0434\u0443 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 <b>\/\/<\/b>.<\/p>\n<h6><b>2.1 \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b<\/b><\/h6>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"dos\"># pkg upgrade <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b ownCloud \u043f\u0430\u043a\u0435\u0442\u044b (\u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <b>yes<\/b>):<\/p>\n<pre><code class=\"dos\"># pkg install mariadb100-server php56-extensions php56-bz2 php56-curl php56-exif php56-fileinfo php56-gd php56-mbstring php56-mcrypt php56-pdo_mysql php56-openssl php56-zip php56-zlib pecl-APCu pecl-intl <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e <b>https<\/b>, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043d\u0430\u043c \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438, \u0430 \u0437\u0430\u0442\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432, web-\u0441\u0435\u0440\u0432\u0435\u0440 <b>nginx<\/b>:<\/p>\n<pre><code class=\"dos\"># portsnap fetch extract   \/\/ \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u043e\u0440\u0442\u043e\u0432, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 # cd \/usr\/ports\/www\/nginx && make config   \/\/ \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c web-\u0441\u0435\u0440\u0432\u0435\u0440 nginx <\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:   <\/p>\n<blockquote><p>IPV6<br \/>   HTTP<br \/>   HTTP_CACHE<br \/>   HTTP_DAV<br \/>   HTTP_FLV<br \/>   HTTP_GZIP_STATIC<br \/>   HTTP_PERL<br \/>   HTTP_REWRITE<br \/>   HTTP_SSL<br \/>   HTTP_STATUS<br \/>   WWW  <\/p><\/blockquote>\n<p>  <\/p>\n<pre><code class=\"dos\"># make install <\/code><\/pre>\n<p>  <\/p>\n<h6><b>2.2 \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0430\u043c\u043e\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b<\/b><\/h6>\n<pre><code class=\"dos\"># cd \/usr\/local\/etc\/nginx\/ <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043a\u043b\u044e\u0447 server.key (\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f <b>des3<\/b>, \u0434\u043b\u0438\u043d\u043e\u0439 1024 bit):<\/p>\n<pre><code class=\"dos\"># openssl genrsa -des3 -out server.key 1024 <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c\u043d\u0443\u044e \u0444\u0440\u0430\u0437\u0443. \u041f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0435\u0451 \u0438 \u0432\u0432\u043e\u0434\u0438\u043c.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442:<\/p>\n<pre><code class=\"dos\"># openssl req -new -key server.key -out server.csr            <\/code><\/pre>\n<p>  \u041e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0443\u0433\u043e\u0434\u043d\u043e. \u0413\u043b\u0430\u0432\u043d\u043e\u0435: <br \/>   \u2014 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 <b>Enter pass phrase for server.key<\/b> \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u043d\u0435\u0435,<br \/>   \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0438\u043d\u0430\u0447\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 ownCloud \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432,<br \/>   \u2014 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0447\u0442\u043e\u0431\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0412\u0430\u0448,<br \/>   \u2014 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0435 <b>A challenge password []:<\/b>.<br \/>  \u041c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e 10000 \u0434\u043d\u0435\u0439, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432\u044b\u0448\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <b>-days 10000<\/b>.<\/p>\n<pre><code class=\"dos\"># cp server.key server.key.org   \/\/\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u043a\u043b\u044e\u0447 # openssl rsa -in server.key.org -out server.key   \/\/\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0438\u0437 \u043a\u043b\u044e\u0447\u0430 # openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 <\/code><\/pre>\n<p>  <\/p>\n<h6><b>2.3 \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a web-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, PHP \u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># sysrc nginx_enable=&quot;YES&quot; php_fpm_enable=&quot;YES&quot; mysql_enable=&quot;YES&quot; <\/code><\/pre>\n<p>  <\/p>\n<h6><b>2.4 \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432<\/b><\/h6>\n<p>  \u0412\u0441\u0451-\u0442\u0430\u043a\u0438 \u043c\u044b \u0435\u0449\u0435 \u00ab\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435\u00bb \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c <b>vi<\/b> \u043d\u0430\u043c \u0435\u0449\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0432\u0430\u0442\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 <b>nano<\/b> (\u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <b>yes<\/b>).<\/p>\n<pre><code class=\"dos\"># pkg install nano <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435:<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b>nano<\/b>. \u0412 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0445 \u043f\u043e\u043a\u0430 \u043c\u043d\u0435 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u0442\u0430\u043a \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430:  <\/p>\n<blockquote><p>Shared object \u00ablibiconv.so.2\u00bb not found, required \u00ablibgmoudle-2.0.so.0<\/p><\/blockquote>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0432\u0441\u0435\u0433\u043e 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code class=\"dos\"># pkg delete -f gettext # pkg upgrade <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>2.5 \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 nginx<\/b><\/h6>\n<p>  \u041a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b, \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0434 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u043a\u043e\u043f\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0442\u043a\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0437\u0430\u0434:<\/p>\n<pre><code class=\"dos\"># cp \/usr\/local\/etc\/nginx\/nginx.conf \/usr\/local\/etc\/nginx\/nginx.old <\/code><\/pre>\n<p>  \u0418 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0430:<\/p>\n<pre><code class=\"dos\"># nano \/usr\/local\/etc\/nginx\/nginx.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0441\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">worker_processes 2;   events {     worker_connections  1024; }   http {     include      mime.types;     default_type  application\/octet-stream;     log_format  main  '$remote_addr - $remote_user [$time_local] &quot;$request&quot; '     access_log  logs\/access.log  main;     sendfile        off;     keepalive_timeout  65;     gzip off;      ssl_certificate \/usr\/local\/etc\/nginx\/server.crt;                       \/\/ \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b https      ssl_certificate_key \/usr\/local\/etc\/nginx\/server.key;               \/\/ \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b https                server {              listen 443 ssl;                                                                 \/\/ \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b https              root \/usr\/local\/www;              location = \/robots.txt { allow all; access_log off; log_not_found off; }              location = \/favicon.ico { access_log off; log_not_found off; }              location ^~ \/owncloud {                  index index.php;                  try_files $uri $uri\/ \/owncloud\/index.php$is_args$args;                  client_max_body_size 512M;                       \/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438                  location ~ ^\/owncloud\/(?:\\.|data|config|db_structure\\.xml|README) {                 deny all;                  }             location ~ \\.php(?:$|\/) {                 fastcgi_split_path_info ^(.+\\.php)(\/.*)$;                 fastcgi_pass unix:\/var\/run\/php-fpm.sock;                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                 fastcgi_param PATH_INFO $fastcgi_path_info;                 include fastcgi_params;                 fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;             }             location ~* \\.(?:jpg|gif|ico|png|css|js|svg)$ {                 expires 30d; add_header Cache-Control public;             }         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e Ctrl+X. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h6><b>2.6 \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 php<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cp \/usr\/local\/etc\/php.ini-production \/usr\/local\/etc\/php.ini # nano \/usr\/local\/etc\/php.ini <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Ctrl+W \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430) \u0438 \u0434\u0430\u0451\u043c \u0438\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">always_populate_raw_post_data = -1   \/\/ \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0443\u0431\u0438\u0440\u0430\u0442\u044c ; \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 date.timezone = Europe\/Moscow   \/\/ \u043b\u0438\u0431\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0412\u0430\u0448 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 cgi.fix_pathinfo=0 upload_max_filesize = 512M   \/\/ \u043b\u0438\u0431\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435 \u043e\u0431\u043b\u0430\u043a\u043e post_max_size = 512M   \/\/ \u043b\u0438\u0431\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435 \u043e\u0431\u043b\u0430\u043a\u043e <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>2.7 \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c php-fpm.conf:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cp \/usr\/local\/etc\/php-fpm.conf \/usr\/local\/etc\/php-fpm.old # nano \/usr\/local\/etc\/php-fpm.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Ctrl+W \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430) \u0438 \u0434\u0430\u0451\u043c \u0438\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">listen = \/var\/run\/php-fpm.sock listen.owner = www   \/\/ \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0443\u0431\u0438\u0440\u0430\u0442\u044c ; \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 listen.group = www env[PATH] = \/usr\/local\/bin:\/usr\/bin:\/bin <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>2.8 \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/var\/db\/mysql\/my.cnf:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cp \/var\/db\/mysql\/my.cnf \/var\/db\/mysql\/my.old # nano \/var\/db\/mysql\/my.cnf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0435\u0441\u0451\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">[server] skip-networking skip-name-resolve innodb_flush_method = O_DIRECT skip-innodb_doublewrite innodb_flush_log_at_trx_commit = 2 innodb_file_per_table expire_logs_days = 1 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>2.9 \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 nginx, PHP, MariaDB \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># service nginx start && service php-fpm start && service mysql-server start <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u0432\u0441\u0451 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <b>https:\/\/&lt;YOUR_JAIL_IP&gt;<\/b>.<br \/>  \u041d\u0430\u043c \u043d\u0430\u043f\u043e\u043c\u043d\u044f\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443 \u043d\u0430\u0441 \u0441\u0430\u043c\u043e\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439, \u043d\u043e \u043f\u0440\u0438\u043d\u044f\u0432 \u0435\u0433\u043e \u043c\u044b \u043f\u043e\u043f\u0430\u0434\u0451\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e <b>403 Forbidden<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/0c6\/ea0\/e0b\/0c6ea0e0b96a4c87a00e8c44292f6efb.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 MariaDB:<\/p>\n<pre><code class=\"dos\"># mysql_secure_installation <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 MariaDB:<\/b><\/p>\n<div class=\"spoiler_text\"><b>Enter current password for root (enter for none):<\/b> \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u043e\u043b\u044f \u043d\u0435\u0442, \u0436\u043c\u0451\u043c <b>Enter<\/b>.<br \/>  <b>Set root password? [Y\/n]<\/b>: \u0412\u0432\u043e\u0434\u0438\u043c <b>Y<\/b>.<br \/>  <b>New password:<\/b> \u0412\u0432\u043e\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c root.<br \/>  <b>Re-enter new password:<\/b> \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u043f\u0430\u0440\u043e\u043b\u044c.<br \/>  \u041d\u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <b>Y<\/b>, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0436\u043c\u0451\u043c <b>Enter<\/b>  <\/div>\n<\/div>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 <b>own\u0421loud<\/b> \u0432\u0432\u0435\u0434\u044f \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 <b>owncloud<\/b> \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b, <b>ownclouduserdb<\/b> \u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u0430\u0437\u043e\u0439, \u0430 <b>passwordownclouddb<\/b> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"dos\"># mysql -u root -p     CREATE DATABASE owncloud;     GRANT ALL PRIVILEGES ON owncloud.* TO 'ownclouduserdb' IDENTIFIED BY 'passwordownclouddb';     FLUSH PRIVILEGES;     quit; <\/code><\/pre>\n<p>  <\/p>\n<h6><b>2.10 \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e OwnCloud<\/b><\/h6>\n<p>  \u041f\u043e <a href=\"http:\/\/owncloud.org\/install\/\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a> \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e <b>ownCloud<\/b>. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u044d\u0442\u043e \u0431\u044b\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f <b>8.0.2<\/b>.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432, \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e <b>8.0.2<\/b> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<pre><code class=\"dos\"># fetch &quot;http:\/\/download.owncloud.org\/community\/owncloud-8.0.2.tar.bz2&quot; <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u043c:<\/p>\n<pre><code class=\"dos\"># tar jxf owncloud-*.tar.bz2 -C \/usr\/local\/www <\/code><\/pre>\n<p>  \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0439 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u0430\u0440\u0445\u0438\u0432:<\/p>\n<pre><code class=\"dos\"># rm owncloud-*.tar.bz2 <\/code><\/pre>\n<p>  \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u0432 (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u0443) ownCloud:<\/p>\n<pre><code class=\"dos\"># chown -R www:www \/usr\/local\/www\/owncloud \/mnt\/files <\/code><\/pre>\n<p>  <\/p>\n<h6><b>2.11 \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0432 crone:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># setenv EDITOR nano   \/\/ \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 nano # crontab -u www -e <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0451\u043c:<\/p>\n<pre><code class=\"php\">*\/15 * * * * \/usr\/local\/bin\/php -f \/usr\/local\/www\/owncloud\/cron.php <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:  <\/p>\n<blockquote><p>crontab: installing new crontab<\/p><\/blockquote>\n<p>  \u0418\u0434\u0451\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <b>https:\/\/&lt;YOUR_JAIL_IP&gt;\/owncloud<\/b> \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0442\u0430\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u043c\u0451\u043c <b>\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/b> \u0438 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448 \u0442\u0438\u043f \u0431\u0430\u0437\u044b: <b>MySQL\/MariaDB<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/b8e\/8fd\/d64\/b8e8fdd64d8145de8ad17562f86401aa.png\" alt=\"image\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p><b>\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/b>: \u0418\u043c\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <b>Stepanadministratovich<\/b>.<br \/>  <b>\u041f\u0430\u0440\u043e\u043b\u044c<\/b>: \u041f\u0430\u0440\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<br \/>  <b>\u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/b>: \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e <b>\/mnt\/files\/<\/b>. \u0412 \u044d\u0442\u043e\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u044f \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0443 \u043c\u0435\u043d\u044f Volumes \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 FreeNAS. \u0415\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043a\u0430\u043a, \u0442\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<br \/>  <b>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/b>: \u041c\u044b \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043d\u0430 \u0448\u0430\u0433\u0435 2.9 <b>ownclouduserdb<\/b>.<br \/>  <b>\u041f\u0430\u0440\u043e\u043b\u044c \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/b>: \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043d\u0430 \u0448\u0430\u0433\u0435 2.9 <b>passwordownclouddb<\/b>.<br \/>  <b>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/b>: \u0412\u0441\u0451 \u0442\u043e\u0442-\u0436\u0435 \u0448\u0430\u0433 2.9 <b>owncloud<\/b>.  <\/p><\/blockquote>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430\u0448 ownCloud \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432 \u043a \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/e67\/001\/4f5\/e670014f5da84611aca8643ae849c57c.png\" alt=\"image\"\/><\/p>\n<h5><b>3 \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/b><\/h5>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h6><b>3.1 \u041f\u0440\u043e\u0441\u0438\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 (Yandex, Google \u0438 \u0442.\u0434.) \u043d\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0441\u0430\u0439\u0442:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># ln -s \/usr\/local\/www\/owncloud\/robots.txt \/usr\/local\/www <\/code><\/pre>\n<p>  <\/p>\n<h5><b>4 \u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f<\/b><\/h5>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h6><b>4.1 \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c fail2ban \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cd \/usr\/ports\/security\/py-fail2ban # make install clean <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 fail2ban<\/b><\/p>\n<div class=\"spoiler_text\">Fail2ban \u043b\u0435\u0436\u0438\u0442 \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u0442\u0438: \/usr\/local\/etc\/fail2ban. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432:<br \/>   \u043f\u0430\u043f\u043a\u0430 action.d \u2014 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0430\u0439\u043b\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439<br \/>   \u043f\u0430\u043f\u043a\u0430 filter.d \u2014 \u0444\u0430\u0439\u043b\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432<br \/>   \u0444\u0430\u0439\u043b fail2ban.conf \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<br \/>   \u0444\u0430\u0439\u043b jail.conf \u2014 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>4.2 \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 ownCloud:<\/b><\/h6>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0443\u0442 \u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043b\u043e\u0433\u0438 ownCloud \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0445\u043e\u0434\u0430:<\/p>\n<pre><code class=\"dos\">touch \/var\/log\/owncloud-acces.log <\/code><\/pre>\n<p>  \u0424\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e www:<\/p>\n<pre><code class=\"dos\"># cd \/var\/log\/ # chown www:www owncloud-acces.log <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u0432\u0445\u043e\u0434\u043e\u0432 \u0432 ownCloud:<\/p>\n<pre><code class=\"dos\"># nano \/usr\/local\/www\/owncloud\/config\/config.php <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u0434 \u0441\u0430\u043c\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043f\u043e\u0438\u0441\u043a\u043e\u043c Ctrl+W) \u0438 \u0434\u0430\u0451\u043c \u0438\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">'logtimezone' =&gt; 'Europe\/Moscow',                   \/\/ \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0412\u0430\u0448 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 'logfile' =&gt; '\/var\/log\/owncloud-acces.log', 'loglevel' =&gt; '2', 'log_authfailip' =&gt; true,                                <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0432\u0435\u0434\u0451\u0442\u0441\u044f \u043b\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u0432\u0445\u043e\u0434\u043e\u0432:<\/b><\/p>\n<div class=\"spoiler_text\">\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0439\u0442\u0438 \u0432 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <b>ownCloud<\/b> \u0441 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0438\u043b\u0438 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"dos\"># nano \/var\/log\/owncloud-acces.log <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u0438\u0434\u0430:  <\/p>\n<blockquote><p>{\u00bbreqId&quot;:\u00abes09787k250rv52fu0iu44124z494687\u00bb,\u00abremoteAddr\u00bb:\u00ab192.168.1.1\u00bb,\u00abapp\u00bb:\u00abcore\u00bb,\u00abmessage\u00bb:\u00abLogin failed: &#8216;Admin&#8217; (Remote IP: &#8216;192.168.1.10&#8217;, X-Forwarded-For: &#187;)\u00bb,\u00ablevel\u00bb:2,\u00abtime\u00bb:\u00ab2015-04-04T18:59:50+03:00\u00bb}  <\/p><\/blockquote>\n<p>  <\/div>\n<\/div>\n<h6><b>4.3 \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0434\u043b\u044f fail2ban:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\">nano \/usr\/local\/etc\/fail2ban\/filter.d\/owncloud.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">[Definition] failregex={&quot;app&quot;:&quot;core&quot;,&quot;message&quot;:&quot;Login failed: user '.*' , wrong password, IP:HOST&gt;&quot;,&quot;level&quot;:2,&quot;time&quot;:&quot;.*&quot;}   \/\/ \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 ownCloud&lt;= 7.0.1           {&quot;app&quot;:&quot;core&quot;,&quot;message&quot;:&quot;Login failed: '.*' \\(Remote IP: '&lt;HOST&gt;', X-Forwarded-For: '.*'\\)&quot;,&quot;level&quot;:2,&quot;time&quot;:&quot;.*&quot;}   \/\/ \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439  ownCloud=7.0.2-7.0.5           {&quot;reqId&quot;:&quot;.*&quot;,&quot;remoteAddr&quot;:&quot;&lt;HOST&gt;&quot;,&quot;app&quot;:&quot;core&quot;,&quot;message&quot;:&quot;Login failed: .*&quot;,&quot;level&quot;:2,&quot;time&quot;:&quot;.*&quot;}   \/\/ \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439  ownCloud&gt;=8 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u043f\u0430\u0440\u0441\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e \u0432\u0441\u0435\u0439 \u0442\u043e\u0439 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e ownCloud \u043f\u0438\u0448\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 \u043b\u043e\u0433, \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0439\u0442\u0438 ip-\u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u0433\u043e, \u043a\u0442\u043e \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0430 \u0432\u0445\u043e\u0434. \u0422\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0447\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u043f\u0438\u0441\u044f\u0445 \u043b\u043e\u0433\u0430 \u2014 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u0443\u0442 \u0432 \u044f\u0432\u043d\u043e\u043c \u0432\u0438\u0434\u0435. \u0422\u0435, \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u2014 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 *. \u041d\u0443 \u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e ip-\u0430\u0434\u0440\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438\u0449\u0435\u043c, \u0437\u0430\u043c\u0435\u043d\u0451\u043d \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e &lt;\\HOST&gt;\\.<\/p>\n<h6><b>4.4 \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cp \/usr\/local\/etc\/fail2ban\/jail.conf \/usr\/local\/etc\/fail2ban\/jail.old # nano \/usr\/local\/etc\/fail2ban\/jail.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0438\u0437\u0443 \u0444\u0430\u0439\u043b\u0430 jail.conf:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">[owncloud] enabled = true filter = owncloud port = https logpath = \/var\/log\/owncloud-acces.log   \/\/ \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043b\u043e\u0433\u043e\u0432 ownCloud, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043d\u0430 \u0448\u0430\u0433\u0435 4.2 ignoreip = 192.168.1.59   \/\/ \u0437\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 maxretry = 2   \/\/ \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0434\u043e \u0431\u0430\u043d\u0430 bantime = 86400   \/\/ \u0432\u0440\u0435\u043c\u044f \u0431\u0430\u043d\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 findtime = 600   \/\/ \u0432\u0440\u0435\u043c\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0431\u0430\u043d\u0430 \u043a-\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 action = bsd-ipfw   \/\/ \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c              pushover-notify   \/\/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438 Tab. <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>4.5 \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438 \u043d\u0430\u0448 \u0444\u0438\u043b\u044c\u0442\u0440 \u0438 \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u043e\u043d \u043d\u0430\u0439\u0442\u0438 \u0432 \u043b\u043e\u0433\u0435 ownCloud \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># fail2ban-regex \/var\/log\/owncloud-acces.log \/usr\/local\/etc\/fail2ban\/filter.d\/owncloud.conf <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u0432 \u043d\u0438\u0437\u0443 \u0432\u044b\u0434\u0430\u0447\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u0438\u0434\u0430:  <\/p>\n<blockquote><p>Lines: 2 lines, 0 ignored, 2 matches, 0 missed [processed in 0.0 sec]<\/p><\/blockquote>\n<p>  <\/p>\n<h6><b>4.6 \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u0443\u0434\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0432\u0445\u043e\u0434\u0430:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># cp  \/usr\/local\/etc\/fail2ban\/action.d\/bsd-ipfw.conf \/usr\/local\/etc\/fail2ban\/action.d\/bsd-ipfw.local # nano \/usr\/local\/etc\/fail2ban\/action.d\/bsd-ipfw.conf <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0451\u043c \u0432\u0441\u0451 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0412 \u043d\u0451\u043c \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0432 \u0431\u0430\u043d, ip-\u0430\u0434\u0440\u0435\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 table(1) \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430 <b>ipfw<\/b>:  <\/p>\n<blockquote><p>actionban = ipfw table \\&lt;table\\&gt; add \\&lt;ip\\&gt;<\/p><\/blockquote>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u0430\u043c \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b <b>ipfw<\/b> \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u0432\u0441\u0435 ip-\u0430\u0434\u0440\u0435\u0441\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 table(1), \u0442.\u043a. \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0443 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438\u0437 \u044d\u0442\u043e\u0439 \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b(1):  <\/p>\n<pre><code class=\"dos\"># ipfw add 1 deny all from table\\(1\\) to me <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 ipfw:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"dos\">ipfw list                                                  \/\/\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 ipfw delete 13                                        \/\/\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e 13 ipfw add 14 &lt;\u043f\u0440\u0430\u0432\u0438\u043b\u043e&gt;                         \/\/\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e 14 ipfw table 1 add 192.168.1.5               \/\/\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 ipfw table 1 add 192.168.1.0\/24             \/\/\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u044c ipfw table 1 list                                    \/\/\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 ipfw add deny ip from table(10) to me      \/\/\u0412\u0441\u0451 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u044b 50 \u043a\u043e \u043c\u043d\u0435 ipfw table 1 delete 192.168.1.5              \/\/\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ipfw table 1 flush                                  \/\/\u0447\u0438\u0441\u0442\u0438\u043c \u0432\u0441\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h6><b>4.7 \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c fail2ban:<\/b><\/h6>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u043b\u044f <b>fail2ban<\/b> \u0444\u0430\u0439\u043b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 pushover-notify, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430 \u0443\u0436\u0435 \u0440\u0435\u0447\u044c \u0432\u044b\u0448\u0435 \u0438 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0435\u0449\u0451 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c:<\/p>\n<pre><code class=\"dos\">#touch \/usr\/local\/etc\/fail2ban\/action.d\/pushover-notify.conf <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0441\u0442\u0430\u0440\u0442 fail2ban \u0432 \/etc\/rc.conf:<\/p>\n<pre><code class=\"dos\"># sysrc fail2ban_enable=&quot;YES&quot; <\/code><\/pre>\n<p>  \u0418 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e:<\/p>\n<pre><code class=\"dos\"># \/usr\/local\/etc\/rc.d\/fail2ban start <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u043e\u043d \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0433\u0434\u0435 \u043e\u0448\u0438\u0431\u043a\u0430. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f, \u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430 \u0431\u0430\u043d: \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c. \u0414\u043e\u043b\u0436\u043d\u043e \u0437\u0430\u0431\u0430\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <b>jail.conf<\/b>.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 fail2ban, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">fail2ban-client status   \/\/ \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0434\u0436\u0435\u0439\u043b\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u044b fail2ban-client status owncloud   \/\/ \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0434\u0436\u0435\u0439\u043b\u0430, \u0433\u0434\u0435 owncloud - \u044d\u0442\u043e \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u0436\u0435\u0439\u043b\u0430 fail2ban-client set owncloud unbanip MYIP   \/\/ \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 ip-\u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u0431\u0430\u043d\u0430, \u0433\u0434\u0435 MYIP - \u044d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 ip-\u0430\u0434\u0440\u0435\u0441 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c ownCloud, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u00ab\u0432\u0437\u0440\u043e\u0441\u043b\u043e\u0439\u00bb \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e https \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439.<br \/>  \u041f\u043e\u0447\u0442\u0438 \u0432\u0441\u0451, \u043d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0451 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u0432\u0432\u043e\u0434\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u0432 \u0432\u0438\u0434\u0435 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u043d\u0430\u0448 \u0442\u0435\u043b\u0435\u0444\u043e\u043d.<\/p>\n<h5><b>5 \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435 ip-\u0430\u0434\u0440\u0435\u0441\u0430<\/b><\/h5>\n<p>  \u0414\u043b\u044f push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 pushover.net. \u042f \u0434\u0443\u043c\u0430\u044e \u0412\u0430\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0442\u0440\u0443\u0434\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0433\u043e API. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c.<\/p>\n<h6><b>5.1 \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f pushover \u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0432\u0445\u043e\u0434\u0430 \u0438 \u0431\u0430\u043d\u0435:<\/b><\/h6>\n<p>  <\/p>\n<pre><code class=\"dos\"># nano \/usr\/local\/etc\/fail2ban\/action.d\/pushover-notify.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">[Definition] actionstart= actionstop= actioncheck= actionban = url -k https:\/\/api.pushover.net\/1\/messages.json -F token=&lt;token&gt; -F user=&lt;user&gt; -F title=&quot;ownCloud Alarm&quot; -F message=&quot;&lt;ip&gt; is banned after &lt;failures&gt; attemts against &lt;name&gt;&quot; actionunban = url -k https:\/\/api.pushover.net\/1\/messages.json -F token=&lt;token&gt; -F user=&lt;user&gt; -F title=&quot;ownCloud Alarm&quot; -F message=&quot;&lt;ip&gt; is unbanned&quot;  [Init] name = default token =  [API Token\/key (application key)] user = [User key] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  , \u0433\u0434\u0435 <b>[API Token\/key (application key)]<\/b> \u0438 <b>[User key]<\/b> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441 \u0441\u0430\u0439\u0442\u0430 <b>pushover.net<\/b>.<br \/>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <b>fail2ban<\/b><\/p>\n<pre><code class=\"dos\"># \/usr\/local\/etc\/rc.d\/fail2ban restart <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0432\u0445\u043e\u0434\u0430 \u0432 ownCloud:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/7bf\/2a3\/978\/7bf2a3978cb64bfdba0cf874b3b52c68.png\" alt=\"image\"\/><\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u043f\u043e\u0440\u0442\u044b 80 \u0438 443 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a <b>ownCloud<\/b>.<br \/>  \u0418 \u0434\u0430, \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435. \t\t\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\/255019\/\"> http:\/\/habrahabr.ru\/post\/255019\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t<img decoding=\"async\" src=\"http:\/\/hsto.org\/storage2\/d22\/026\/79b\/d2202679b359b8ed7d307d6c648ee8de.jpg\" alt=\"image\"\/><br \/>  <b>ownCloud<\/b>, \u043a\u0430\u043a \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f \u2014 \u044d\u0442\u043e \u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u00ab\u043e\u0431\u043b\u0430\u043a\u0435\u00bb. \u0418, \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, ownCloud, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 <b>FreeNAS<\/b>, \u0434\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0438\u043c\u0435\u0435\u0442 \u0440\u044f\u0434 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043e\u043c\u0430:  <\/p>\n<ul>\n<li>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 <b>SQLite<\/b>, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0423 \u043c\u0435\u043d\u044f \u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0443\u0436\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0437\u043b\u043e\u0441\u044c \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 5Tb \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c ownCloud \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432. \u0414\u0430 \u0438 \u0431\u0435\u0437 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0434\u0430\u0447\u0430 \u043e\u0442 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435 \u0432\u0435\u043b\u0438\u043a\u0430. <b>\u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 MariaDB<\/b>.<\/li>\n<li>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e https, \u0430 \u043c\u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u043c\u043e\u0438 \u0444\u0430\u0439\u043b\u044b. \u0412\u043a\u043b\u044e\u0447\u0438\u043c https.<\/li>\n<li>\u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043d\u0430\u0447\u0438\u0441\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430. \u0417\u0430\u0449\u0438\u0442\u0438\u043c\u0441\u044f \u043e\u0442 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e fail2ban.<\/li>\n<li>\u0412-\u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0445, \u043c\u043d\u0435 \u043b\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0432\u0437\u043b\u043e\u043c\u0430, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043e \u0442\u0430\u043a\u0438\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c push-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 pushover.net.<\/li>\n<\/ul>\n<p>  <\/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-254587","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254587","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=254587"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254587\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}