{"id":6292,"date":"2023-12-21T15:11:10","date_gmt":"2023-12-21T13:11:10","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6292"},"modified":"2023-12-21T15:11:10","modified_gmt":"2023-12-21T13:11:10","slug":"%d1%80%d0%be%d0%b7%d1%88%d0%b8%d1%80%d1%8e%d1%94%d0%bc%d0%be-%d1%84%d1%83%d0%bd%d0%ba%d1%86%d1%96%d0%be%d0%bd%d0%b0%d0%bb-edge-router","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6292","title":{"rendered":"\u0420\u043e\u0437\u0448\u0438\u0440\u044e\u0454\u043c\u043e \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b edge router"},"content":{"rendered":"\n<p>\u0422\u0443\u0442 \u0440\u043e\u0437\u043a\u0430\u0436\u0443 \u043f\u043e\u043a\u0440\u043e\u043a\u043e\u0432\u043e \u044f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437 <strong>edge router<\/strong> \u043f\u043e\u0432\u043d\u043e\u0446\u0456\u043d\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 <strong>linux<\/strong>. \u042f\u043a\u0449\u043e \u043f\u043e-\u0441\u0443\u0442\u0456, \u0442\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 <strong>edge router<\/strong> &#8211; \u0446\u0435 \u0434\u0435\u044f\u043a\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0430, \u044f\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f \u043f\u0456\u0441\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0443 <strong>Linux<\/strong>. <\/p>\n\n\n\n<p>\u041f\u0440\u0438\u0447\u043e\u043c\u0443 \u0440\u043e\u0431\u0438\u043c\u043e \u0432\u0441\u0435 \u0442\u0430\u043a, \u0449\u043e\u0431 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0448\u0432\u0438\u0434\u043a\u043e \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443 \u043d\u0430\u0437\u0430\u0434, \u044f\u043a\u0449\u043e \u0442\u0440\u0435\u0431\u0430. \u0411\u043e \u0456\u043d\u0430\u043a\u0448\u0435 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0431 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0438 <strong>ARM Linux<\/strong>.<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">1) \u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f<\/mark><\/strong><\/p>\n\n\n\n<p>\u041d\u0430 \u0432\u0441\u044f\u043a \u0432\u0438\u043f\u0430\u0434\u043e\u043a \u043e\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e \u0434\u043e \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u0457 \u0432\u0435\u0440\u0441\u0456\u0457<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">2) \u0417\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430<\/mark><\/strong><\/p>\n\n\n<pre># \/bin\/bash;sudo -s;\/bin\/bash;useradd -m -s \/bin\/bash -g root user<\/pre>\n\n\n<p>\u0414\u0430\u043b\u0456 \u043a\u043e\u043c\u0435\u043d\u0442\u0443\u0454\u043c\u043e \u0442\u0430\u043a\u0438\u0439 \u0440\u044f\u0434\u043e\u043a \u0443 \u0444\u0430\u0439\u043b\u0456 <strong>\/etc\/pam.d\/passwd<\/strong>:<\/p>\n\n\n<pre>password\u00a0\u00a0\u00a0 requisite pam_succeed_if.so user = root<\/pre>\n\n\n<p>\u0414\u0430\u043b\u0456 \u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u043a\u043e\u0432\u043e <strong>logout\/login<\/strong> \u0432\u0456\u0434 root&#8217;a \u0456 \u043c\u0456\u043d\u044f\u0454\u043c\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0443.<\/p>\n\n\n<pre># passwd user<\/pre>\n\n\n<p>\u0414\u043e\u0434\u0430\u0454\u043c\u043e \u0439\u043e\u0433\u043e \u0432 <strong>sudo<\/strong>:<\/p>\n\n\n<pre># EDITOR=vi visudo<\/pre>\n\n\n<p>\u0432\u043d\u043e\u0441\u0438\u043c\u043e \u0440\u044f\u0434\u043e\u043a:<\/p>\n\n\n<pre>user&nbsp;&nbsp;&nbsp; ALL=(ALL) ALL<\/pre>\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">3) \u0412\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438<\/mark><\/strong><\/p>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432\u0456\u0434\u043a\u043b\u044e\u0447\u0430\u0454\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u0432\u0435\u0431\u043a\u0438 \u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u0440\u0430\u0446\u044e\u0454 \u043d\u0430 <strong>runlevel 2<\/strong>, \u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u043a\u0456 <strong>symlink <\/strong>\u0437 <strong>\/etc\/rc2.d\/<\/strong><\/p>\n\n\n<pre>S01ubnt-init, S03ubnt-protocols, S03vyatta-router<\/pre>\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\"><strong>4)\u041f\u0456\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043e login<\/strong><\/mark><\/p>\n\n\n\n<p>\u041e\u0431\u043e\u0432\u02bc\u044f\u0437\u043a\u043e\u0432\u043e \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/rc.local<\/strong> \u0442\u0430\u043a\u0438\u0439 \u0440\u044f\u0434\u043e\u043a (\u0456\u043d\u0430\u043a\u0448\u0435 \u043d\u0435 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u0434\u0435 \u0437\u0440\u043e\u0431\u0438\u0442\u0438 <strong>login<\/strong>):<\/p>\n\n\n<pre># rm -f \/etc\/nologin\n# chmod +x \/etc\/rc.local<\/pre>\n\n\n<p>\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c symlink \u0432 <strong>\/etc\/rc2.d<\/strong>:<\/p>\n\n\n<pre>S50rc.local -&gt; ..\/init.d\/rc.local\nS15ssh -&gt; ..\/init.d\/ssh<\/pre>\n\n\n<p>\u044f\u043a\u0449\u043e \u043d\u0435\u043c\u0430, \u0442\u043e \u0441\u0442\u0432\u043e\u0440\u044e\u0454\u043c\u043e<\/p>\n\n\n<pre>cd \/etc\/rc2.d &amp;&amp; ln -s ..\/init.d\/rc.local S50rc.local &amp;&amp; ln -s ..\/init.d\/ssh S15ssh<\/pre>\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">5) Reboot. <\/mark><\/strong><\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u043d\u0435 \u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u044c\u0441\u044f \u0447\u0438 \u0454 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 &#8211; \u0440\u043e\u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f, \u0430\u0431\u043e \u0441\u043a\u0438\u0434\u0443\u0454\u043c\u043e \u0434\u0435\u0432\u0430\u0439\u0441 \u0432 <strong>default <\/strong>\u0456 \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0454\u043c\u043e \u043a\u0440\u043e\u043a\u0438 1-4.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">6) \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0439<\/mark><\/strong><\/p>\n\n\n\n<p>\u0414\u043e\u0434\u0430\u0454\u043c\u043e <strong>URL <\/strong>\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u044e \u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/apt\/sources.list<\/strong> (\u0447\u0435\u0440\u0435\u0437 <strong>http <\/strong>\u0447\u043e\u043c\u0443\u0441\u044c \u043d\u0435 \u0445\u043e\u0442\u0456\u043b\u043e \u0432\u0438\u043a\u0430\u0447\u0443\u0432\u0430\u0442\u0438, \u0442\u043e\u043c\u0443 \u0432\u0438\u0440\u0456\u0448\u0438\u0432 \u0447\u0435\u0440\u0435\u0437 <strong>ftp<\/strong>)<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<p>#deb <a href=\"http:\/\/http.ua.debian.org\/debian\">http:\/\/http.ua.debian.org\/debian<\/a> wheezy main<\/p>\n\n\n\n<p>#deb-src <a href=\"http:\/\/http.ua.debian.org\/debian\">http:\/\/http.ua.debian.org\/debian<\/a> wheezy main<\/p>\n\n\n\n<p>deb http:\/\/debian.volia.net\/debian\/ wheezy main<\/p>\n\n\n\n<p>deb-src http:\/\/debian.volia.net\/debian\/ wheezy main<\/p>\n\n\n\n<p>deb http:\/\/ftp.ua.debian.org\/debian\/ wheezy main<\/p>\n\n\n\n<p>deb-src http:\/\/ftp.ua.debian.org\/debian\/ wheezy main<\/p>\n\n\n\n<p>deb http:\/\/archive.debian.org\/debian\/ wheezy main<\/p>\n\n\n\n<p>deb-src http:\/\/archive.debian.org\/debian\/ wheezy main<\/p>\n<\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<p>\u0456 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u043c\u043e \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0441\u043f\u0438\u0441\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u0456\u0432<\/p>\n\n\n\n<p># apt update<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">7) \u0421\u0442\u0430\u0432\u0438\u043c\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0456 \u043f\u0430\u043a\u0435\u0442\u0438:<\/mark><\/strong><\/p>\n\n\n\n<p><code>apt install apt-utils arping bsd-mailx base-files bind9-host dialog dnsutils ethtool htop host iproute less lsof mc logrotate mtr-tiny nano netdiag net-tools ntp ntpdate openvpn rsync rsyslog screen sockstat sudo sysstat tcpdump vlan<\/code><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">8) vlan.<\/mark><\/strong><\/p>\n\n\n\n<p>\u0414\u043b\u044f \u0440\u043e\u0431\u043e\u0442\u0438 <strong>vlan <\/strong>\u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c (<strong>modprobe 8021q<\/strong>), \u0430 \u0449\u043e\u0431 \u043f\u0456\u0441\u043b\u044f <strong>reboot <\/strong>\u0442\u0435\u0436 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u043b\u043e &#8211; \u0442\u0440\u0435\u0431\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0440\u044f\u0434\u043e\u043a <strong>8021q <\/strong>\u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/modules<\/strong><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">9) \u041d\u044e\u0430\u043d\u0441\u0438 \u0456 \u0434\u0435\u044f\u043a\u0456 \u043c\u043e\u043c\u0435\u043d\u0442\u0438.<\/mark><\/strong><\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u0456 \u043c\u0435\u0440\u0435\u0436\u0430 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0434\u043e\u0432\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c <strong>vlan&#8217;\u0456\u0432 <\/strong>\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043b\u0433\u043e, \u043e\u0441\u044c \u0447\u043e\u043c\u0443, <strong>DHCP\/TFTP<\/strong> \u043c\u043e\u0436\u0443\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0440\u0430\u043d\u0456\u0448\u0435, \u043d\u0456\u0436 \u0456\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0438, \u0447\u0435\u0440\u0435\u0437 \u0446\u0435 <strong>DHCP\/TFTP<\/strong> \u043d\u0435 \u043f\u0440\u0430\u0446\u044e\u0454. <strong>Workaround <\/strong>&#8211; \u0434\u043e\u0434\u0430\u0442\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0441\u043b\u0443\u0436\u0431 \u0432 <strong>\/etc\/rc.local<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0443\u0442 \u0440\u043e\u0437\u043a\u0430\u0436\u0443 \u043f\u043e\u043a\u0440\u043e\u043a\u043e\u0432\u043e \u044f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437 edge router \u043f\u043e\u0432\u043d\u043e\u0446\u0456\u043d\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 linux. \u042f\u043a\u0449\u043e \u043f\u043e-\u0441\u0443\u0442\u0456, \u0442\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 edge router &#8211; \u0446\u0435 \u0434\u0435\u044f\u043a\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0430, \u044f\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f \u043f\u0456\u0441\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0443 Linux. \u041f\u0440\u0438\u0447\u043e\u043c\u0443 \u0440\u043e\u0431\u0438\u043c\u043e \u0432\u0441\u0435 \u0442\u0430\u043a, \u0449\u043e\u0431 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0448\u0432\u0438\u0434\u043a\u043e \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443 \u043d\u0430\u0437\u0430\u0434, \u044f\u043a\u0449\u043e \u0442\u0440\u0435\u0431\u0430. \u0411\u043e \u0456\u043d\u0430\u043a\u0448\u0435 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0431 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0438 ARM Linux.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-6292","post","type-post","status-publish","format-standard","hentry","category-edge-router"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6292"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6292\/revisions"}],"predecessor-version":[{"id":6293,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6292\/revisions\/6293"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}