{"id":199478,"date":"2013-10-29T12:15:02","date_gmt":"2013-10-29T08:15:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=199478"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=199478","title":{"rendered":"<span class=\"post_title\">\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0430 Debian 7<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 Linux \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u043b\u044e\u0448\u0435\u043a \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u0438\u043c\u0438 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u0417\u0434\u0435\u0441\u044c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Debian, \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b.<br \/>  \u0412\u0441\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043d\u0430\u0439\u0442\u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u043b\u043a\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u0438 \u043a \u0441\u0432\u044f\u0437\u043a\u0435 \u0438\u0437 1-2 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u00ab\u043f\u043e\u0434 \u0441\u0435\u0431\u044f\u00bb \u0438 \u043c\u0430\u043b\u043e \u043f\u043e\u0434\u0434\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u041a dhcp \u043d\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043b\u044e\u0431\u044b\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0421\u0430\u043c \u043f\u0438\u0441\u0430\u043b \u0442\u0430\u043a\u0438\u0435 \u0432 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043d\u043e \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0448\u0438\u043b \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u044d\u0442\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u2013 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Debian, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2013 \u043c\u0435\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c \u0442\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a, \u0438\u043c\u0435\u0435\u043c:<br \/>   \u2014 \u0434\u0432\u0430 \u043a\u0430\u0431\u0435\u043b\u044f \u043e\u0442 \u0434\u0432\u0443\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432, \u043e\u0431\u0430 \u0432\u044b\u0434\u0430\u044e\u0442 IP \u043f\u043e dhcp<br \/>   \u2014 \u0441\u0432\u0435\u0436\u0435\u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c debian squeeze \u0441 \u0442\u0440\u0435\u043c\u044f \u0441\u0435\u0442\u0435\u0432\u0443\u0445\u0430\u043c\u0438 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0435\u0449\u0435)<br \/>   \u2014 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0447\u0442\u043e\u0431 \u0438\u043d\u0435\u0442 \u043d\u0435 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u043b (\u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0435 \u0436\u0434\u0435\u0442!). \u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0438 \u0442.\u043f. \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0430 \u043f\u043e\u0442\u043e\u043c.<\/p>\n<p>  \u041b\u043e\u0433\u0438\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<br \/>   \u2014 \u043f\u0438\u043d\u0433\u0443\u0435\u043c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0445\u043e\u0441\u0442 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b<br \/>   \u2014 \u0435\u0441\u043b\u0438 \u043f\u0438\u043d\u0433 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b. <br \/>  \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0446\u0435\u043b\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0433\u0438\u0431\u043a\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0438 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u043f\u043b\u044e\u0448\u043a\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435<br \/>  \u0412 \u043f\u0430\u043f\u043a\u0435 \/etc\/network \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0444\u0430\u0439\u043b interfaces \u0438 \u043f\u0430\u043f\u043a\u0438 if-down.d, if-post-down.d, if-pre-up.d, if-up.d.  <\/p>\n<pre><code class=\"bash\">root@ns:\/etc\/network# cat interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).  # The loopback network interface iface lo inet loopback  # The primary network interface iface eth0 inet static     address 192.168.104.1     netmask 255.255.255.0  iface eth1 inet dhcp iface eth3 inet dhcp <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044f\u0445 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 ifup\/ifdown \u043d\u0430 \u043f\u0430\u043f\u043e\u0447\u043a\u0438 \u043d\u0430\u0442\u0440\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f run-parts, \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c \u0432 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f: IFACE, LOGICAL, ADDRFAM, METHOD, MODE, PHASE, MODE, VERBOSITY, PATH<br \/>  \u041f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 if-pre-up.d (\u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c\u0438 \u0438\u0434\u0435\u0442 IFACE=\u201d&#8212;all\u201d, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 if-up.d \u0438 IFACE=\u201d&#8212;all\u201d \u0438\u0434\u0435\u0442 \u0443\u0436\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435. \u041f\u0440\u0438 ifup ethX \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f ethX (\u0431\u0435\u0437 \u201c\u2013all\u201d). \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e if-down.d \u0438 if-post-down.d \u043f\u0440\u0438 ifdown \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u043e \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432 10 \u0438\u0437 20 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432 \u043c\u043e\u0438 \u043f\u043b\u0430\u043d\u044b \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0438 \u0438\u0437\u043e \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u043f\u0430\u043f\u043e\u043a. \u041f\u043e\u043d\u044f\u0442\u044c, \u043e\u0442\u043a\u0443\u0434\u0430 \u043e\u043d \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u043c\u043e\u0436\u043d\u043e \u043f\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0430\u043c \u0435\u0449\u0435 \u043d\u0430\u0434\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0448\u043b\u044e\u0437\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e dhcp. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0438 \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \/etc\/dhcp\/dhclient-enter-hooks.d \u0438 \/etc\/dhcp\/dhclient-exit-hooks.d<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0430\u043a\u0430\u044f: <br \/>   \u2014 \u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 dhcp<br \/>   \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043f\u043a\u0438 dhclient-enter-hooks.d<br \/>   \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (ip, DNS, \u0448\u043b\u044e\u0437,\u2026)<br \/>   \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043f\u043a\u0438 dhclient-exit-hooks.d<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442\u0430\u043c \u0442\u043e\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u043e\u0442 dhcp \u0441\u0435\u0440\u0432\u0435\u0440\u0430), \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0435\u0447\u0435\u0440\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>  \u0412\u0441\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc\/network\/scripts. \u0418\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a \u0442\u0443\u0434\u0430 \u0432\u0435\u0434\u0443\u0442 \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0438<br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2014 \/etc\/default\/network-scripts<br \/>  \u0412\u0440\u0435\u043c\u0435\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043b\u0430\u0434\u0435\u043c \/var\/lib\/dhcp<br \/>  \u041b\u043e\u0433\u0438 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b \/var\/log\/network-scripts.log<br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/default\/network-scripts # Configuration file for \/etc\/network\/scripts\/*  # Host to ping for autoroute HOST_TO_PING=&quot;4.2.2.1&quot;  # Number of pings to check the connection PING_COUNT=5  # list of LAN interfaces IFLAN=&quot;eth0&quot;  # WAN prio from first to last IFWAN=&quot;eth1 eth3&quot;  # open ports from WAN zone WAN_PORTS_OPEN=&quot;&quot; <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b LAN, WAN \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e. \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 WAN \u043f\u0435\u0440\u0432\u044b\u0439 \u2013 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043d\u044b\u0439, \u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e.<br \/>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0444\u0430\u0439\u043b \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438.  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/network\/scripts\/functions #!\/bin\/sh  DHCPLIB=&quot;\/var\/lib\/dhcp&quot; LOGDIR=&quot;\/var\/log&quot; LOGFILE=&quot;$LOGDIR\/network-scripts.log&quot;  HOST_TO_PING=&quot;4.2.2.1&quot; PING_COUNT=3 SQUID_PORT=&quot;3128&quot; IFLAN=&quot;&quot; IFWAN=&quot;&quot; WAN_PORTS_OPEN=&quot;&quot;  . \/etc\/default\/network-scripts  # Local variables DEFAULTWAN=${IFWAN% *}  log() {     DATE=`date`     echo &quot;$DATE $@&quot; &gt;&gt; $LOGFILE }  warn() {     log &quot;WARNING: $@&quot;     echo &quot;WARNING: $@&quot; }  cmd() {     $@     RES=$?     log &quot;$RES - $@&quot;     return $RES }  get_ip() {     IP=`ip addr list $1 | grep &quot;  inet &quot; | head -n 1 | cut -d &quot; &quot; -f 6 | cut -d \/ -f 1` }  update_local_redirect() {     for i in $IFLAN; do         cmd iptables -t nat $INS PREROUTING -i $i -p tcp --dport 80 -d $1 -j ACCEPT     done }  update_squid() {     case $1 in         start)             ADD=&quot;-A&quot;             INS=&quot;-I&quot;             ;;         stop)             ADD=&quot;-D&quot;             INS=&quot;-D&quot;             ;;         *)             ADD=&quot;-C&quot;             INS=&quot;-C&quot;     esac      for i in $IFLAN; do         # transparent proxy         cmd iptables -t nat $ADD PREROUTING -i $i -p tcp --dport 80 -j REDIRECT --to-port $SQUID_PORT     done } <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043c\u044b \u0438\u043c\u0435\u0435\u043c:<br \/>   \u2014 \u0438\u043c\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438\u0437 \/etc\/default\/network-scripts<br \/>   \u2014 \u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 (log, warn), <br \/>   \u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 \u043b\u043e\u0433 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b<br \/>   \u2014 update_local_redirect() \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043d\u0430 80 \u043f\u043e\u0440\u0442 \u043c\u0438\u043c\u043e transparent proxy<br \/>   \u2014 update_squid() \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e transparent proxy (\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \/etc\/init.d\/squid3 \u2013 \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u043b\u0435\u0437\u0442\u044c)<br \/>  \u0422\u0443\u0442 \u0438 \u0434\u0430\u043b\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f, \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043d\u0430\u044f \u043c\u043d\u043e\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 $ADD \u0438 $INS \u0434\u043b\u044f iptables. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0438 \u043f\u043e\u0442\u043e\u043c \u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c-\u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435.  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/network\/scripts\/route-enter #!\/bin\/sh . \/etc\/network\/scripts\/functions log &quot;$0 route-enter ${interface} ${reason} ${new_routers}&quot;  # security bugfix new_host_name=${new_host_name\/\/[^-.a-zA-Z0-9]\/}  # save routers to special file echo -n ${new_routers} &gt; $DHCPLIB\/routers.${interface} echo -n ${new_ip_address} &gt; $DHCPLIB\/ip_address.${interface}  case ${interface} in    $DEFAULTWAN)     # by default enable routers only for first WAN interface     ;;   *)     # and clear it for others     unset new_routers     ;; esac <\/code><\/pre>\n<p>   \u2014 \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c new_routers \u0438 new_ip_address \u0432 \u0444\u0430\u0439\u043b (\u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u0434\u043e\u0431\u044f\u0442\u0441\u044f)<br \/>   \u2014 default route \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<pre><code class=\"bash\"># cat \/etc\/network\/scripts\/route-exit #!\/bin\/sh . \/etc\/network\/scripts\/functions log &quot;$0 route-exit ${interface} ${reason}&quot;  update_routes() {      cmd route $ADD -host $HOST_TO_PING gw ${routers}      # identyfy providers by DNS addresses     case $DNS in         *82.193.96*)             DESTIP=`resolveip -s stat.ipnet.ua`             cmd route $ADD -host $DESTIP gw ${routers}             ;;         *193.41.63*|*192.168.11.1*)             DESTIP=`resolveip -s my.kyivstar.ua`             cmd route $ADD -host $DESTIP gw ${routers}             ;;         *)             warn &quot;route-exit - unknown DNS ${new_domain_name_servers} specified&quot;             ;;     esac }  case ${reason} in     BOUND)         ADD=&quot;add&quot;         DNS=${new_domain_name_servers}         # use saved-to-file value due to $old_routers can be cleared for some interfaces by other script         routers=`cat $DHCPLIB\/routers.${interface}`         update_routes         ;;      RELEASE)         # No need to delete routes during release         # ADD=&quot;del&quot;         # routers=${old_routers}`         # update_routes         ;;      PREINIT)         ;;      RENEW)         if [ &quot;$old_routers&quot; != &quot;$new_routers&quot; ]; then             ADD=&quot;del&quot;             DNS=${old_domain_name_servers}             routers=${old_routers}             update_routes              ADD=&quot;add&quot;             DNS=${new_domain_name_servers}             routers=`cat $DHCPLIB\/routers.${interface}`             update_routes         fi          if [ &quot;$old_ip_address&quot; != &quot;$new_ip_address&quot; ]; then             ADD=&quot;-D&quot;             INS=&quot;-D&quot;             update_local_redirect ${old_ip_address}              ADD=&quot;-A&quot;             INS=&quot;-I&quot;             update_local_redirect ${new_ip_address}         fi         ;;     *)         warn &quot;route-exit - unknown reason ${reason} used&quot;         ;; esac <\/code><\/pre>\n<p>   \u2014 \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c static route \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u043e\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \u041b\u043e\u043a\u0430\u043b\u043a\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u043d\u043e \u0435\u0451 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>   \u2014 \u0434\u043b\u044f \u0440\u0435\u0436\u0438\u043c\u0430 RENEW \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0435\u0440\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 (\u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f), \u043d\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b.<\/p>\n<pre><code class=\"bash\"># cat \/etc\/network\/scripts\/firewall #!\/bin\/bash  . \/etc\/network\/scripts\/functions  get_ip $IFACE log &quot;$0 $IFACE $LOGICAL $ADDRFAM $METHOD $MODE $PHASE $VERBOSITY $IP&quot;   case $MODE in     start)         INS=&quot;-I&quot;         ADD=&quot;-A&quot;         echo -n $IP &gt; $DHCPLIB\/ip_address.$IFACE         ;;      stop)         INS=&quot;-D&quot;         ADD=&quot;-D&quot;         echo -n &gt; $DHCPLIB\/ip_address.$IFACE         ;;     *)         INS=&quot;-C&quot;         ADD=&quot;-C&quot;         warn &quot;Wrong MODE:$MODE&quot;         ;; esac   case $IFACE in      --all)         case $PHASE in             pre-down|post-up)                 # skip proxy for local addresses                 for j in $IFLAN $IFWAN; do                     get_ip $j                     update_local_redirect $IP                 done                 ;;             post-up|pre-down)                 ;;         esac          ;;      lo)         ;;      *)         if [[ &quot;$IFLAN&quot; == *$IFACE* ]]; then                 # LAN                 case $PHASE in                     pre-up|post-down)                         cmd iptables $INS INPUT -p tcp -i $IFACE --dport 22 -j ACCEPT                         ;;                      post-up|pre-down)                         ;;                      *)                         warn &quot;Wrong PHASE:$PHASE&quot;                         ;;                 esac         fi          if [[ &quot;$IFWAN&quot; == *$IFACE* ]]; then                 # WAN                 case $PHASE in                     pre-up|post-down)                         # by default close all input connections                         cmd iptables $ADD INPUT -p tcp -i $IFACE --dport 1:10000 -j DROP                         cmd iptables $ADD INPUT -p udp -i $IFACE --dport 1:10000 -j DROP                          # open ports from list                         for PORT in $WAN_PORTS_OPEN; do                             cmd iptables $INS INPUT -p tcp -i $IFACE --dport $PORT -j ACCEPT                         done                         ;;                      post-up|pre-down)                         cmd iptables -t nat $ADD POSTROUTING -o $IFACE -j MASQUERADE                         ;;                      *)                         warn &quot;Wrong PHASE:$PHASE&quot;                         ;;                 esac         fi         ;; esac <\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043b\u0430 firewall. \u0414\u043b\u044f \u043e\u0431\u0449\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u0438\u0448\u0435\u043c \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 pre-up \u0438 post-down, \u0434\u043b\u044f NAT \u2013 \u0432 post-up \u0438 pre-down.<\/p>\n<pre><code class=\"bash\"># cat \/etc\/network\/scripts\/autoroute #!\/bin\/sh # Script for cron to monitor WAN interfaces # and (in future) SQUID status  . \/etc\/network\/scripts\/functions  CURRENT_ROUTE_DEV=`ip route show | grep default | awk '{print $5}'`  unset ROUTE_GOOD PING_RESULTS=&quot;&quot;  for i in $IFWAN; do     if [ -z $ROUTE_GOOD ]; then         PING_RESULT=`ping -c$PING_COUNT -q $HOST_TO_PING -I $i | grep 'packet loss' | awk '{print $6}'`          # If no route t host then set to 100% loss         if [ -z $PING_RESULT ]; then             warn &quot;$0 No route to host $HOST_TO_PING on $i&quot;             PING_RESULT='100%'         fi          if [ $PING_RESULT = '0%' ]; then             ROUTE_GOOD=$i             if [ -z $CURRENT_ROUTE_DEV ]; then                 log &quot;$0 Adding default route to $i&quot;                 cmd route add default gw `cat $DHCPLIB\/routers.$i`             elif [ $CURRENT_ROUTE_DEV != $i ]; then                 log &quot;$0 Change default route from $CURRENT_ROUTE_DEV to $i&quot;                 cmd route del default                 cmd route add default gw `cat $DHCPLIB\/routers.$i`             fi         else             log &quot;$0 loss $PING_RESULT on $i&quot;         fi     fi     PING_RESULTS=&quot;$PING_RESULTS $PING_RESULT&quot; done  if [ -z $ROUTE_GOOD ]; then     warn &quot;$0 lost all internet connections ($PING_RESULTS loss)&quot; fi <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e: \u043f\u0438\u043d\u0433\u0443\u0435\u043c \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430. \u041d\u0430\u0448\u043b\u0438 \u043b\u0443\u0447\u0448\u0438\u0439 \u2013 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f. \u0415\u0441\u043b\u0438 \u0447\u0442\u043e, \u043f\u0438\u0448\u0435\u043c \u0432 \u043b\u043e\u0433.<\/p>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/cron.d\/autoroute PATH=&quot;\/usr\/bin:\/bin:\/usr\/sbin:\/sbin&quot;  *\/5 * * * * root \/etc\/network\/scripts\/autoroute <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/logrotate.conf  | tail  # system-specific logs may be configured here  \/var\/log\/network-scripts.log {         weekly         missingok         rotate 7         compress } <\/code><\/pre>\n<p>  \u0421\u0438\u043c\u043b\u0438\u043d\u043a\u0438  <\/p>\n<pre><code class=\"bash\">\/etc\/dhcp\/dhclient-enter-hooks.d\/route-enter -&gt; ..\/..\/network\/scripts\/route-enter \/etc\/dhcp\/dhclient-exit-hooks.d\/route-exit -&gt; ..\/..\/network\/scripts\/route-exit \/etc\/network\/if-pre-up.d\/firewall -&gt; ..\/scripts\/firewall \/etc\/network\/if-down.d\/firewall -&gt; ..\/scripts\/firewall \/etc\/network\/if-up.d\/firewall -&gt; ..\/scripts\/firewall \/etc\/network\/if-post-down.d\/firewall -&gt; ..\/scripts\/firewall  <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/199478\/\"> http:\/\/habrahabr.ru\/post\/199478\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 Linux \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u043b\u044e\u0448\u0435\u043a \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u0438\u043c\u0438 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u0417\u0434\u0435\u0441\u044c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Debian, \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b.<br \/>  \u0412\u0441\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043d\u0430\u0439\u0442\u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0430\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u043b\u043a\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u0438 \u043a \u0441\u0432\u044f\u0437\u043a\u0435 \u0438\u0437 1-2 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u00ab\u043f\u043e\u0434 \u0441\u0435\u0431\u044f\u00bb \u0438 \u043c\u0430\u043b\u043e \u043f\u043e\u0434\u0434\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u041a dhcp \u043d\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043b\u044e\u0431\u044b\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0421\u0430\u043c \u043f\u0438\u0441\u0430\u043b \u0442\u0430\u043a\u0438\u0435 \u0432 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043d\u043e \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0448\u0438\u043b \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u044d\u0442\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u2013 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Debian, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2013 \u043c\u0435\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c \u0442\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\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-199478","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199478","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=199478"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199478\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}