{"id":270903,"date":"2015-12-22T18:40:02","date_gmt":"2015-12-22T15:40:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=270903"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=270903","title":{"rendered":"\u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 HP \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438 \u0444\u0430\u0439\u043b-\u0441\u0435\u0440\u0432\u0435\u0440\u0430"},"content":{"rendered":"<p>       \u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 Geektimes <a href=\"http:\/\/geektimes.ru\/post\/250630\/\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0435-\u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u042f \u043e\u0431\u043d\u043e\u0432\u0438\u043b \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 <b>HP t610 Plus<\/b> \u0438 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 <b>CentOS 7<\/b>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439, \u0430 \u043a\u0430\u043a \u043d\u043e\u0432\u0443\u044e.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6f2\/000\/c70\/6f2000c702c9410282eef17066019b7d.jpg\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  <b>\u0417\u0430\u0434\u0430\u0447\u0438, \u0443 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/b>  <\/p>\n<ul>\n<li>\u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e Ethernet \u0438 WiFi<\/li>\n<li>\u0440\u0435\u0437\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0435 \u0431\u0430\u043d\u043d\u0435\u0440\u044b \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c AdBlock<\/li>\n<li>\u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0432 \u0441\u0435\u0442\u0438 Tor<\/li>\n<li>\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0444\u0430\u0439\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (NFS \u0438 SAMBA)<\/li>\n<li>\u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0434\u043e \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<\/li>\n<li>\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u043c<\/li>\n<\/ul>\n<p>  \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0436\u0435\u043b\u0435\u0437\u043e. \u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0435 AMD Dual-Core T56N 1.65 \u0413\u0413\u0446 \u0438 \u0432\u0438\u0434\u0435\u043e-\u0447\u0438\u043f\u0435 Radeon HD 6320. \u0422\u0430\u043a \u0436\u0435, \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u043b\u044e\u0441\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f: \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u044a\u0435\u043c\u0430 PCI Express 16x \u0438 \u043e\u0442\u0441\u0435\u043a\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 (\u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434).<\/p>\n<p>  <b>\u041f\u043e\u043b\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0442\u0430\u043a\u043e\u0432\u0430:<\/b>  <\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 AMD Dual-Core T56N 1.65 \u0413\u0413\u0446<\/li>\n<li>\u0427\u0438\u043f\u0441\u0435\u0442 AMD A55E<\/li>\n<li>\u0412\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 Radeon HD 6320<\/li>\n<li>\u041f\u0430\u043c\u044f\u0442\u044c 2 x 2Gb SO-DIMM 1600Mhz PC3-12800 Elpida DDR3EBJ20UF8BDU0-GN-F<\/li>\n<li>\u041f\u0435\u0440\u0432\u044b\u0439 Ethernet \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Broadcom BCM57781 Gigabit Ethernet<\/li>\n<li>\u0412\u0442\u043e\u0440\u043e\u0439 Ethernet \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Intel 82574L Gigabit Ethernet<\/li>\n<li>\u0411\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u043e\u0439 WiFi \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Intel Advanced-N 6230<\/li>\n<li>\u0416\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a Seagate ST500LT012-9WS142<\/li>\n<\/ul>\n<p>  \u041f\u0440\u0435\u0434\u0432\u0438\u0434\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0442\u0438\u043f\u0430 \u00ab\u0414\u0430 \u043e\u043d \u0436\u0435 \u0434\u043e\u0440\u043e\u0433\u043e\u0439!\u00bb, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u043b\u0438\u0441\u044c \u0438 \u0443\u043a\u0430\u0436\u0443 \u0438\u0445 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c. \u0412\u0441\u0451 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u043b\u043e\u0441\u044c, \u043d\u0430 \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u043c, \u0441\u0430\u0439\u0442\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<ul>\n<li>\u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 HP t610 Plus \u2014 <b>3500 \u0440\u0443\u0431.<\/b><\/li>\n<li>\u041f\u0430\u043c\u044f\u0442\u044c 2 x 2Gb SO-DIMM 1600Mhz \u2014 <b>1500 \u0440\u0443\u0431.<\/b><\/li>\n<li>WiFi \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Intel Advanced-N 6230 \u2014 <b>300 \u0440\u0443\u0431.<\/b><\/li>\n<li>Ethernet \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Intel 82574L \u2014 <b>400 \u0440\u0443\u0431.<\/b><\/li>\n<\/ul>\n<p>  <b>\u0418\u0422\u041e\u0413\u041e: 5700 \u0440\u0443\u0431.<\/b><\/p>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u043e\u0442\u043e<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8d8\/da0\/cbe\/8d8da0cbeeb043d5be6222a9497f882c.jpg\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/406\/6a3\/c4b\/4066a3c4b87842c59accbb9367bd7acc.jpg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/eb9\/787\/862\/eb97878625cd4c149ca5c57c1ece8ae2.jpg\"\/> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/695\/be4\/e36\/695be4e3665d4c76832ce0a023adb99a.jpg\"\/>  <\/div>\n<\/div>\n<p>  \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. <\/p>\n<h1>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438<\/h1>\n<p>  \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c NetworkManager, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.  <\/p>\n<pre><code class=\"bash\">systemctl stop NetworkManager systemctl mask NetworkManager systemctl stop NetworkManager-wait-online.service systemctl mask NetworkManager-wait-online.service <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043a\u0438.  <\/p>\n<pre><code class=\"bash\">ip a <\/code><\/pre>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b 4 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430: enp5s0, wlp2s0, enp1s0, \u0438 wwp6s0u1i1. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b enp5s0 \u0438 wlp2s0 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 br0 \u0438 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b enp1s0 \u0438 wwp6s0u1i1 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u0431\u0440\u0438\u0434\u0436 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/sysconfig\/network-scripts\/ifcfg-br0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;br0&quot; NAME=&quot;br0&quot; TYPE=&quot;Bridge&quot; ONBOOT=&quot;yes&quot; BOOTPROTO=&quot;static&quot; BROADCAST=192.168.2.255 IPADDR=192.168.2.1 NETMASK=255.255.255.0 NETWORK=192.168.2.0 NM_CONTROLLED=&quot;no&quot; IPV6INIT=&quot;no&quot; NOZEROCONF=&quot;yes&quot; ZONE=&quot;internal&quot; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Ethernet \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u043d\u0430\u0448 \u0431\u0440\u0438\u0434\u0436.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/sysconfig\/network-scripts\/ifcfg-enp5s0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;enp5s0&quot; NAME=&quot;enp5s0&quot; TYPE=&quot;Ethernet&quot; ONBOOT=&quot;yes&quot; BOOTPROTO=&quot;none&quot; HWADDR=&quot;XX:XX:XX:XX:XX:XX&quot; NM_CONTROLLED=&quot;no&quot; DEFROUTE=&quot;yes&quot; PEERDNS=&quot;yes&quot; PEERROUTES=&quot;yes&quot; IPV4_FAILURE_FATAL=&quot;no&quot; IPV6INIT=&quot;no&quot; BRIDGE=&quot;br0&quot; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c WiFi \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/sysconfig\/network-scripts\/ifcfg-wlp2s0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;wlp2s0&quot; NAME=&quot;wlp2s0&quot; TYPE=&quot;Ethernet&quot; ONBOOT=&quot;yes&quot; BOOTPROTO=&quot;none&quot; HWADDR=&quot;XX:XX:XX:XX:XX:XX&quot; NM_CONTROLLED=&quot;no&quot; DEFROUTE=&quot;yes&quot; PEERDNS=&quot;yes&quot; PEERROUTES=&quot;yes&quot; IPV4_FAILURE_FATAL=&quot;no&quot; IPV6INIT=&quot;no&quot; BRIDGE=&quot;br0&quot; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 Internet.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/sysconfig\/network-scripts\/ifcfg-enp1s0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;enp1s0&quot; TYPE=&quot;Ethernet&quot; HWADDR=&quot;XX:XX:XX:XX:XX:XX&quot; NM_CONTROLLED=&quot;no&quot; BOOTPROTO=&quot;dhcp&quot; DNS1=127.0.0.1 DNS2=127.0.0.1 DNS3=127.0.0.1 ONBOOT=&quot;yes&quot; IPV4_FAILURE_FATAL=&quot;no&quot; IPV6INIT=&quot;no&quot; NOZEROCONF=&quot;yes&quot; ZONE=&quot;external&quot; <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c bridge-utils \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 bridge.  <\/p>\n<pre><code class=\"bash\">yum install bridge-utils <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0442\u044c\u044e.  <\/p>\n<pre><code class=\"bash\">systemctl restart network.service <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4G Internet<\/b><\/p>\n<div class=\"spoiler_text\">\u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e 4G \u043c\u043e\u0434\u0435\u043c Huawei \u043f\u0440\u043e\u0448\u0438\u0442\u044b\u0439 \u0432 STICK.<br \/>  \u0414\u043b\u044f \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b.<\/p>\n<pre><code class=\"bash\">yum install usb_modeswitch usb_modeswitch-data <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 4G.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/sysconfig\/network-scripts\/ifcfg-wwp6s0u1i1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;wwp6s0u1i1&quot; NAME=&quot;wwp6s0u1i1&quot; TYPE=&quot;Ethernet&quot; ONBOOT=&quot;yes&quot; BOOTPROTO=&quot;dhcp&quot; HWADDR=&quot;XX:XX:XX:XX:XX:XX&quot; NM_CONTROLLED=&quot;no&quot; DNS1=127.0.0.1 DNS2=127.0.0.1 DNS3=127.0.0.1 NOZEROCONF=&quot;yes&quot; IPV4_FAILURE_FATAL=&quot;no&quot; IPV6INIT=&quot;no&quot; ZONE=&quot;external&quot; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438 \u0434\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.  <\/p>\n<pre><code class=\"bash\">vim \/sbin\/ifup-pre-local <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # PREUP=&quot;\/etc\/sysconfig\/network-scripts\/pre-up-${1:6}&quot; if [ -x $PREUP ]; then exec $PREUP fi <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/sbin\/ifdown-pre-local <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # PREDOWN=&quot;\/etc\/sysconfig\/network-scripts\/pre-down-$1&quot; if [ -x $PREDOWN ]; then exec $PREDOWN fi <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/sysconfig\/network-scripts\/pre-up-wwp6s0u1i1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # echo -en 'AT^NDISDUP=1,1,&quot;internet.yota&quot;\\r\\n' &gt; \/dev\/ttyUSB0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/sysconfig\/network-scripts\/pre-down-wwp6s0u1i1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # echo -en 'AT^NDISDUP=1,0,&quot;internet.yota&quot;\\r\\n' &gt; \/dev\/ttyUSB0 <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c.  <\/p>\n<pre><code class=\"bash\">ifup wwp6s0u1i1 ip a <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<h1>DNSMasq<\/h1>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DHCP \u0438 DNS \u0441\u0435\u0440\u0432\u0435\u0440.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/dnsmasq.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">log-queries log-dhcp log-facility=\/var\/log\/dnsmasq.log conf-dir=\/etc\/dnsmasq.d <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DHCP.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/dnsmasq.d\/dhcp.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">dhcp-authoritative dhcp-option=1,255.255.255.0 dhcp-option=2,192.168.2.1 dhcp-option=28,192.168.2.255 dhcp-option=42,192.168.2.1 dhcp-range=192.168.2.11,192.168.2.254,24h  dhcp-host=2c:35:f8:41:6e:68,192.168.2.2,PC <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DNS.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/dnsmasq.d\/dns.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">listen-address=127.0.0.1,192.168.2.1 interface=br0 except-interface=enp1s0,wwp6s0u1i1, tun0 domain-needed     bogus-priv  strict-order  no-resolv proxy-dnssec server=127.0.0.1#5353           # \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f DNSCrypt #server=77.88.8.88 server=\/onion\/127.0.0.1#5300    # \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f tor address=\/router\/192.168.2.1 #no-hosts addn-hosts=\/etc\/dnsmasq.hosts <\/code><\/pre>\n<p>  \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c \u0441\u0430\u0439\u0442\u044b \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u0438 microsoft \u0438 \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0432 \u043d\u0435\u043a\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445.  <\/p>\n<pre><code class=\"bash\">vi \/etc\/dnsmasq.hosts <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">dnsmasq.hosts<\/b><\/p>\n<div class=\"spoiler_text\">############### microsoft spy ###############<br \/>  127.0.0.1 vortex.data.microsoft.com<br \/>  127.0.0.1 vortex-win.data.microsoft.com<br \/>  127.0.0.1 telecommand.telemetry.microsoft.com<br \/>  127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net<br \/>  127.0.0.1 oca.telemetry.microsoft.com<br \/>  127.0.0.1 oca.telemetry.microsoft.com.nsatc.net<br \/>  127.0.0.1 sqm.telemetry.microsoft.com<br \/>  127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net<br \/>  127.0.0.1 watson.telemetry.microsoft.com<br \/>  127.0.0.1 watson.telemetry.microsoft.com.nsatc.net<br \/>  127.0.0.1 redir.metaservices.microsoft.com<br \/>  127.0.0.1 choice.microsoft.com<br \/>  127.0.0.1 choice.microsoft.com.nsatc.net<br \/>  127.0.0.1 df.telemetry.microsoft.com<br \/>  127.0.0.1 reports.wes.df.telemetry.microsoft.com<br \/>  127.0.0.1 wes.df.telemetry.microsoft.com<br \/>  127.0.0.1 services.wes.df.telemetry.microsoft.com<br \/>  127.0.0.1 sqm.df.telemetry.microsoft.com<br \/>  127.0.0.1 telemetry.microsoft.com<br \/>  127.0.0.1 watson.ppe.telemetry.microsoft.com<br \/>  127.0.0.1 telemetry.appex.bing.net<br \/>  127.0.0.1 telemetry.urs.microsoft.com<br \/>  127.0.0.1 telemetry.appex.bing.net:443<br \/>  127.0.0.1 settings-sandbox.data.microsoft.com<br \/>  127.0.0.1 vortex-sandbox.data.microsoft.com<br \/>  127.0.0.1 survey.watson.microsoft.com<br \/>  127.0.0.1 watson.live.com<br \/>  127.0.0.1 watson.microsoft.com<br \/>  127.0.0.1 statsfe2.ws.microsoft.com<br \/>  127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com<br \/>  127.0.0.1 compatexchange.cloudapp.net<br \/>  127.0.0.1 cs1.wpc.v0cdn.net<br \/>  127.0.0.1 a-0001.a-msedge.net<br \/>  127.0.0.1 statsfe2.update.microsoft.com.akadns.net<br \/>  127.0.0.1 sls.update.microsoft.com.akadns.net<br \/>  127.0.0.1 fe2.update.microsoft.com.akadns.net<br \/>  127.0.0.1 65.55.108.23<br \/>  127.0.0.1 65.39.117.230<br \/>  127.0.0.1 23.218.212.69<br \/>  127.0.0.1 134.170.30.202<br \/>  127.0.0.1 137.116.81.24<br \/>  127.0.0.1 diagnostics.support.microsoft.com<br \/>  127.0.0.1 corp.sts.microsoft.com<br \/>  127.0.0.1 statsfe1.ws.microsoft.com<br \/>  127.0.0.1 pre.footprintpredict.com<br \/>  127.0.0.1 204.79.197.200<br \/>  127.0.0.1 23.218.212.69<br \/>  127.0.0.1 i1.services.social.microsoft.com<br \/>  127.0.0.1 i1.services.social.microsoft.com.nsatc.net<br \/>  127.0.0.1 feedback.windows.com<br \/>  127.0.0.1 feedback.microsoft-hohm.com<br \/>  127.0.0.1 feedback.search.microsoft.com<br \/>  ############### skype &#038; yuotube ###############<br \/>  127.0.0.1 pubads.g.doubleclick.net<br \/>  127.0.0.1 static.doubleclick.net<br \/>  127.0.0.1 devads.skypeassets.net<br \/>  127.0.0.1 devapps.skype.net<br \/>  127.0.0.1 qawww.skypeassets.net<br \/>  127.0.0.1 qaapi.skype.net<br \/>  127.0.0.1 preads.skypeassets.net<br \/>  127.0.0.1 preapps.skype.net<br \/>  127.0.0.1 static.skypeassets.com<br \/>  127.0.0.1 serving.plexop.net<br \/>  127.0.0.1 preg.bforex.com<br \/>  127.0.0.1 ads1.msads.net<br \/>  127.0.0.1 flex.msn.com<br \/>  127.0.0.1 apps.skype.com<br \/>  127.0.0.1 api.skype.com<br \/>  127.0.0.1 cdn.mbstatic.org<br \/>  127.0.0.1 marathonbet.com<br \/>  127.0.0.1 megogo.net<br \/>  127.0.0.1 adselector.ru<br \/>  127.0.0.1 pluso.ru<br \/>  127.0.0.1 flash.begun.ru<br \/>  127.0.0.1 ad.adriver.ru  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/resolv.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">nameserver 127.0.0.1 <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 dnsmasq.  <\/p>\n<pre><code class=\"bash\">systemctl enable dnsmasq.service systemctl start dnsmasq.service <\/code><\/pre>\n<p>  <\/p>\n<h1>DNSCrypt<\/h1>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e DNSCrypt, \u0432 \u043a\u0443\u043f\u0435 \u0441 Tor, \u043f\u043e\u043c\u043e\u0433\u043e\u0430\u0435\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c.  <\/p>\n<pre><code class=\"bash\">yum localinstall https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/dnscrypt-proxy-1.6.0-1.el7.centos.x86_64.rpm <\/code><\/pre>\n<p>  \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 dnsmasq.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/sysconfig\/dnscrypt-proxy <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">DNSCRYPT_LOCALPORT=5353 <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 dnscrypt  <\/p>\n<pre><code class=\"bash\">systemctl enable dnscrypt-proxy.service systemctl start dnscrypt-proxy.service <\/code><\/pre>\n<p>  <\/p>\n<h1>EPEL<\/h1>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 EPEL.  <\/p>\n<pre><code class=\"bash\">yum localinstall http:\/\/mirror.yandex.ru\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm yum update <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b.  <\/p>\n<pre><code class=\"bash\">yum install bash-completion vim mc iftop wget smartmontools hdparm tmux <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.  <\/p>\n<pre><code class=\"bash\">useradd -G wheel user passwd user <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433 \u0432 \u044f\u0434\u0440\u0435.  <\/p>\n<pre><code class=\"bash\">echo &quot;net.ipv4.ip_forward=1&quot; &gt; \/etc\/sysctl.d\/forwarding.conf  sysctl --system <\/code><\/pre>\n<p>  \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0442\u0438\u043a\u0443 selinux.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/selinux\/config  SELINUX=permissive <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c.  <\/p>\n<pre><code class=\"bash\">vim \/root\/.bashrc <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># .bashrc  # User specific aliases and functions  alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias tmuxx='tmux attach || tmux new'  # Source global definitions if [ -f \/etc\/bashrc ]; then         . \/etc\/bashrc fi  NORMAL=&quot;\\[\\e[0m\\]&quot; RED=&quot;\\[\\e[1;31m\\]&quot; GREEN=&quot;\\[\\e[1;32m\\]&quot; BLUE=&quot;\\[\\e[1;34m\\]&quot;  export PS1=&quot;[$GREEN\\u$RED@$BLUE\\H]$NORMAL\\w# &quot; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c tmux.  <\/p>\n<pre><code class=\"bash\">vim ~\/.tmux.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">setw -g c0-change-trigger 10 setw -g c0-change-interval 250 set -g set-titles on  set -g set-titles-string &quot;tmux.#I.#W&quot;  set -g base-index 1 set -g history-limit 5000 set -g bell-action any setw -g monitor-activity on set -g visual-activity on bind-key k confirm kill-window bind-key K confirm kill-server set -g terminal-overrides 'xterm*:smcup@:rmcup@' set -g display-time 2000 <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u043e\u043b\u0433\u0438\u0439 \u043b\u043e\u0433\u0438\u043d \u043f\u043e SSH.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/ssh\/sshd_config <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">GSSAPIAuthentication no UseDNS no <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c rc.local \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u043f\u044f\u0449\u0438\u0439 \u0440\u0435\u0436\u0438\u043c \u0443 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 (\u043f\u0440\u043e\u0434\u043b\u0438\u0442 \u0435\u0433\u043e \u0441\u0440\u043e\u043a \u0441\u043b\u0443\u0436\u0431\u044b).  <\/p>\n<pre><code class=\"bash\">chmod a+x \/etc\/rc.local  vim \/etc\/rc.d\/rc.local  hdparm -B 255 \/dev\/sda hdparm -S 0 \/dev\/sda <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438.  <\/p>\n<pre><code class=\"bash\">mkdir \/home\/store mkdir \/home\/www <\/code><\/pre>\n<p>  <\/p>\n<h1>NTP<\/h1>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0432\u0446\u0438\u044e \u0432\u0440\u0435\u043c\u044f\u043d\u0438 \u043f\u043e NTP.  <\/p>\n<pre><code class=\"bash\">yum install ntp <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/sysconfig\/ntpd SYNC_HWCLOCK=yes <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">driftfile \/var\/lib\/ntp\/drift logfile \/var\/log\/ntp.log  restrict 127.0.0.1 restrict ::1  restrict 192.168.2.0 mask 255.255.255.0 nomodify notrap  server ntp1.stratum2.ru iburst server ntp2.stratum2.ru iburst server ntp3.stratum2.ru iburst server ntp4.stratum2.ru iburst server ntp5.stratum2.ru iburst <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl enable ntpd.service <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl start ntpd.service <\/code><\/pre>\n<p>  \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0440\u0435\u043c\u044f.  <\/p>\n<pre><code class=\"bash\">systemctl stop ntpd.service && ntpdate ntp1.stratum2.ru && systemctl start ntpd.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Hostapd <\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Hostapd, \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 WiFI. \u042d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u043d \u0441 <a href=\"https:\/\/projects.archlinux.org\/svntogit\/community.git\/tree\/hostapd\/repos\/community-i686\/hostapd-2.3-noscan.patch?id=13b8f3fdf956c0e81b59fdde0ffc7f6fb17a251c\">noscan.patch<\/a>.  <\/p>\n<pre><code class=\"bash\">yum localinstall https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Hostapd\/hostapd-2.4-3.el7.centos.x86_64.rpm <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b, SSID \u0438 \u043f\u0430\u0440\u043e\u043b\u044c.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/hostapd\/hostapd.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">hostapd.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">interface=wlp2s0 bridge=br0 driver=nl80211  logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2  ctrl_interface=\/var\/run\/hostapd ctrl_interface_group=wheel  ##### IEEE 802.11 related configuration #######################################  ssid=Home country_code=RU hw_mode=g channel=5 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wmm_enabled=1  ##### IEEE 802.11n related configuration ######################################  ieee80211n=1 ht_capab=[HT40-][HT40+][SHORT-GI-40][DSSS_CCK-40] noscan=1  ##### WPA\/IEEE 802.11i configuration ##########################################  wpa=2 wpa_passphrase=qwerty1234 wpa_key_mgmt=WPA-PSK #wpa_pairwise=CCMP rsn_pairwise=CCMP #wpa_group_rekey=600 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\">systemctl enable hostapd.service systemctl start hostapd.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Transmission<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u043e\u0440\u0440\u0435\u043d\u0442-\u043a\u043b\u0438\u0435\u043d\u0442 transmission.  <\/p>\n<pre><code class=\"bash\">yum install transmission-daemon transmission-cli <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl enable transmission-daemon.service systemctl start transmission-daemon.service systemctl stop transmission-daemon.service <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a Web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432. \u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435, \u0438\u043d\u0430\u0447\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043a\u0438 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f.<\/p>\n<pre><code class=\"bash\">vim \/var\/lib\/transmission\/.config\/transmission-daemon\/settings.json <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">settings.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">{     &quot;alt-speed-down&quot;: 50,     &quot;alt-speed-enabled&quot;: false,     &quot;alt-speed-time-begin&quot;: 540,     &quot;alt-speed-time-day&quot;: 127,     &quot;alt-speed-time-enabled&quot;: false,     &quot;alt-speed-time-end&quot;: 1020,     &quot;alt-speed-up&quot;: 50,     &quot;bind-address-ipv4&quot;: &quot;0.0.0.0&quot;,     &quot;bind-address-ipv6&quot;: &quot;::&quot;,     &quot;blocklist-enabled&quot;: false,     &quot;blocklist-url&quot;: &quot;http:\/\/www.example.com\/blocklist&quot;,     &quot;cache-size-mb&quot;: 4,     &quot;dht-enabled&quot;: true,     &quot;download-dir&quot;: &quot;\/home\/store\/\u0412\u0430\u0448\u0430 \u043f\u0430\u043f\u043a\u0430&quot;,     &quot;download-queue-enabled&quot;: true,     &quot;download-queue-size&quot;: 5,     &quot;encryption&quot;: 1,     &quot;idle-seeding-limit&quot;: 30,     &quot;idle-seeding-limit-enabled&quot;: false,     &quot;incomplete-dir&quot;: &quot;\/home\/store\/Torrent&quot;,     &quot;incomplete-dir-enabled&quot;: false,     &quot;lpd-enabled&quot;: false,     &quot;message-level&quot;: 2,     &quot;peer-congestion-algorithm&quot;: &quot;&quot;,     &quot;peer-id-ttl-hours&quot;: 6,     &quot;peer-limit-global&quot;: 200,     &quot;peer-limit-per-torrent&quot;: 50,     &quot;peer-port&quot;: 51413,     &quot;peer-port-random-high&quot;: 65535,     &quot;peer-port-random-low&quot;: 49152,     &quot;peer-port-random-on-start&quot;: false,     &quot;peer-socket-tos&quot;: &quot;default&quot;,     &quot;pex-enabled&quot;: true,     &quot;port-forwarding-enabled&quot;: true,     &quot;preallocation&quot;: 1,     &quot;prefetch-enabled&quot;: 1,     &quot;queue-stalled-enabled&quot;: true,     &quot;queue-stalled-minutes&quot;: 30,     &quot;ratio-limit&quot;: 2,     &quot;ratio-limit-enabled&quot;: false,     &quot;rename-partial-files&quot;: true,     &quot;rpc-authentication-required&quot;: false,     &quot;rpc-bind-address&quot;: &quot;0.0.0.0&quot;,     &quot;rpc-enabled&quot;: true,     &quot;rpc-password&quot;: &quot;\u0421\u044e\u0434\u0430 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c&quot;,     &quot;rpc-port&quot;: 9091,     &quot;rpc-url&quot;: &quot;\/transmission\/&quot;,     &quot;rpc-username&quot;: &quot;\u0421\u044e\u0434\u0430 \u043b\u043e\u0433\u0438\u043d&quot;,     &quot;rpc-whitelist&quot;: &quot;127.0.0.1&quot;,     &quot;rpc-whitelist-enabled&quot;: false,     &quot;scrape-paused-torrents-enabled&quot;: true,     &quot;script-torrent-done-enabled&quot;: false,     &quot;script-torrent-done-filename&quot;: &quot;&quot;,     &quot;seed-queue-enabled&quot;: false,     &quot;seed-queue-size&quot;: 10,     &quot;speed-limit-down&quot;: 100,     &quot;speed-limit-down-enabled&quot;: false,     &quot;speed-limit-up&quot;: 100,     &quot;speed-limit-up-enabled&quot;: false,     &quot;start-added-torrents&quot;: true,     &quot;trash-original-torrent-files&quot;: false,     &quot;umask&quot;: 0,     &quot;upload-slots-per-torrent&quot;: 14,     &quot;utp-enabled&quot;: true } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl start transmission-daemon.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Aria2<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a.  <\/p>\n<pre><code class=\"bash\">yum install aria2.x86_64 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">mkdir \/etc\/aria2 touch \/etc\/aria2\/aria2.conf touch \/etc\/aria2\/session.lock touch \/var\/log\/aria2.log && chown nobody:nobody \/var\/log\/aria2.log chown nobody:nobody \/etc\/aria2 -R <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f systemd.  <\/p>\n<pre><code class=\"bash\">vim \/lib\/systemd\/system\/aria2.service <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[Unit] Description=Aria2 User Service by %u After=network.target  [Service] Type=forking User=nobody Group=nobody ExecStart=\/usr\/bin\/aria2c --conf-path=\/etc\/aria2\/aria2.conf --log=\/var\/log\/aria2.log  [Install] WantedBy=multi-user.target <\/code><\/pre>\n<p>  \u0420\u043a\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u0437\u0430\u0434\u0430\u0435\u043c \u0434\u0435\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u0438 \u043a\u043b\u044e\u0447 RPC, \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/aria2\/aria2.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">daemon=true continue=true enable-rpc rpc-allow-origin-all=true rpc-listen-all=true # \u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 openssl rand -hex 15 rpc-secret=616d343b1465b51ca65675b2bfef98  dir=\/home\/store\/Download save-session=\/etc\/aria2\/session.lock input-file=\/etc\/aria2\/session.lock dht-file-path=\/etc\/aria2\/dht.dat disable-ipv6=true  log-level=warn <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c preset \u0434\u043b\u044f firewalld.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/firewalld\/services\/aria2.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;service&gt;  &lt;short&gt;aria2&lt;\/short&gt;  &lt;description&gt;aria2 command-line download utility&lt;\/description&gt;  &lt;port protocol=&quot;tcp&quot; port=&quot;6800&quot;\/&gt; &lt;\/service&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/etc\/firewalld\/services restorecon aria2.xml chmod 640 aria2.xml <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\">systemctl enable aria2.service systemctl start aria2.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Aria2 WebUI<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f aria2.  <\/p>\n<pre><code class=\"bash\">wget https:\/\/codeload.github.com\/ziahamza\/webui-aria2\/zip\/master -O webui-aria2.zip && unzip webui-aria2.zip -d \/home\/www\/ && mv \/home\/www\/webui-aria2-master \/home\/www\/webui-aria2 && chown nobody:nobody \/home\/www\/webui-aria2 -R <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/home\/www\/webui-aria2\/configuration.js <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">configuration.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">angular .module('webui.services.configuration',  []) .constant('$name', 'Aria2 WebUI')  \/\/ name used across the entire UI .constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} \u2014 {name}') .constant('$pageSize', 11)         \/\/ number of downloads shown before pagination kicks in .constant('$authconf', {           \/\/ default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised   host: '192.168.2.1',   path: '\/jsonrpc',   port: 6800,   encrypt: false,   auth: {                          \/\/ either add the token field or the user and pass field, not both.   token: '616d343b1465b51ca65675b2bfef98'   \/*-----------------------------*\/   \/\/ user: '*YOUR_USERNAME*',   \/\/ pass: '*YOUR_SECRET_PASS*'   },   directURL: ''                   \/\/ If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured }) .constant('$enable', {    torrent: true,  \/\/ bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanently disable it    metalink: true, \/\/ metalink support only enabled if supported by aria2 build, set to false to permanently disable it    sidebar: {            \/\/ configuration related to the sidebar next to the list of downloads     show: true,         \/\/ set to false to completely hide the sidebar. Other elements inside will be automatically hidden      stats: true,        \/\/ set to false to hide the global statistic section (contains the speed graph for now)      filters: true,      \/\/ set to false to hide the  Download Filters      starredProps: true \/\/ only shown when at least one property is added to the starred list, set to false to permanently hide the Quick Access Settings inside the sidebar   } }) .constant('$starredProps', [   \/\/ default list of Quick Access Properties. Can be overridden by making modification through the Global Settings dialog   \/\/ go to Global Settings dialog to see their description   'dir', 'conf-path', 'auto-file-renaming', 'max-connection-per-server' ]) .constant('$downloadProps', [ \/\/ Similar to starred Quick Access properties but for adding new downloads.   \/\/ go to Advance Download Options when adding a new download to view the list of possible options   'http-user', 'http-passwd', 'pause', 'dir', 'max-connection-per-server' ]) .constant('$globalTimeout', 1000)  \/\/ interval to update the individual downloads ; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/usr\/local\/bin\/aria2-webui <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">aria2-webui<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">#!\/usr\/bin\/env python  import os import posixpath import urllib import BaseHTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler  # modify this to add additional routes ROUTES = ( ##  [url_prefix ,  directory_path]     ['',       '\/home\/www\/webui-aria2'],  # empty string for the 'default' match #   ['\/media', '\/var\/www\/media'] )  class RequestHandler(SimpleHTTPRequestHandler):      def translate_path(self, path):         &quot;&quot;&quot;translate path given routes&quot;&quot;&quot;          # set default root to cwd         root = os.getcwd()          # look up routes and set root directory accordingly         for pattern, rootdir in ROUTES:             if path.startswith(pattern):                 # found match!                 path = path[len(pattern):]  # consume path up to pattern len                 root = rootdir                 break          # normalize path and prepend root directory         path = path.split('?',1)[0]         path = path.split('#',1)[0]         path = posixpath.normpath(urllib.unquote(path))         words = path.split('\/')         words = filter(None, words)          path = root         for word in words:             drive, word = os.path.splitdrive(word)             head, word = os.path.split(word)             if word in (os.curdir, os.pardir):                 continue             path = os.path.join(path, word)          return path  if __name__ == '__main__':     BaseHTTPServer.test(RequestHandler, BaseHTTPServer.HTTPServer) <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u0432\u0437\u044f\u0442 <a href=\"http:\/\/www.huyng.com\/posts\/modifying-python-simplehttpserver\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">chmod 755 \/usr\/local\/bin\/aria2-webui <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c systemd \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\">vim \/lib\/systemd\/system\/aria2-webui.service <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[Unit] Description=Aria2 WebUI After=network.target After=aria2.service  [Service] Type=simple User=nobody Group=nobody ExecStart=\/usr\/local\/bin\/aria2-webui  [Install] WantedBy=multi-user.target <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\">systemctl enable aria2-webui.service systemctl start aria2-webui.service <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c preset \u0434\u043b\u044f firewalld.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/firewalld\/services\/aria2-webui.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;service&gt;  &lt;short&gt;Aria2-WebUI&lt;\/short&gt;  &lt;description&gt;WebUI for Aria2&lt;\/description&gt;  &lt;port protocol=&quot;tcp&quot; port=&quot;8000&quot;\/&gt; &lt;\/service&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/etc\/firewalld\/services restorecon aria2-webui.xml chmod 640 aria2-webui.xml <\/code><\/pre>\n<p>  <\/p>\n<h1>OpenVPN<\/h1>\n<p>  \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c openvpn.  <\/p>\n<pre><code class=\"bash\">yum install openvpn <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/openvpn\/client.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">client dev tun proto tcp remote xxx.xxx.xxx.xxx 1194 resolv-retry infinite nobind tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun ca \/etc\/openvpn\/keys\/ca.crt cert \/etc\/openvpn\/keys\/home.crt key \/etc\/openvpn\/keys\/home.key #tls-auth \/etc\/openvpn\/keys\/ta.key 1 #comp-lzo verb 3 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl enable openvpn@client systemctl start openvpn@client systemctl status -l openvpn@client <\/code><\/pre>\n<p>  <\/p>\n<h1>NFS<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 nfs, \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 linux \u043c\u0430\u0448\u0438\u043d.  <\/p>\n<pre><code class=\"bash\">yum install nfs-utils <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/idmapd.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">Domain = router.local <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/exports <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">\/home\/store 192.168.2.0\/24(rw,sync,no_root_squash,no_subtree_check) <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\">systemctl start rpcbind nfs-server systemctl enable rpcbind nfs-server <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c.  <\/p>\n<pre><code class=\"bash\">exportfs <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Bonus.<\/b><\/p>\n<div class=\"spoiler_text\">\u042d\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f nfc \u0448\u0430\u0440\u044b \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 TV-\u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 Android.<br \/>  4.4.2 SuperSU  <\/p>\n<pre><code class=\"bash\">#!\/system\/bin\/sh  S_MOUNT=&quot;NFS&quot; T_MOUNT=&quot;store&quot; IP=&quot;192.168.2.1&quot;  # Make sure networking is up before mounting while : do    check_if_up=($(netcfg | grep -e eth0 -e wlan0 | busybox awk '{print $2}'))    if [[ (${check_if_up[0]} = UP) || (${check_if_up[1]} = UP) ]]; then     break    fi    sleep 1 done sleep 1  if [ ! -d \/data\/media\/0\/${S_MOUNT} ] ; then   mkdir \/data\/media\/0\/${S_MOUNT} fi sleep 30  su --mount-master -c busybox mount -o rw,nosuid,nodev,nolock,rsize=32768,wsize=32768,intr,noatime -t nfs ${IP}:\/home\/${T_MOUNT} \/data\/media\/0\/${S_MOUNT} <\/code><\/pre>\n<p>  4.2.2 SuperSU  <\/p>\n<pre><code class=\"bash\">#!\/system\/bin\/sh  S_MOUNT=&quot;NFS&quot; T_MOUNT=&quot;store&quot; IP=&quot;192.168.2.1&quot;  # Make sure networking is up before mounting while : do    check_if_up=($(netcfg | grep -e eth0 -e wlan0 | busybox awk '{print $2}'))    if [[ (${check_if_up[0]} = UP) || (${check_if_up[1]} = UP) ]]; then     break    fi    sleep 1 done sleep 1  if [ ! -d \/mnt\/${S_MOUNT} ] ; then   mkdir \/mnt\/${S_MOUNT} fi sleep 30  busybox mount -o rw,nolock ${IP}:\/home\/${T_MOUNT} \/mnt\/${S_MOUNT} <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h1>SAMBA<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 samba, \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 windows \u043c\u0430\u0448\u0438\u043d.  <\/p>\n<pre><code class=\"bash\"> yum install samba  mv \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.orig <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/samba\/smb.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">smb.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">[global]         workgroup = WORKGROUP         server string = ROUTER         netbios name = ROUTER         interfaces = lo br0         hosts allow = 127. 192.168.2.         bind interfaces only = yes         security = USER         map to guest = Bad User         guest account = nobody         encrypt passwords = true         passdb backend = tdbsam         load printers = no         show add printer wizard = no         printcap name = \/dev\/null         disable spoolss = yes         unix charset = UTF8         socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536  [store]         comment = all         path = \/home\/store         browseable = no         read only = no         guest ok = yes         writable = yes         create mask = 0777         directory mask = 0777         available = yes         public = yes <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441.  <\/p>\n<pre><code class=\"bash\"> systemctl enable smb.service  systemctl start smb.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Squid<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u0435\u0448\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 squid.<br \/>  \u0421\u043a\u0432\u0438\u0434 \u0441\u043e\u0431\u0440\u0430\u043d \u0441 \u043f\u0430\u0442\u0447\u0435\u043c \u0434\u043b\u044f bio.cc \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u0443\u044e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e HTTPS \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0431\u0435\u0437 \u043f\u043e\u0434\u043c\u0435\u043d\u044b \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432.<br \/>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f <a href=\"http:\/\/habrahabr.ru\/post\/272733\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0430 \u0441\u043a\u0432\u0438\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0437\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0438 \u0437\u0430\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0430\u0439\u0442\u0430\u043c, \u0447\u0435\u0440\u0435\u0437 tor.<br \/>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Squid, \u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 squid squid-helpers.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/yum.repos.d\/Squid.repo <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[squid] name=Squid repo for CentOS Linux - $basearch #IL mirror baseurl=http:\/\/www1.ngtech.co.il\/repo\/centos\/$releasever\/$basearch\/ failovermethod=priority enabled=1 gpgcheck=0 # Exclude=squid squid-helpers <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">yum update <\/code><\/pre>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Squid.  <\/p>\n<pre><code class=\"bash\">yum localinstall https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Squid\/squid-3.5.8-4.el7.centos.x86_64.rpm yum localinstall https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Squid\/squid-helpers-3.5.8-4.el7.centos.x86_64.rpm <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/etc\/squid mkdir ssl_cert chown squid:squid ssl_cert chmod 700 ssl_cert cd ssl_cert openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout squidCA.pem -out squidCA.pem <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">\/usr\/lib64\/squid\/ssl_crtd -c -s \/var\/lib\/ssl_db chown squid:squid -R \/var\/lib\/ssl_db <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/squid\/squid.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">squid.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">visible_hostname router.local #---------------------------------------------------------------- mime_table \/etc\/squid\/mime.conf global_internal_static on icon_directory \/usr\/share\/squid\/icons #---------------------------------------------------------------- acl localnet src 192.168.2.0\/24 acl office_hours        time            00:00-24:00 #---------------------------------------------------------------- acl SSL_ports port 443          # https acl SSL_ports port 563          # snews acl SSL_ports port 873          # rsync #---------------------------------------------------------------- acl Safe_ports port 21          # ftp acl Safe_ports port 25          # smtp acl Safe_ports port 70          # gopher acl Safe_ports port 80          # http acl Safe_ports port 210         # wais acl Safe_ports port 280         # http-mgmt acl Safe_ports port 443         # https acl Safe_ports port 488         # gss-http acl Safe_ports port 591         # filemaker acl Safe_ports port 631         # cups acl Safe_ports port 777         # multiling http acl Safe_ports port 873         # rsync acl Safe_ports port 901         # SWAT acl Safe_ports port 1025-65535  # unregistered ports acl purge method PURGE acl CONNECT method CONNECT #---------------------------------------------------------------- acl windowsupdate dstdomain windowsupdate.microsoft.com acl windowsupdate dstdomain .update.microsoft.com acl windowsupdate dstdomain download.windowsupdate.com acl windowsupdate dstdomain redir.metaservices.microsoft.com acl windowsupdate dstdomain images.metaservices.microsoft.com acl windowsupdate dstdomain c.microsoft.com acl windowsupdate dstdomain www.download.windowsupdate.com acl windowsupdate dstdomain wustat.windows.com acl windowsupdate dstdomain crl.microsoft.com acl windowsupdate dstdomain sls.microsoft.com acl windowsupdate dstdomain productactivation.one.microsoft.com acl windowsupdate dstdomain ntservicepack.microsoft.com #----------------------------------------------------------------- acl onion_domain dstdomain .onion acl tor_url dstdom_regex -i &quot;\/etc\/squid\/tor.url&quot; #----------------------------------------------------------------- cache_peer 127.0.0.1 parent 8118 0 no-query no-digest default cache_peer_access 127.0.0.1 allow onion_domain cache_peer_access 127.0.0.1 allow tor_url cache_peer_access 127.0.0.1 deny all #----------------------------------------------------------------- http_access allow windowsupdate localnet #----------------------------------------------------------------- never_direct allow onion_domain never_direct allow tor_url always_direct deny onion_domain always_direct deny tor_url always_direct allow all #---------------------------------------------------------------- sslproxy_cert_error allow all sslproxy_flags DONT_VERIFY_PEER acl blocked ssl::server_name  &quot;\/etc\/squid\/denied_https.conf&quot; acl step1 at_step SslBump1 ssl_bump peek step1 ssl_bump terminate blocked ssl_bump splice all sslcrtd_program \/usr\/lib64\/squid\/ssl_crtd -s \/var\/lib\/ssl_db -M 4MB #---------------------------------------------------------------- acl js urlpath_regex -i \\.js(\\?.*)?$ acl adblock-android dstdomain &quot;\/etc\/squid\/adblock-android.conf&quot; acl adblock url_regex &quot;\/etc\/squid\/adblock.acl&quot; acl badsites    dstdomain &quot;\/etc\/squid\/denied-sites.conf&quot; #---------------------------------------------------------------- http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access deny  localnet adblock-android http_access deny  localnet adblock http_access allow localhost localnet Safe_ports #---------------------------------------------------------------- http_access allow localnet CONNECT http_access allow localnet office_hours #---------------------------------------------------------------- deny_info TCP_RESET adblock js deny_info http:\/\/192.168.2.1:3128\/squid-internal-static\/icons\/null.gif adblock #---------------------------------------------------------------- http_access deny all #---------------------------------------------------------------- icp_access allow localnet icp_access deny all #---------------------------------------------------------------- http_port 192.168.2.1:3127 options=NO_SSLv3:NO_SSLv2 http_port 192.168.2.1:3128 intercept options=NO_SSLv3:NO_SSLv2 https_port 192.168.2.1:3129 intercept ssl-bump options=ALL:NO_SSLv3:NO_SSLv2 connection-auth=off cert=\/etc\/squid\/ssl_cert\/squidCA.pem #---------------------------------------------------------------- access_log stdio:\/var\/log\/squid\/access.log squid cache_log \/var\/log\/squid\/cache.log cache_store_log stdio:\/var\/log\/squid\/store.log pid_filename \/var\/run\/squid.pid debug_options ALL,1 #---------------------------------------------------------------- refresh_pattern ^ftp:           1440    20%     10080 refresh_pattern ^gopher:        1440    0%      1440 refresh_pattern -i (\/cgi-bin\/|\\?) 0     0%      0 refresh_pattern (Release|Package(.gz)*)$        0       20%     2880 refresh_pattern .               0       20%     4320 acl shoutcast rep_header X-HTTP09-First-Line ^ICY\\s[0-9] acl apache rep_header Server ^Apache #---------------------------------------------------------------- hosts_file \/etc\/hosts coredump_dir \/var\/spool\/squid error_directory \/usr\/share\/squid\/errors\/ru-ru cache_mgr wmlex@yandex.ru cache_dir ufs \/var\/spool\/squid 2000 48 256 shutdown_lifetime 5 seconds <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0440\u0435\u043a\u043b\u0430\u043c\u044b  <\/p>\n<pre><code class=\"bash\">wget -P \/etc\/squid\/ https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Squid\/adblock-android.conf wget -P \/etc\/squid\/ https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Squid\/adblock.acl wget -P \/usr\/share\/squid\/icons\/ https:\/\/dl.dropboxusercontent.com\/u\/2709550\/HP%20t610%20PLUS\/Squid\/null.gif touch \/etc\/squid\/denied_https.conf touch \/etc\/squid\/tor.url <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/squid\/tor.url <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">config.privoxy.org check.torproject.org\/?lang=ru <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/squid\/mime.conf <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">null.gif$       image\/gif                       null.gif                        -       image   +download +view <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl enable squid.service squid -z systemctl restart squid.service <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/firewalld\/services\/squid.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;service&gt;  &lt;short&gt;Suid&lt;\/short&gt;  &lt;description&gt;Squid caching proxy server&lt;\/description&gt;  &lt;port protocol=&quot;tcp&quot; port=&quot;3127&quot;\/&gt;  &lt;port protocol=&quot;tcp&quot; port=&quot;3128&quot;\/&gt;  &lt;port protocol=&quot;tcp&quot; port=&quot;3129&quot;\/&gt; &lt;\/service&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/etc\/firewalld\/services restorecon squid.xml chmod 640 squid.xml <\/code><\/pre>\n<p>  <\/p>\n<h1>Tor<\/h1>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c tor, \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u043e\u043c\u0435\u043d\u0430\u043c .onion \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u0430\u0439\u0442\u0430\u043c. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c privoxy, \u0442\u0430\u043a \u043a\u0430\u043a tor \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043e squid.<\/p>\n<pre><code class=\"bash\">vim \/etc\/yum.repos.d\/torproject.repo <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[tor] name=Tor repo enabled=1 baseurl=https:\/\/deb.torproject.org\/torproject.org\/rpm\/el\/7\/$basearch\/ gpgcheck=1 gpgkey=https:\/\/deb.torproject.org\/torproject.org\/rpm\/RPM-GPG-KEY-torproject.org.asc repo_gpgcheck=1  [tor-source] name=Tor source repo enabled=0 autorefresh=0 baseurl=https:\/\/deb.torproject.org\/torproject.org\/rpm\/el\/7\/SRPMS gpgcheck=1 gpgkey=https:\/\/deb.torproject.org\/torproject.org\/rpm\/RPM-GPG-KEY-torproject.org.asc repo_gpgcheck=1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/yum.repos.d\/epel.repo <\/code><\/pre>\n<p>  \u0418\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0430\u043a\u0435\u0430 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f epel.  <\/p>\n<pre><code class=\"bash\">Exclude=tor <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">yum update yum install tor privoxy <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">vim \/etc\/tor\/tor-rpm-defaults-torrc <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># You probably want to edit torrc file instead of this one. # These are just fallback variables for --defaults-torrc Tor option. # DataDirectory \/var\/lib\/tor PidFile \/var\/run\/tor\/tor.pid RunAsDaemon 1 User _tor SocksPort 9050 SocksListenAddress 127.0.0.1 #ControlSocket \/var\/run\/tor\/control #ControlSocketsGroupWritable 1 CookieAuthentication 1 Log notice file \/var\/log\/tor\/tor.log ExcludeNodes {ru}, {ua}, {by} VirtualAddrNetworkIPv4 10.192.0.0\/10 DNSPort 5300 DNSListenAddress 127.0.0.1 AutomapHostsOnResolve 1 <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c privoxy.  <\/p>\n<pre><code class=\"bash\">vim \/etc\/privoxy\/config <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">confdir \/etc\/privoxy logdir \/var\/log\/privoxy logfile privoxy.log actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on. actionsfile default.action   # Main actions file actionsfile user.action      # User customizations filterfile default.filter filterfile user.filter      # User customizations listen-address  127.0.0.1:8118 forward-socks5t \/ 127.0.0.1:9050 . max-client-connections 4096 toggle  1 enable-remote-toggle  0 enable-remote-http-toggle  0 enable-edit-actions 0 enforce-blocks 0 buffer-limit 4096 enable-proxy-authentication-forwarding 0 forwarded-connect-retries  0 accept-intercepted-requests 0 allow-cgi-request-crunching 0 split-large-forms 0 keep-alive-timeout 5 tolerate-pipelining 1 socket-timeout 300 <\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u044b.  <\/p>\n<pre><code class=\"bash\">systemctl enable tor systemctl restart tor systemctl enable privoxy.service systemctl start privoxy.service <\/code><\/pre>\n<p>  <\/p>\n<h1>Firewalld<\/h1>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u043b.  <\/p>\n<pre><code class=\"bash\">firewall-cmd --set-default-zone=internal  firewall-cmd --permanent --zone=external --add-icmp-block=echo-reply firewall-cmd --permanent --zone=external --add-icmp-block=destination-unreachable firewall-cmd --permanent --zone=external --add-icmp-block=echo-request firewall-cmd --permanent --zone=external --add-icmp-block=time-exceeded firewall-cmd --permanent --zone=external --add-icmp-block=parameter-problem  firewall-cmd --permanent --zone=external --change-interface=enp1s0 firewall-cmd --permanent --zone=external --add-masquerade  # \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 4G firewall-cmd --direct --permanent --passthrough ipv4 -t mangle -A POSTROUTING -o wwp6s0u1i1 -j TTL --ttl-set 64 firewall-cmd --permanent --zone=external --change-interface=wwp6s0u1i1  firewall-cmd --permanent --zone=internal --change-interface=br0  firewall-cmd --permanent --zone=internal --add-masquerade  firewall-cmd --permanent --zone=internal --add-port=9091\/tcp firewall-cmd --permanent --zone=internal --add-service=samba firewall-cmd --permanent --zone=internal --add-service=dns firewall-cmd --permanent --zone=internal --add-service=dhcp firewall-cmd --permanent --zone=internal --add-service=nfs firewall-cmd --permanent --zone=internal --add-service=ntp firewall-cmd --permanent --zone=internal --add-service=mountd firewall-cmd --permanent --zone=internal --add-service=rpc-bind firewall-cmd --permanent --zone=internal --add-service=ssh firewall-cmd --permanent --zone=internal --add-service=aria2 firewall-cmd --permanent --zone=internal --add-service=aria2-webui  firewall-cmd --permanent --zone=internal --add-service=squid firewall-cmd --permanent --zone=internal --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=192.168.2.1 firewall-cmd --permanent --zone=internal --add-forward-port=port=443:proto=tcp:toport=3129:toaddr=192.168.2.1  firewall-cmd --reload <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">firewall-cmd --list-all-zones <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">systemctl restart network.service systemctl restart firewalld.service <\/code><\/pre>\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\/273547\/\"> http:\/\/habrahabr.ru\/post\/273547\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 Geektimes <a href=\"http:\/\/geektimes.ru\/post\/250630\/\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0435-\u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u042f \u043e\u0431\u043d\u043e\u0432\u0438\u043b \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 <b>HP t610 Plus<\/b> \u0438 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 <b>CentOS 7<\/b>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439, \u0430 \u043a\u0430\u043a \u043d\u043e\u0432\u0443\u044e.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6f2\/000\/c70\/6f2000c702c9410282eef17066019b7d.jpg\"\/>  <\/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-270903","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270903","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=270903"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270903\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}