{"id":362973,"date":"2024-05-21T01:46:14","date_gmt":"2024-05-21T01:46:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=362973"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T01:46:14","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=362973","title":{"rendered":"<span>\u0411\u043e\u0440\u0435\u043c\u0441\u044f \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Trojan TCP \u043d\u0430 \u0441\u043b\u0430\u0431\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 c OpenWRT<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/trojan-gfw\/trojan\/wiki\" rel=\"noopener noreferrer nofollow\"><strong>Trojan TCP<\/strong><\/a><strong>, <\/strong><a href=\"https:\/\/xjasonlyu\/tun2socks\" rel=\"noopener noreferrer nofollow\"><strong>tun2socks <\/strong><\/a><strong>\u0438 bird2 (BGP) \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 8 \u041c\u0431 \u041f\u0417\u0423 \u0438 64 \u041e\u0417\u0423 (<\/strong><a href=\"https:\/\/openwrt.org\/supported_devices\/openwrt_on_864_devices\" rel=\"noopener noreferrer nofollow\"><strong>8\/64<\/strong><\/a><strong>)<\/strong><\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a OpenVPN \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0433\u043b\u043e \u0438\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0447\u0435\u0440\u0435\u0437\u00a0<strong>Trojan TCP <\/strong>\u0442\u0443\u043d\u043d\u0435\u043b\u044c\u00a0(<strong>Websocket \u044d\u0442\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f<\/strong>) <\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0441 Trojan, kmod-tun, zram \u0438 bird2 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7<\/strong> <strong>\u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 8\/64<\/strong> (\u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 (>22.03) \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0435\u0441\u0442\u0430 \u0438 \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u0432 8 \u041c\u0431)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 OpenVPN \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 OpenWRT<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433 Trojan \u0432\u0430\u0448\u0435\u0433\u043e \u043b\u0438\u0431\u043e \u0447\u0443\u0436\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. (\u041e \u0442\u043e\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0433\u0434\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u041f\u041a \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0441 Linux \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p><strong>1.\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7 (\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 16 \u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438)<\/strong><\/p>\n<p><strong>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0443\u043d\u043d\u0435\u043b\u044f Trojan<\/strong><\/p>\n<p><strong>3. 1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 tun2socks \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP (bird2)<\/strong><\/p>\n<p><strong>3. 2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 OpenVPN \u0447\u0435\u0440\u0435\u0437 Trojan TCP<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0426\u0435\u043b\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 (\u0441\u043f\u043e\u0441\u043e\u0431\u044b) \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0431\u044b \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430 OpenWRT \u0438 \u0434\u0430\u0432\u0430\u043b \u0431\u044b \u043d\u0435\u043a\u0438\u0439 \u0437\u0430\u043f\u0430\u0441 \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u043a \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c, (shadowsocks \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443\u0436\u0435 \u0432 \u044f\u0432\u043d\u043e\u0439 \u0437\u043e\u043d\u0435 \u0440\u0438\u0441\u043a\u0430 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e). \u042d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f, \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043e\u043d\u0438 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 8\/64, 16\/64 \u0438 16\/128 (\u041f\u0417\u0423\/\u041e\u0417\u0423) \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 \u043f\u0430\u043c\u044f\u0442\u0438. \u0420\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043c\u043e\u0438\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043a\u043e\u043b\u043b\u0435\u0433 \u043f\u043e \u0446\u0435\u0445\u0443. <\/p>\n<h3>1. \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0434\u043b\u044f 8\/64 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7<\/h3>\n<p><strong><em>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u041f\u0417\u0423 16\u041c\u0431 \u0438 \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 3\u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 (\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442.\u0447. \u0438 \u0432\u0435\u0440\u0441\u0438\u044e 23.05) \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f.2<\/em><\/strong><\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 8\/64 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u041f\u0417\u0423 \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 opkg \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e <a href=\"https:\/\/openwrt.org\/supported_devices\/openwrt_on_864_devices\" rel=\"noopener noreferrer nofollow\">\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/a> \u0447\u0435\u0440\u0435\u0437 OpenWRT Buildroot<\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u00a0<a href=\"https:\/\/oldwiki.archive.openwrt.org\/ru\/doc\/howto\/build\" rel=\"noopener noreferrer nofollow\">wiki \u043f\u0440\u043e\u0435\u043a\u0442\u0430 openwrt.org<\/a>, \u044f \u043e\u043f\u0438\u0448\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u041c\u043e\u044f \u0441\u0440\u0435\u0434\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430\u00a0<a href=\"https:\/\/www.osboxes.org\/debian\/\" rel=\"noopener noreferrer nofollow\">Debian 11<\/a>\u00a0\u0432 VirtualBox, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 10 \u0413\u0431 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 4 \u0413\u0431 RAM<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"bash\">sudo apt install binutils bzip2 diffutils flex libc-dev libz-dev perl python3.7 rsync subversion unzip ncurses-dev git-core build-essential libssl-dev libncurses5-dev gawk zlib1g-dev subversion mercurial<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 OpenWRT \u0432\u0435\u0440\u0441\u0438\u0438 21.02.7<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/openwrt\/openwrt.git -b v21.02.7<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<pre><code>cd openwrt<\/code><\/pre>\n<pre><code class=\"bash\">echo -e \"src-git small https:\/\/github.com\/kenzok8\/small \\nsrc-git kenzo https:\/\/github.com\/kenzok8\/openwrt-packages\" >> feeds.conf.default<\/code><\/pre>\n<pre><code class=\"bash\">.\/scripts\/feeds update -a .\/scripts\/feeds install -a<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 OpenWrt \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<pre><code class=\"bash\">make menuconfig<\/code><\/pre>\n<p>\u0412 \u043c\u0435\u043d\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e (\u043a\u043d\u043e\u043f\u043a\u0430 Save).<\/p>\n<p>\u0412 \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<ol>\n<li>\n<p><strong>luci <\/strong>(Web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043b\u044f OpenWRT)<\/p>\n<\/li>\n<li>\n<p><strong>kmod-tun <\/strong>(TUN \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430)<\/p>\n<\/li>\n<li>\n<p><strong>zram-swap (<\/strong>\u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0436\u0430\u0442\u043e\u0435 \u0431\u043b\u043e\u0447\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e (\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438,\u00a0<a href=\"https:\/\/ru.wikipedia.org\/wiki\/RAM-%D0%B4%D0%B8%D1%81%D0%BA\" rel=\"noopener noreferrer nofollow\">RAM-\u0434\u0438\u0441\u043a<\/a>\u00a0\u0441\u043e \u0441\u0436\u0430\u0442\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 &#171;\u043d\u0430 \u043b\u0435\u0442\u0443&#187;)  <\/p>\n<\/li>\n<li>\n<p><strong>bird2c (<\/strong>\u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f BGP \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u043e\u0442\u00a0<a href=\"https:\/\/antifilter.download\/\" rel=\"noopener noreferrer nofollow\">antifilter.download<\/a>,\u00a0<a href=\"https:\/\/antifilter.network\/\" rel=\"noopener noreferrer nofollow\">antifilter.network<\/a>)<\/p>\n<p>\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 (sstrip)<\/p>\n<\/li>\n<\/ol>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440\u0430 \u043b\u0438\u0431\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"bash\">echo -e \"CONFIG_USE_MKLIBS=y \\nCONFIG_STRIP_KERNEL_EXPORTS=y \\nCONFIG_KERNEL_PROC_STRIPPED=y \\nCONFIG_PACKAGE_luci=y \\nCONFIG_PACKAGE_zram-swap=y \\nCONFIG_PACKAGE_bird2c=y \\nCONFIG_PACKAGE_kmod-tun=y\" >> .config<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443:<\/p>\n<pre><code class=\"bash\">make menuconfig<\/code><\/pre>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u044b \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e (Save).<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0443 \u043e\u0431\u0440\u0430\u0437\u0430 (\u043d\u0430 8 \u043f\u043e\u0442\u043e\u043a\u0430\u0445):<\/p>\n<pre><code class=\"bash\">make -j9<\/code><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u0430 <strong>8<\/strong> \u043f\u043e\u0442\u043e\u043a\u0430\u0445 (\u044f\u0434\u0440\u0430\u0445) (<strong>8+1<\/strong>), \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u0443\u0436\u043d\u043e\u0435 \u0432\u0430\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u043c\u0435\u0441\u0442\u043e\u00a0<strong>-j9<\/strong>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u00a0<strong>-j5<\/strong>\u00a0\u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430 <strong>4<\/strong> \u043f\u043e\u0442\u043e\u043a\u0430\u0445)<\/p>\n<p>\u0416\u0434\u0451\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438 (\u043e\u043a\u043e\u043b\u043e 1 \u0447\u0430\u0441\u0430), \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 ~\/openwrt\/bin\/targets\/<strong>$\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430<\/strong>\/<strong>$\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/strong>\/<\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 OpenWRT \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430\u00a0<strong>*-sysupgrade.bin<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u00a0<strong>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/strong>\u00a0&#8212;\u00a0<strong>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\/\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d10\/8e6\/0a6\/d108e60a6fa09f1b0d930da9469853ea.png\" width=\"789\" height=\"779\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d10\/8e6\/0a6\/d108e60a6fa09f1b0d930da9469853ea.png\"\/><\/figure>\n<p>\u0418 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u0433\u0430\u043b\u043a\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0<strong>\u0443\u0431\u0440\u0430\u0442\u044c<\/strong>\u00a0(\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e).<\/p>\n<p><strong><u>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043f\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u043c\u0443 \u043f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 OpenWRT\u00a0<\/u><\/strong><a href=\"https:\/\/openwrt.org\/toh\/start?dataflt%5BBrand*%7E%5D=mikrotik\" rel=\"noopener noreferrer nofollow\"><strong><u>[OpenWrt Wiki] Table of Hardware<\/u><\/strong><\/a><strong><u>\u00a0\u0434\u0430\u0431\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0438\u0440\u043f\u0438\u0447 \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/u><\/strong><\/p>\n<p>\u0416\u0434\u0451\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<p><strong>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4bd\/627\/057\/4bd6270573d9a4bfc36a9190407b5f84.png\" width=\"510\" height=\"236\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4bd\/627\/057\/4bd6270573d9a4bfc36a9190407b5f84.png\"\/><\/figure>\n<p>\u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0443\u043d\u043a\u0442\u0443 2.<\/p>\n<h2>2.\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0443\u043d\u043d\u0435\u043b\u044f Trojan<\/h2>\n<p><strong><em>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 16\u041c\u0431 \u041f\u0417\u0423 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0432\u0448\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 trojan:<\/em><\/strong><\/p>\n<p><em>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:<\/em><\/p>\n<pre><code class=\"bash\">sed -i 's\/option check_signature\/# option check_signature\/g' \/etc\/opkg.conf echo \"src\/gz custom_generic https:\/\/raw.githubusercontent.com\/lrdrdn\/my-opkg-repo\/main\/generic\" >> \/etc\/opkg\/customfeeds.conf echo \"src\/gz custom_arch https:\/\/raw.githubusercontent.com\/lrdrdn\/my-opkg-repo\/main\/$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')\" >> \/etc\/opkg\/customfeeds.conf<\/code><\/pre>\n<p><em>\u0418 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442:<\/em><\/p>\n<pre><code class=\"bash\">opkg update opkg install trojan<\/code><\/pre>\n<p><strong><em>\u0414\u0430\u043b\u0435\u0435 \u043e\u0431\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<\/em><\/strong><\/p>\n<p> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Trojan TCP:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/config\/trojan.json<\/strong><\/p>\n<pre><code class=\"json\">{   \"run_type\": \"client\",   \"local_addr\": \"127.0.0.1\",   \"local_port\": 1080,   \"remote_addr\": \"\u0410\u0414\u0420\u0415\u0421 \u0418\u041b\u0418 IP \u0421\u0415\u0420\u0412\u0415\u0420\u0410 TROJAN TCP\",   \"remote_port\": \u041f\u041e\u0420\u0422 \u0421\u0415\u0420\u0412\u0415\u0420\u0410,   \"password\": [     \"\u041f\u0410\u0420\u041e\u041b\u042c \u0421\u0415\u0420\u0412\u0415\u0420\u0410\"   ],   \"log_level\": 1,   \"ssl\": {     \"verify\": true,     \"verify_hostname\": true,     \"cert\": \"\",     \"cipher\": \"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-SHA:AES256-SHA:DES-CBC3-SHA\",     \"cipher_tls13\": \"TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384\",     \"sni\": \"\",     \"alpn\": [       \"h2\",       \"http\/1.1\"     ],     \"reuse_session\": true,     \"session_ticket\": false,     \"curves\": \"\"   },   \"tcp\": {     \"no_delay\": true,     \"keep_alive\": true,     \"reuse_port\": false,     \"fast_open\": false,     \"fast_open_qlen\": 20   } }<\/code><\/pre>\n<p><code>\"run_type\": \"client\" - <\/code>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/trojan-gfw.github.io\/trojan\/config\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><code><br \/> \"local_addr\": \"127.0.0.1\" <\/code>&#8212; \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 socks5 \u0441\u0435\u0440\u0432\u0435\u0440<code><br \/> \"local_port\": 1080 - <\/code>\u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u0442\u0443 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 socks5 \u0441\u0435\u0440\u0432\u0435\u0440<code><br \/> \"remote_addr\": \"\u0410\u0414\u0420\u0415\u0421 \u0418\u041b\u0418 IP \u0421\u0415\u0420\u0412\u0415\u0420\u0410 TROJAN TCP\"<\/code> &#8212; \u0410\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Trojan TCP<code><br \/> \"remote_port\": \u041f\u041e\u0420\u0422 \u0421\u0415\u0420\u0412\u0415\u0420\u0410<br \/> \"password\": [<br \/> \"\u041f\u0410\u0420\u041e\u041b\u042c \u0421\u0415\u0420\u0412\u0415\u0420\u0410\"<\/code><\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 \u0430\u0434\u0440\u0435\u0441\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0440\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u0430\u0440\u043e\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0441\u0441\u044b\u043b\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 <\/p>\n<p><strong>trojan:\/\/PASSWORD@HOSTNAME:PORT#LUTrojan28TLS%29<\/strong><\/p>\n<p><em>\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 c Trojan TCP \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/771892\/\" rel=\"noopener noreferrer nofollow\"><em>\u0420\u0430\u0437<\/em><\/a><em>, <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/735536\/\" rel=\"noopener noreferrer nofollow\"><em>\u0414\u0432\u0430<\/em><\/a><em>, \u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/companies\/hostkey\/articles\/765894\/\" rel=\"noopener noreferrer nofollow\"><em>\u0422\u0440\u0438<\/em><\/a><em> . \u0422\u0430\u043a\u0436\u0435 \u0432 \u0442.\u0447. \u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 VPN \u0438 \u041f\u0440\u043e\u043a\u0441\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f Trojan TCP.<\/em> <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/init.d\/trojan:<\/strong><\/p>\n<pre><code class=\"bash\">#!\/bin\/sh \/etc\/rc.common USE_PROCD=1  # starts after network starts START=72 # stops before networking stops STOP=72  PROG=\/usr\/sbin\/trojan CONFIG=\"\/etc\/config\/trojan.json\"   start_service() {   procd_open_instance   procd_set_param user root   procd_set_param command \"$PROG\" -c \"$CONFIG\"   procd_set_param stdout 1   procd_set_param stderr 1   procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}   procd_close_instance     echo \"Trojan TCP daemon is working!\" }  start() {     start_service } boot() {     # This gets run at boot-time.     start }  shutdown() {     # This gets run at shutdown\/reboot.     stop }  stop_service() {     service_stop \"$PROG\"     echo \"Trojan TCP daemon has stopped!\" }  reload_service() {     stop     sleep 3s     echo \"Trojan TCP daemon restarted!\"     start }<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<pre><code class=\"bash\">chmod +x \/etc\/init.d\/trojan<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c 72:<\/p>\n<pre><code class=\"bash\">ln -s \/etc\/init.d\/trojan \/etc\/rc.d\/S72trojan<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0443\u0436\u0431\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Trojan \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Trojan:<\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u00a0<strong>\u0421\u0435\u0442\u044c &#8212; \u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/568\/e5c\/136\/568e5c1360cc07bc1482b292bac41ced.png\" width=\"964\" height=\"478\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/568\/e5c\/136\/568e5c1360cc07bc1482b292bac41ced.png\"\/><\/figure>\n<p>\u0418 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u0448 \u0448\u043b\u044e\u0437 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <strong>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <\/strong>\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<strong> route<\/strong>).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bda\/4c5\/498\/bda4c54986de28f26589ec564ade60b5.png\" width=\"890\" height=\"421\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bda\/4c5\/498\/bda4c54986de28f26589ec564ade60b5.png\"\/><\/figure>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430:<\/p>\n<pre><code class=\"bash\">ping $\u0412\u0430\u0448_\u0421\u0435\u0440\u0432\u0435\u0440__TROJAN<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 Trojan:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/trojan start<\/code><\/pre>\n<h2>3.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 tun2socks \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c <strong>tun2socks (<\/strong>\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430<strong> kmod-tun)<\/strong> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u0440\u0430\u0444\u0438\u043a, <strong>\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b tun2socks \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 9\u041c\u0431, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0432 \u041e\u0417\u0423 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043b\u0443\u0436\u0431\u0443 <strong>tun2socks<\/strong>:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/init.d\/tun2socks:<\/strong><\/p>\n<pre><code class=\"bash\">#!\/bin\/sh \/etc\/rc.common USE_PROCD=1  # starts after network starts START=99 # stops before networking stops STOP=89  PROG=\/tmp\/tun2socks IF=\"tun2\" LOGLEVEL=\"warning\" HOST=\"127.0.0.1\" PORT=\"1080\" #ARCH=$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')  #Check for tun2socks then download tun2socks binary from Sourceforge to RAM before_start() { if [ ! -f \"\/tmp\/tun2socks*\" ]; then   ARCH=$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')   wget https:\/\/master.dl.sourceforge.net\/project\/outline-install-wrt\/v2.5.1\/tun2socks-linux-$ARCH?viasf=1 -O \/tmp\/tun2socks  # Check wget's exit status     if [ 0 -ne 0 ]; then         echo \"Download failed. No file for your Router's architecture\"         exit 1    fi fi #Executing chmod +x command chmod +x \/tmp\/tun2socks }  start_service() {     before_start     procd_open_instance     procd_set_param user root     procd_set_param command \"$PROG\" -device \"$IF\"  -proxy \"$HOST\":\"$PORT\" -loglevel \"$LOGLEVEL\"     procd_set_param stdout 1     procd_set_param stderr 1     procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}     procd_close_instance     echo \"tun2socks is working!\" }  boot() {     # This gets run at boot-time.     start }  shutdown() {     # This gets run at shutdown\/reboot.     stop }  stop_service() {     service_stop \"$PROG\"     echo \"tun2socks has stopped!\" }  reload_service() {     stop     sleep 3s     echo \"tun2socks restarted!\"     start } start() {     before_start     start_service }<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \/tmp\/tun2socks \u0438 \u043f\u0440\u0438 \u0435\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 tun2 c \u043f\u0440\u043e\u043a\u0441\u0438 127.0.0.1:1080 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 IF=&#187;tun2&#8243;, HOST=&#187;127.0.0.1&#8243;, PORT=&#187;1080&#8243;).<\/p>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043b\u0443\u0436\u0431\u044b:<\/p>\n<pre><code class=\"bash\">chmod +x \/etc\/init.d\/tun2socks<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c 99:<\/p>\n<pre><code class=\"bash\">ln -s \/etc\/init.d\/tun2socks \/etc\/rc.d\/S99tun2socks<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c tun2socks \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043b\u0443\u0436\u0431\u044b Trojan.<\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438\u00a0<a href=\"https:\/\/github.com\/xjasonlyu\/tun2socks\/wiki\/Examples#linux\" rel=\"noopener noreferrer nofollow\">tun2socks<\/a>\u00a0\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 ip \u0430\u0434\u0440\u0435\u0441 (\u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432 dev tun2).<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u00a0<strong>\/etc\/config\/network<\/strong>\u00a0\u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">config interface 'tunnel'         option device 'tun2'         option proto 'static'         option ipaddr '172.16.10.1'         option netmask '255.255.255.252'<\/code><\/pre>\n<p><em>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d 172.16.10.0\/30 \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432.<\/em><\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0437\u043e\u043d\u0443 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0432\u00a0<strong>\/etc\/config\/firewall<\/strong><\/p>\n<pre><code class=\"bash\">config zone         option name 'proxy'         option forward 'REJECT'         option output 'ACCEPT'         option input 'REJECT'         option masq '1'         option mtu_fix '1'         option device 'tun2'         option family 'ipv4' config forwarding option name 'lan-proxy' option dest 'proxy' option src 'lan' option family 'ipv4' <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0435\u0442\u044c:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/network restart<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443\u00a0<strong>tun2socks<\/strong>:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/tun2socks start<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e bird2, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <a class=\"mention\" href=\"\/users\/itdog\">@itdog<\/a> <a href=\"https:\/\/habr.com\/ru\/articles\/743572\/\" rel=\"noopener noreferrer nofollow\">\u0422\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 OpenWrt c \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043a\u043e\u043d\u0447\u0435\u043d. \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 <a href=\"https:\/\/antifilter.network\/bgp\" rel=\"noopener noreferrer nofollow\">BGP antifilter.network <\/a>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 IP-\u0430\u0434\u0440\u0435\u0441 51.75.66.20, \u043d\u043e\u043c\u0435\u0440 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b 65444.<\/p>\n<h2>3.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 OpenVPN \u0447\u0435\u0440\u0435\u0437 Trojan TCP<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 OpenVPN \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0438 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 tun2socks \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c OpenVPN \u0447\u0435\u0440\u0435\u0437 Trojan TCP:<\/p>\n<p>\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443\u00a0<strong>VPN &#8212; OpenVPN<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dfd\/9a4\/6af\/dfd9a46afbd9eb7d35ff7117d660b348.png\" width=\"824\" height=\"313\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dfd\/9a4\/6af\/dfd9a46afbd9eb7d35ff7117d660b348.png\"\/><\/figure>\n<p>\u0412\u043d\u043e\u0441\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5f4\/2a4\/1ad\/5f42a41ad49abc52181a8b92472a75cb.png\" width=\"934\" height=\"309\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5f4\/2a4\/1ad\/5f42a41ad49abc52181a8b92472a75cb.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ff\/67a\/34c\/8ff67a34cb07e0729edbfb5f3add3175.png\" width=\"989\" height=\"707\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ff\/67a\/34c\/8ff67a34cb07e0729edbfb5f3add3175.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 remote,\u00a0<strong>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c<\/strong>\u00a0\u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u043f\u0438\u0441\u044c\u00a0<strong>socks-proxy 127.0.0.1 1080<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c OpenVPN \u043a\u043b\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0447\u0435\u0440\u0435\u0437 socks5 \u043f\u0440\u043e\u043a\u0441\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p><strong>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b05\/f06\/8fb\/b05f068fba1afd7b497f8e0495cbe7bb.png\" width=\"989\" height=\"202\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b05\/f06\/8fb\/b05f068fba1afd7b497f8e0495cbe7bb.png\"\/><\/figure>\n<p><strong>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438 Start\/Stop.<\/strong><\/p>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 OpenVPN.<\/strong><\/p>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 8\/64 \u043c\u043d\u043e\u044e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0443\u043c\u0435\u0449\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u043a \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c, \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u0421\u0432\u044f\u0437\u043a\u0430 shadowsocks-libev + kcptun-client<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e trojan<\/p>\n<\/li>\n<li>\n<p>ShadowsocksR-libev<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/Trojan-Plus-Group\/trojan-plus\" rel=\"noopener noreferrer nofollow\">trojan-plus<\/a> &#8212; \u0444\u043e\u0440\u043a trojan \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0444\u0438\u0447\u0430\u043c\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 16\/64 \u0432\u044b\u0431\u043e\u0440 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u043e \u0447\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/780736\/\"> https:\/\/habr.com\/ru\/articles\/780736\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/trojan-gfw\/trojan\/wiki\" rel=\"noopener noreferrer nofollow\"><strong>Trojan TCP<\/strong><\/a><strong>, <\/strong><a href=\"https:\/\/xjasonlyu\/tun2socks\" rel=\"noopener noreferrer nofollow\"><strong>tun2socks <\/strong><\/a><strong>\u0438 bird2 (BGP) \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 8 \u041c\u0431 \u041f\u0417\u0423 \u0438 64 \u041e\u0417\u0423 (<\/strong><a href=\"https:\/\/openwrt.org\/supported_devices\/openwrt_on_864_devices\" rel=\"noopener noreferrer nofollow\"><strong>8\/64<\/strong><\/a><strong>)<\/strong><\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a OpenVPN \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0433\u043b\u043e \u0438\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0447\u0435\u0440\u0435\u0437\u00a0<strong>Trojan TCP <\/strong>\u0442\u0443\u043d\u043d\u0435\u043b\u044c\u00a0(<strong>Websocket \u044d\u0442\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f<\/strong>) <\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0441 Trojan, kmod-tun, zram \u0438 bird2 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7<\/strong> <strong>\u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 8\/64<\/strong> (\u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 (>22.03) \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0435\u0441\u0442\u0430 \u0438 \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u0432 8 \u041c\u0431)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 OpenVPN \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 OpenWRT<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433 Trojan \u0432\u0430\u0448\u0435\u0433\u043e \u043b\u0438\u0431\u043e \u0447\u0443\u0436\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. (\u041e \u0442\u043e\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0433\u0434\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u041f\u041a \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0441 Linux \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p><strong>1.\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7 (\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 16 \u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438)<\/strong><\/p>\n<p><strong>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0443\u043d\u043d\u0435\u043b\u044f Trojan<\/strong><\/p>\n<p><strong>3. 1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 tun2socks \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP (bird2)<\/strong><\/p>\n<p><strong>3. 2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 OpenVPN \u0447\u0435\u0440\u0435\u0437 Trojan TCP<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0426\u0435\u043b\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 (\u0441\u043f\u043e\u0441\u043e\u0431\u044b) \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0431\u044b \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430 OpenWRT \u0438 \u0434\u0430\u0432\u0430\u043b \u0431\u044b \u043d\u0435\u043a\u0438\u0439 \u0437\u0430\u043f\u0430\u0441 \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u043a \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c, (shadowsocks \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443\u0436\u0435 \u0432 \u044f\u0432\u043d\u043e\u0439 \u0437\u043e\u043d\u0435 \u0440\u0438\u0441\u043a\u0430 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e). \u042d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f, \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043e\u043d\u0438 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 8\/64, 16\/64 \u0438 16\/128 (\u041f\u0417\u0423\/\u041e\u0417\u0423) \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 \u043f\u0430\u043c\u044f\u0442\u0438. \u0420\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043c\u043e\u0438\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043a\u043e\u043b\u043b\u0435\u0433 \u043f\u043e \u0446\u0435\u0445\u0443. <\/p>\n<h3>1. \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0434\u043b\u044f 8\/64 \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWRT 21.02.7<\/h3>\n<p><strong><em>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u041f\u0417\u0423 16\u041c\u0431 \u0438 \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 3\u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 (\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442.\u0447. \u0438 \u0432\u0435\u0440\u0441\u0438\u044e 23.05) \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f.2<\/em><\/strong><\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 8\/64 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u041f\u0417\u0423 \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 opkg \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e <a href=\"https:\/\/openwrt.org\/supported_devices\/openwrt_on_864_devices\" rel=\"noopener noreferrer nofollow\">\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/a> \u0447\u0435\u0440\u0435\u0437 OpenWRT Buildroot<\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u00a0<a href=\"https:\/\/oldwiki.archive.openwrt.org\/ru\/doc\/howto\/build\" rel=\"noopener noreferrer nofollow\">wiki \u043f\u0440\u043e\u0435\u043a\u0442\u0430 openwrt.org<\/a>, \u044f \u043e\u043f\u0438\u0448\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u041c\u043e\u044f \u0441\u0440\u0435\u0434\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430\u00a0<a href=\"https:\/\/www.osboxes.org\/debian\/\" rel=\"noopener noreferrer nofollow\">Debian 11<\/a>\u00a0\u0432 VirtualBox, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 10 \u0413\u0431 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 4 \u0413\u0431 RAM<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"bash\">sudo apt install binutils bzip2 diffutils flex libc-dev libz-dev perl python3.7 rsync subversion unzip ncurses-dev git-core build-essential libssl-dev libncurses5-dev gawk zlib1g-dev subversion mercurial<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 OpenWRT \u0432\u0435\u0440\u0441\u0438\u0438 21.02.7<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/openwrt\/openwrt.git -b v21.02.7<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<pre><code>cd openwrt<\/code><\/pre>\n<pre><code class=\"bash\">echo -e \"src-git small https:\/\/github.com\/kenzok8\/small \\nsrc-git kenzo https:\/\/github.com\/kenzok8\/openwrt-packages\" >> feeds.conf.default<\/code><\/pre>\n<pre><code class=\"bash\">.\/scripts\/feeds update -a .\/scripts\/feeds install -a<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 OpenWrt \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<pre><code class=\"bash\">make menuconfig<\/code><\/pre>\n<p>\u0412 \u043c\u0435\u043d\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e (\u043a\u043d\u043e\u043f\u043a\u0430 Save).<\/p>\n<p>\u0412 \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<ol>\n<li>\n<p><strong>luci <\/strong>(Web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043b\u044f OpenWRT)<\/p>\n<\/li>\n<li>\n<p><strong>kmod-tun <\/strong>(TUN \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430)<\/p>\n<\/li>\n<li>\n<p><strong>zram-swap (<\/strong>\u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0436\u0430\u0442\u043e\u0435 \u0431\u043b\u043e\u0447\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e (\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438,\u00a0<a href=\"https:\/\/ru.wikipedia.org\/wiki\/RAM-%D0%B4%D0%B8%D1%81%D0%BA\" rel=\"noopener noreferrer nofollow\">RAM-\u0434\u0438\u0441\u043a<\/a>\u00a0\u0441\u043e \u0441\u0436\u0430\u0442\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 &#171;\u043d\u0430 \u043b\u0435\u0442\u0443&#187;)  <\/p>\n<\/li>\n<li>\n<p><strong>bird2c (<\/strong>\u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f BGP \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u043e\u0442\u00a0<a href=\"https:\/\/antifilter.download\/\" rel=\"noopener noreferrer nofollow\">antifilter.download<\/a>,\u00a0<a href=\"https:\/\/antifilter.network\/\" rel=\"noopener noreferrer nofollow\">antifilter.network<\/a>)<\/p>\n<p>\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 (sstrip)<\/p>\n<\/li>\n<\/ol>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440\u0430 \u043b\u0438\u0431\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"bash\">echo -e \"CONFIG_USE_MKLIBS=y \\nCONFIG_STRIP_KERNEL_EXPORTS=y \\nCONFIG_KERNEL_PROC_STRIPPED=y \\nCONFIG_PACKAGE_luci=y \\nCONFIG_PACKAGE_zram-swap=y \\nCONFIG_PACKAGE_bird2c=y \\nCONFIG_PACKAGE_kmod-tun=y\" >> .config<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443:<\/p>\n<pre><code class=\"bash\">make menuconfig<\/code><\/pre>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u044b \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e (Save).<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0443 \u043e\u0431\u0440\u0430\u0437\u0430 (\u043d\u0430 8 \u043f\u043e\u0442\u043e\u043a\u0430\u0445):<\/p>\n<pre><code class=\"bash\">make -j9<\/code><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u0430 <strong>8<\/strong> \u043f\u043e\u0442\u043e\u043a\u0430\u0445 (\u044f\u0434\u0440\u0430\u0445) (<strong>8+1<\/strong>), \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u0443\u0436\u043d\u043e\u0435 \u0432\u0430\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u043c\u0435\u0441\u0442\u043e\u00a0<strong>-j9<\/strong>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u00a0<strong>-j5<\/strong>\u00a0\u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430 <strong>4<\/strong> \u043f\u043e\u0442\u043e\u043a\u0430\u0445)<\/p>\n<p>\u0416\u0434\u0451\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438 (\u043e\u043a\u043e\u043b\u043e 1 \u0447\u0430\u0441\u0430), \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 ~\/openwrt\/bin\/targets\/<strong>$\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430<\/strong>\/<strong>$\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/strong>\/<\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 OpenWRT \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430\u00a0<strong>*-sysupgrade.bin<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u00a0<strong>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/strong>\u00a0&#8212;\u00a0<strong>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\/\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u0433\u0430\u043b\u043a\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0<strong>\u0443\u0431\u0440\u0430\u0442\u044c<\/strong>\u00a0(\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e).<\/p>\n<p><strong><u>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043f\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u043c\u0443 \u043f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 OpenWRT\u00a0<\/u><\/strong><a href=\"https:\/\/openwrt.org\/toh\/start?dataflt%5BBrand*%7E%5D=mikrotik\" rel=\"noopener noreferrer nofollow\"><strong><u>[OpenWrt Wiki] Table of Hardware<\/u><\/strong><\/a><strong><u>\u00a0\u0434\u0430\u0431\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0438\u0440\u043f\u0438\u0447 \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/u><\/strong><\/p>\n<p>\u0416\u0434\u0451\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<p><strong>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/strong><\/p>\n<figure class=\"\"><\/figure>\n<p>\u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0443\u043d\u043a\u0442\u0443 2.<\/p>\n<h2>2.\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0443\u043d\u043d\u0435\u043b\u044f Trojan<\/h2>\n<p><strong><em>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 16\u041c\u0431 \u041f\u0417\u0423 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0432\u0448\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 trojan:<\/em><\/strong><\/p>\n<p><em>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:<\/em><\/p>\n<pre><code class=\"bash\">sed -i 's\/option check_signature\/# option check_signature\/g' \/etc\/opkg.conf echo \"src\/gz custom_generic https:\/\/raw.githubusercontent.com\/lrdrdn\/my-opkg-repo\/main\/generic\" >> \/etc\/opkg\/customfeeds.conf echo \"src\/gz custom_arch https:\/\/raw.githubusercontent.com\/lrdrdn\/my-opkg-repo\/main\/$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')\" >> \/etc\/opkg\/customfeeds.conf<\/code><\/pre>\n<p><em>\u0418 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442:<\/em><\/p>\n<pre><code class=\"bash\">opkg update opkg install trojan<\/code><\/pre>\n<p><strong><em>\u0414\u0430\u043b\u0435\u0435 \u043e\u0431\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<\/em><\/strong><\/p>\n<p> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Trojan TCP:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/config\/trojan.json<\/strong><\/p>\n<pre><code class=\"json\">{   \"run_type\": \"client\",   \"local_addr\": \"127.0.0.1\",   \"local_port\": 1080,   \"remote_addr\": \"\u0410\u0414\u0420\u0415\u0421 \u0418\u041b\u0418 IP \u0421\u0415\u0420\u0412\u0415\u0420\u0410 TROJAN TCP\",   \"remote_port\": \u041f\u041e\u0420\u0422 \u0421\u0415\u0420\u0412\u0415\u0420\u0410,   \"password\": [     \"\u041f\u0410\u0420\u041e\u041b\u042c \u0421\u0415\u0420\u0412\u0415\u0420\u0410\"   ],   \"log_level\": 1,   \"ssl\": {     \"verify\": true,     \"verify_hostname\": true,     \"cert\": \"\",     \"cipher\": \"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-SHA:AES256-SHA:DES-CBC3-SHA\",     \"cipher_tls13\": \"TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384\",     \"sni\": \"\",     \"alpn\": [       \"h2\",       \"http\/1.1\"     ],     \"reuse_session\": true,     \"session_ticket\": false,     \"curves\": \"\"   },   \"tcp\": {     \"no_delay\": true,     \"keep_alive\": true,     \"reuse_port\": false,     \"fast_open\": false,     \"fast_open_qlen\": 20   } }<\/code><\/pre>\n<p><code>\"run_type\": \"client\" - <\/code>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/trojan-gfw.github.io\/trojan\/config\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><code><br \/> \"local_addr\": \"127.0.0.1\" <\/code>&#8212; \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 socks5 \u0441\u0435\u0440\u0432\u0435\u0440<code><br \/> \"local_port\": 1080 - <\/code>\u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u0442\u0443 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 socks5 \u0441\u0435\u0440\u0432\u0435\u0440<code><br \/> \"remote_addr\": \"\u0410\u0414\u0420\u0415\u0421 \u0418\u041b\u0418 IP \u0421\u0415\u0420\u0412\u0415\u0420\u0410 TROJAN TCP\"<\/code> &#8212; \u0410\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Trojan TCP<code><br \/> \"remote_port\": \u041f\u041e\u0420\u0422 \u0421\u0415\u0420\u0412\u0415\u0420\u0410<br \/> \"password\": [<br \/> \"\u041f\u0410\u0420\u041e\u041b\u042c \u0421\u0415\u0420\u0412\u0415\u0420\u0410\"<\/code><\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 \u0430\u0434\u0440\u0435\u0441\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0440\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u0430\u0440\u043e\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0441\u0441\u044b\u043b\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 <\/p>\n<p><strong>trojan:\/\/PASSWORD@HOSTNAME:PORT#LUTrojan28TLS%29<\/strong><\/p>\n<p><em>\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 c Trojan TCP \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/771892\/\" rel=\"noopener noreferrer nofollow\"><em>\u0420\u0430\u0437<\/em><\/a><em>, <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/735536\/\" rel=\"noopener noreferrer nofollow\"><em>\u0414\u0432\u0430<\/em><\/a><em>, \u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/companies\/hostkey\/articles\/765894\/\" rel=\"noopener noreferrer nofollow\"><em>\u0422\u0440\u0438<\/em><\/a><em> . \u0422\u0430\u043a\u0436\u0435 \u0432 \u0442.\u0447. \u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 VPN \u0438 \u041f\u0440\u043e\u043a\u0441\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f Trojan TCP.<\/em> <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/init.d\/trojan:<\/strong><\/p>\n<pre><code class=\"bash\">#!\/bin\/sh \/etc\/rc.common USE_PROCD=1  # starts after network starts START=72 # stops before networking stops STOP=72  PROG=\/usr\/sbin\/trojan CONFIG=\"\/etc\/config\/trojan.json\"   start_service() {   procd_open_instance   procd_set_param user root   procd_set_param command \"$PROG\" -c \"$CONFIG\"   procd_set_param stdout 1   procd_set_param stderr 1   procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}   procd_close_instance     echo \"Trojan TCP daemon is working!\" }  start() {     start_service } boot() {     # This gets run at boot-time.     start }  shutdown() {     # This gets run at shutdown\/reboot.     stop }  stop_service() {     service_stop \"$PROG\"     echo \"Trojan TCP daemon has stopped!\" }  reload_service() {     stop     sleep 3s     echo \"Trojan TCP daemon restarted!\"     start }<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<pre><code class=\"bash\">chmod +x \/etc\/init.d\/trojan<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c 72:<\/p>\n<pre><code class=\"bash\">ln -s \/etc\/init.d\/trojan \/etc\/rc.d\/S72trojan<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0443\u0436\u0431\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Trojan \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Trojan:<\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u00a0<strong>\u0421\u0435\u0442\u044c &#8212; \u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u0448 \u0448\u043b\u044e\u0437 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <strong>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <\/strong>\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<strong> route<\/strong>).<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430:<\/p>\n<pre><code class=\"bash\">ping $\u0412\u0430\u0448_\u0421\u0435\u0440\u0432\u0435\u0440__TROJAN<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 Trojan:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/trojan start<\/code><\/pre>\n<h2>3.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 tun2socks \u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c <strong>tun2socks (<\/strong>\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430<strong> kmod-tun)<\/strong> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u0440\u0430\u0444\u0438\u043a, <strong>\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b tun2socks \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 9\u041c\u0431, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0432 \u041e\u0417\u0423 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043b\u0443\u0436\u0431\u0443 <strong>tun2socks<\/strong>:<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/init.d\/tun2socks:<\/strong><\/p>\n<pre><code class=\"bash\">#!\/bin\/sh \/etc\/rc.common USE_PROCD=1  # starts after network starts START=99 # stops before networking stops STOP=89  PROG=\/tmp\/tun2socks IF=\"tun2\" LOGLEVEL=\"warning\" HOST=\"127.0.0.1\" PORT=\"1080\" #ARCH=$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')  #Check for tun2socks then download tun2socks binary from Sourceforge to RAM before_start() { if [ ! -f \"\/tmp\/tun2socks*\" ]; then   ARCH=$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')   wget https:\/\/master.dl.sourceforge.net\/project\/outline-install-wrt\/v2.5.1\/tun2socks-linux-$ARCH?viasf=1 -O \/tmp\/tun2socks  # Check wget's exit status     if [ 0 -ne 0 ]; then         echo \"Download failed. No file for your Router's architecture\"         exit 1    fi fi #Executing chmod +x command chmod +x \/tmp\/tun2socks }<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-362973","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362973","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=362973"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362973\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}