{"id":352845,"date":"2024-05-20T22:16:24","date_gmt":"2024-05-20T22:16:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=352845"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=352845","title":{"rendered":"<span>\u041e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043d\u0430 OpenWRT \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Sing-box (vless, vmess, trojan, ss2022) \u0438 \u0431\u0430\u0437 GeoIP, Geosite<\/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\u043c \u0433\u0430\u0439\u0434\u0435 \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <strong>sing-box<\/strong> \u043d\u0430 OpenWRT \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439\u00a0<strong>22.03.5 \u0438 23.05.0<\/strong>. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u00a0<strong>\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 128 \u041c\u0411 RAM (256 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0438 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0431\u043e\u043b\u0435\u0435 16 \u041c\u0431, \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 sing-box \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c (\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u043c\u0430\u043b\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u041f\u0417\u0423 &lt;16 \u041c\u0431)<\/strong><\/p>\n<p><a href=\"https:\/\/sing-box.sagernet.org\/\" rel=\"noopener noreferrer nofollow\">Sing-Box<\/a> \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0446\u0435\u043d\u0437\u0443\u0440\u0443 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430\u043c. \u042d\u0442\u043e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 v2ray-core \u0438 xray-core. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445, \u043a\u0430\u043a Windows, macOS, Linux, Android \u0438 iOS.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Shadowsocks (\u0432 \u0442.\u0447. 2022), Trojan, Vless, Vmess \u0438 Socks, \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 ShadowTLS, Hysteria \u0438 NaiveProxy.<\/p>\n<p>\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c:<\/p>\n<ol>\n<li>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 sing-box \u0434\u043b\u044f shadowsocks, vless, vmess, trojan \u0438 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SagerNet GeoIP, Geosite<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GeoIP, Geosite \u043e\u0442 L11R<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 sing-box \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/strong><\/p>\n<\/li>\n<\/ol>\n<h2>1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 sing-box<\/h2>\n<p>UPD 13.10.2023\u00a0<strong>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<\/strong><a href=\"https:\/\/github.com\/lrdrdn\/my-opkg-repo\" rel=\"noopener noreferrer nofollow\"><strong>lrdrdn\/my-opkg-repo<\/strong><\/a><strong>\u00a0\u043f\u0435\u0440\u0435\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e 23.05.0, \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u0435\u0440\u044f\u0432 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 22.03.5, \u0432\u043a\u043b\u044e\u0447\u0430\u044f sing-box, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/strong>  <\/p>\n<p>\u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 OpenWRT <strong>22.03.5<\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e sing-box:<\/p>\n<pre><code class=\"bash\">cd \/tmp wget https:\/\/downloads.openwrt.org\/releases\/23.05.0\/packages\/$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')\/packages\/sing-box_1.8.4-1_$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}').ipk opkg install sing-box_*.ipk rm sing-box_*.ipk<\/code><\/pre>\n<p><em>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <\/em><strong><em>23.05.0<\/em><\/strong><em> sing-box \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 OpenWRT.<\/em><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code class=\"bash\">opkg update<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b <strong>sing-box<\/strong> \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u0438 \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 <strong>iptables<\/strong>:<\/p>\n<pre><code class=\"bash\">opkg install kmod-inet-diag kmod-netlink-diag kmod-tun iptables-nft<\/code><\/pre>\n<p>\u0416\u0434\u0451\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043f\u0430\u043a\u0435\u0442\u044b \u0437\u0430\u043d\u044f\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 1\u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <strong>sing-box<\/strong><\/p>\n<pre><code class=\"bash\">opkg install sing-box<\/code><\/pre>\n<p>\u041f\u0430\u043a\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 10\u041c\u0431, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 16 \u041c\u0431 \u041f\u0417\u0423 \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 (\u043e\u0431 \u044d\u0442\u043e\u043c \u0432 <strong>\u043f.3<\/strong> \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 &#8212; \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a <strong>\u043f.3<\/strong>.<\/p>\n<h2>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 sing-box \u0434\u043b\u044f shadowsocks, reality, vmess, trojan \u0438 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SagerNet GeoIP, Geosite<\/h2>\n<p>UPD 12.11.2023  <s>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0444\u0430\u0439\u043b\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e <\/s><strong><s>\/etc\/sing-box\/config.json<\/s><\/strong><s>, \u043d\u043e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <\/s><strong><s>\/etc\/sing-box\/config.json.example <\/s><\/strong>\u0412 \u0432\u0435\u0440\u0441\u0438\u0438 1.6.0 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <strong>\/etc\/sing-box\/config.json<\/strong> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0444\u0430\u0439\u043b\u0430 <strong>\/etc\/sing-box\/config.json.example <\/strong>\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442\u0443<\/p>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c<strong> <\/strong>\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439<strong> \/etc\/sing-box\/config.json<\/strong>:<\/p>\n<pre><code class=\"bash\">> \/etc\/sing-box\/config.json<\/code><\/pre>\n<p>\u042f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 <strong>config.json<\/strong> \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u043a Outline VPN (\u0432\u044b\u043f\u0443\u0441\u043a \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0438\u0445 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u0442\u0438\u043f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 base64 \u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/articles\/748408\/\" rel=\"noopener noreferrer nofollow\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>) \u0442\u0430\u043a \u0438 XTLS-Reality, VMess TLS \u0438 Trojan Websocket. \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f selector \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e urltest. \u041d\u0430 <a href=\"https:\/\/sing-box.sagernet.org\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 sing-box<\/a>,  <a href=\"https:\/\/github.com\/malikshi\/sing-box-examples\" rel=\"noopener noreferrer nofollow\">Github \u044e\u0437\u0435\u0440\u0430 malikshi<\/a> \u0438 <a href=\"https:\/\/vpnrouter.homes\/singbox\/\" rel=\"noopener noreferrer nofollow\">vpnrouter.homes<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 <strong>config.json<\/strong>:<\/p>\n<pre><code class=\"json\">{     \"log\": {         \"disabled\": false,         \"level\": \"warn\",         \"output\": \"\/tmp\/sing-box.log\",         \"timestamp\": true     },     \"dns\": {         \"servers\": [             {                 \"tag\": \"google\",                 \"address\": \"tls:\/\/8.8.8.8\"             },             {                 \"tag\": \"block\",                 \"address\": \"rcode:\/\/success\"             }         ],         \"final\": \"google\",         \"strategy\": \"prefer_ipv4\",         \"disable_cache\": false,         \"disable_expire\": false     },     \"inbounds\": [         {             \"type\": \"mixed\",             \"tag\": \"mixed-in\",             \"listen\": \"127.0.0.1\",             \"listen_port\": 1080,             \"tcp_fast_open\": false,             \"sniff\": true,             \"sniff_override_destination\": true,             \"set_system_proxy\": false         },         {             \"type\": \"tun\",             \"tag\": \"tun-in\",             \"interface_name\": \"singtun0\",             \"inet4_address\": \"172.19.16.1\/30\",             \"stack\": \"gvisor\",             \"mtu\": 9000,             \"auto_route\": true,             \"strict_route\": false,             \"endpoint_independent_nat\": false,             \"sniff\": true,             \"sniff_override_destination\": true         }     ],     \"outbounds\": [         {             \"type\": \"selector\",             \"tag\": \"Proxy-out\",             \"outbounds\": [                 \"URL-Test\",                 \"direct\",                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"default\": \"URL-Test\"         },         {             \"type\": \"urltest\",             \"tag\": \"URL-Test\",             \"outbounds\": [                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"url\": \"http:\/\/www.gstatic.com\/generate_204\",             \"interval\": \"1m\",             \"tolerance\": 50         },         {             \"type\": \"shadowsocks\",             \"tag\": \"shadowsocks-out\",             \"server\": \"IP\",             \"server_port\": 15000,             \"method\": \"chacha20-ietf-poly1305\",             \"password\": \"password\"         },         {             \"type\": \"vless\",             \"tag\": \"reality-out\",             \"server\": \"IP\",             \"server_port\": 8442,             \"uuid\": \"UUID\",             \"flow\": \"xtls-rprx-vision\",             \"network\": \"tcp\",             \"tls\": {                 \"enabled\": true,                 \"insecure\": false,                 \"server_name\": \"SERVERNAME\",                 \"utls\": {                     \"enabled\": true,                     \"fingerprint\": \"chrome\"                 },                 \"reality\": {                     \"enabled\": true,                     \"public_key\": \"AP24JYROAB8odK5glVW_KLnsWl3UZ-voaGq_9ihQgTL\"                 }             }         },         {             \"type\": \"trojan\",             \"tag\": \"trojan-WebSocket-out\",             \"server\": \"IP\",             \"server_port\": 8443,             \"password\": \"PASSWORD\",             \"transport\": {                 \"type\": \"ws\",                 \"path\": \"\/\",                 \"early_data_header_name\": \"Sec-WebSocket-Protocol\"             },             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"d43f429a97e4ea6d.gstatic.com\"             },             \"multiplex\": {                 \"enabled\": true,                 \"max_connections\": 4,                 \"min_streams\": 4,                 \"max_streams\": 0             }         },         {             \"type\": \"vmess\",             \"tag\": \"vmess-tls-out\",             \"server\": \"IP\",             \"server_port\": 8444,             \"uuid\": \"UUID\",             \"security\": \"auto\",             \"alter_id\": 0,             \"global_padding\": false,             \"authenticated_length\": true,             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"google.com\",                 \"insecure\": false,                 \"alpn\": [                     \"http\/1.1\"                 ]             },             \"multiplex\": {                 \"enabled\": true,                 \"protocol\": \"smux\",                 \"max_connections\": 5,                 \"min_streams\": 4,                 \"max_streams\": 0             },             \"connect_timeout\": \"5s\"         },         {             \"type\": \"direct\",             \"tag\": \"direct\"         },         {             \"type\": \"block\",             \"tag\": \"block\"         },         {             \"type\": \"dns\",             \"tag\": \"dns-out\"         }     ],     \"route\": {         \"geoip\": {             \"path\": \"\/tmp\/geoip.db\",             \"download_url\": \"https:\/\/github.com\/SagerNet\/sing-geoip\/releases\/latest\/download\/geoip.db\",             \"download_detour\": \"Proxy-out\"         },         \"geosite\": {             \"path\": \"\/tmp\/geosite.db\",             \"download_url\": \"https:\/\/github.com\/SagerNet\/sing-geosite\/releases\/latest\/download\/geosite.db\",             \"download_detour\": \"Proxy-out\"         },         \"rules\": [             {                 \"protocol\": \"dns\",                 \"outbound\": \"dns-out\"             },             {                 \"protocol\": [                     \"quic\"                 ],                 \"outbound\": \"block\"             },             {                 \"geosite\": [                     \"private\",                     \"youtube\",                     \"google\", \"yandex\"                 ],                 \"geoip\": [                     \"private\",                     \"ru\"                 ],                 \"ip_cidr\": [                     \"94.100.180.201\/32\",                     \"94.100.180.202\/32\"                 ],                 \"domain_keyword\": [                     \"mail.ru\",                     \"vk.com\"                 ], \"domain_suffix\": [                     \".ru\"                   ],                 \"outbound\": \"direct\"             }         ],         \"final\": \"Proxy-out\",         \"auto_detect_interface\": true     } }<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0438\u0448\u0435\u0442 \u0432 \u043b\u043e\u0433 \/tmp\/sing-box.log \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0438 \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 socks5 proxy \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 <strong>1080<\/strong>, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0443\u043d\u043d\u0435\u043b\u044c <strong>singtun0<\/strong> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e kmod-tun \u0438 gvisor.<\/p>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b outbounds \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f XTLS-Reality, VMess TLS \u0438 Trojan Websocket:<\/p>\n<pre><code class=\"json\">{   \"type\": \"shadowsocks\",   \"tag\": \"shadowsocks-out\", .... }, {   \"type\": \"vless\",   \"tag\": \"reality-out\", .... }, { \"type\": \"trojan\",  \"tag\": \"trojan-WebSocket-out\", .... }, {   \"type\": \"vmess\",   \"tag\": \"vmess-tls-out\", ..... },<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u043b\u0438\u0448\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432 \u0443\u0431\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 selector \u0438 urltest<\/p>\n<pre><code class=\"json\">            \"type\": \"selector\",             \"tag\": \"Proxy-out\",             \"outbounds\": [                 \"URL-Test\",                 \"direct\",                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"default\": \"URL-Test\"         },         {             \"type\": \"urltest\",             \"tag\": \"URL-Test\",             \"outbounds\": [                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"<\/code><\/pre>\n<p>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 &#171;<strong>route<\/strong>&#187; &#171;<strong>rules<\/strong>&#171;<strong> <\/strong>\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f <strong>\u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0430\u0439\u0442\u0430\u043c \u0432 \u0437\u043e\u043d\u0435 .ru \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043d\u0435\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c<\/strong>:<\/p>\n<p>&#171;geosite&#187;: &#171;private&#187;, &#171;youtube&#187;, &#171;google&#187;, &#171;yandex&#187; &#8212; \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u044b: \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f .local), YouTube \u0438 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u044b, \u0441\u0435\u0440\u0432\u0438\u0441\u044b Google, \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u042f\u043d\u0434\u0435\u043a\u0441\u0430.<\/p>\n<p>&#171;geoip&#187;: &#171;private&#187;, &#171;ru&#187; &#8212; \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432: \u0447\u0430\u0441\u0442\u043d\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430, \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 .RU<\/p>\n<p>&#171;ip_cidr&#187; &#8212; \u0432 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043c\u0438\u043d\u0443\u044f \u043f\u0440\u043e\u043a\u0441\u0438<\/p>\n<p>&#171;domain_suffix&#187;<br \/>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u00ab<a href=\"http:\/\/google.com\" rel=\"noopener noreferrer nofollow\">google.com<\/a>\u00bb \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u00ab<a href=\"http:\/\/www.google.com\" rel=\"noopener noreferrer nofollow\">www.google.com<\/a>\u00bb, \u00ab<a href=\"http:\/\/mail.google.com\" rel=\"noopener noreferrer nofollow\">mail.google.com<\/a>\u00bb \u0438 \u00ab<a href=\"http:\/\/google.com\" rel=\"noopener noreferrer nofollow\">google.com<\/a>\u00bb, \u043d\u043e \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u00ab<a href=\"http:\/\/content-google.com\" rel=\"noopener noreferrer nofollow\">content-google.com<\/a>\u00bb.<\/p>\n<p>&#171;domain_keyword&#187;<br \/>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e.<\/p>\n<p><em>\u041f\u0440\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 json \u0444\u0430\u0439\u043b\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <\/em><a href=\"https:\/\/jsonlint.com\/\" rel=\"noopener noreferrer nofollow\"><em>JSON Online Validator<\/em><\/a><em>  \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/em><\/p>\n<p>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b <strong>outbounds<\/strong> \u043d\u0443\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0430\u0448\u0435\u0433\u043e (\u0432\u0430\u0448\u0438\u0445) \u043f\u0440\u043e\u043a\u0441\u0438: <strong>IP, \u043f\u043e\u0440\u0442, \u043f\u0430\u0440\u043e\u043b\u044c, uuid, public key <\/strong> (\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e).<\/p>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>download_detour<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 &#8212; \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438<\/p>\n<p><strong>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0438 SagerNet \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 sing-box, \u043e\u043d\u0438 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432 \u0420\u0424 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u043d\u0435\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438.<\/strong> <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b sing-box \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u043b\u0430, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e:<\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b <strong>\/etc\/config\/network<\/strong> \u0434\u043e\u0431\u0430\u0432\u0438\u043c:<\/p>\n<pre><code class=\"bash\">config interface 'proxy' option proto 'none' option device 'singtun0'<\/code><\/pre>\n<p>\u0412 \u0444\u0430\u0439\u043b <strong>\/etc\/config\/firewall<\/strong> :<\/p>\n<pre><code class=\"bash\">config zone     option name 'proxy'     list network 'tunnel'     option forward 'REJECT'     option output 'ACCEPT'     option input 'REJECT'     option masq '1'     option mtu_fix '1'     option device 'singtun0'     option family 'ipv4'  config forwarding     option name 'lan-proxy'     option dest 'proxy'     option src 'lan'     option family 'ipv4'<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\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 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"bash\">sing-box check -c \/etc\/sing-box\/config.json<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u043a\u0441\u0438:<\/p>\n<pre><code class=\"bash\">sing-box run -c \/etc\/sing-box\/config.json<\/code><\/pre>\n<p>\u0420\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u0441\u0430\u0439\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <strong>sing-box<\/strong> \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c sing-box \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/sing-box enable \/etc\/init.d\/sing-box start<\/code><\/pre>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <strong>sing-box<\/strong> \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 sing-box \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e firewall4, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u0438 \u043a singtun0, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f <strong>\/etc\/sing-box\/config.json<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0430 \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"json\">{     \"log\": {         \"disabled\": false,         \"level\": \"warn\",         \"output\": \"\/tmp\/sing-box.log\",         \"timestamp\": true     },     \"dns\": {         \"servers\": []     },     \"inbounds\": [         {             \"type\": \"tun\",             \"tag\": \"tun-in\",             \"interface_name\": \"singtun0\",             \"inet4_address\": \"172.19.16.1\/30\",             \"stack\": \"gvisor\",             \"mtu\": 9000,             \"auto_route\": false,             \"strict_route\": false,             \"endpoint_independent_nat\": false,             \"sniff\": true,             \"sniff_override_destination\": true         }     ],     \"outbounds\": [         {             \"type\": \"selector\",             \"tag\": \"Proxy-out\",             \"outbounds\": [                 \"URL-Test\",                 \"direct\",                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"default\": \"URL-Test\"         },         {             \"type\": \"urltest\",             \"tag\": \"URL-Test\",             \"outbounds\": [                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"url\": \"http:\/\/www.gstatic.com\/generate_204\",             \"interval\": \"1m\",             \"tolerance\": 50         },         {             \"type\": \"shadowsocks\",             \"tag\": \"shadowsocks-out\",             \"server\": \"IP\",             \"server_port\": 15000,             \"method\": \"chacha20-ietf-poly1305\",             \"password\": \"password\"         },         {             \"type\": \"vless\",             \"tag\": \"reality-out\",             \"server\": \"IP\",             \"server_port\": 8442,             \"uuid\": \"UUID\",             \"flow\": \"xtls-rprx-vision\",             \"network\": \"tcp\",             \"tls\": {                 \"enabled\": true,                 \"insecure\": false,                 \"server_name\": \"SERVERNAME\",                 \"utls\": {                     \"enabled\": true,                     \"fingerprint\": \"chrome\"                 },                 \"reality\": {                     \"enabled\": true,                     \"public_key\": \"AP24JYROAB8odK5glVW_KLnsWl3UZ-voaGq_9ihQgTL\"                 }             }         },         {             \"type\": \"trojan\",             \"tag\": \"trojan-WebSocket-out\",             \"server\": \"IP\",             \"server_port\": 8443,             \"password\": \"PASSWORD\",             \"transport\": {                 \"type\": \"ws\",                 \"path\": \"\/\",                 \"early_data_header_name\": \"Sec-WebSocket-Protocol\"             },             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"d43f429a97e4ea6d.gstatic.com\"             },             \"multiplex\": {                 \"enabled\": true,                 \"max_connections\": 4,                 \"min_streams\": 4,                 \"max_streams\": 0             }         },         {             \"type\": \"vmess\",             \"tag\": \"vmess-tls-out\",             \"server\": \"IP\",             \"server_port\": 8444,             \"uuid\": \"UUID\",             \"security\": \"auto\",             \"alter_id\": 0,             \"global_padding\": false,             \"authenticated_length\": true,             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"google.com\",                 \"insecure\": false,                 \"alpn\": [                     \"http\/1.1\"                 ]             },             \"multiplex\": {                 \"enabled\": true,                 \"protocol\": \"smux\",                 \"max_connections\": 5,                 \"min_streams\": 4,                 \"max_streams\": 0             },             \"connect_timeout\": \"5s\"         },         {             \"type\": \"direct\",             \"tag\": \"direct\"         },         {             \"type\": \"block\",             \"tag\": \"block\"         }     ],     \"route\": {         \"rules\": [],         \"final\": \"Proxy-out\",         \"auto_detect_interface\": true     } }<\/code><\/pre>\n<p> \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0430\u043c\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0438\u043b\u0438 BGP \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<p><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>\u00a0\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP (bird2).<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/440030\/\" 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 PKH \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0441 OpenWrt \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e WireGuard \u0438 DNSCrypt \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a>\u00a0(\u043f\u0443\u0442\u0451\u043c \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0432 iptables, nftables).<\/p>\n<h2>3. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GeoIP, Geosite \u043e\u0442 L11R<\/h2>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441 GeoIP \u0438 Geosite \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0432\u0435\u0441\u044c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b \u0420\u041a\u041d (\u0430\u0432\u0442\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 <a class=\"mention\" href=\"\/users\/l11r\">@L11R<\/a>, \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0435\u043c\u0443 \u0437\u0430 \u044d\u0442\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c). \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043d \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u041e\u0417\u0423, \u0443 \u043c\u0435\u043d\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 384 \u041c\u0411, \u0438\u043d\u0430\u0447\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b memory killer. \u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u043e\u0439 BGP (\u0438\u043b\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432), \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u0437 \u0431\u0430\u0437 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438, \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0433\u043e <strong>config.json<\/strong>:<\/p>\n<pre><code class=\"json\">{     \"log\": {         \"disabled\": false,         \"level\": \"warn\",         \"output\": \"\/tmp\/sing-box.log\",         \"timestamp\": true     },     \"dns\": {         \"servers\": [             {                 \"tag\": \"google\",                 \"address\": \"tls:\/\/8.8.8.8\"             },             {                 \"tag\": \"block\",                 \"address\": \"rcode:\/\/success\"             }         ],         \"final\": \"google\",         \"strategy\": \"prefer_ipv4\",         \"disable_cache\": false,         \"disable_expire\": false     },     \"inbounds\": [         {             \"type\": \"mixed\",             \"tag\": \"mixed-in\",             \"listen\": \"127.0.0.1\",             \"listen_port\": 1080,             \"tcp_fast_open\": false,             \"sniff\": true,             \"sniff_override_destination\": true,             \"set_system_proxy\": false         },         {             \"type\": \"tun\",             \"tag\": \"tun-in\",             \"interface_name\": \"singtun0\",             \"inet4_address\": \"172.19.16.1\/30\",             \"stack\": \"gvisor\",             \"mtu\": 9000,             \"auto_route\": true,             \"strict_route\": false,             \"endpoint_independent_nat\": false,             \"sniff\": true,             \"sniff_override_destination\": true         }     ],     \"outbounds\": [         {             \"type\": \"selector\",             \"tag\": \"Proxy-out\",             \"outbounds\": [                 \"URL-Test\",                 \"direct\",                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"default\": \"URL-Test\"         },         {             \"type\": \"urltest\",             \"tag\": \"URL-Test\",             \"outbounds\": [                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"url\": \"http:\/\/www.gstatic.com\/generate_204\",             \"interval\": \"1m\",             \"tolerance\": 50         },         {             \"type\": \"shadowsocks\",             \"tag\": \"shadowsocks-out\",             \"server\": \"IP\",             \"server_port\": 15000,             \"method\": \"chacha20-ietf-poly1305\",             \"password\": \"password\"         },         {             \"type\": \"vless\",             \"tag\": \"reality-out\",             \"server\": \"IP\",             \"server_port\": 8442,             \"uuid\": \"UUID\",             \"flow\": \"xtls-rprx-vision\",             \"network\": \"tcp\",             \"tls\": {                 \"enabled\": true,                 \"insecure\": false,                 \"server_name\": \"SERVERNAME\",                 \"utls\": {                     \"enabled\": true,                     \"fingerprint\": \"chrome\"                 },                 \"reality\": {                     \"enabled\": true,                     \"public_key\": \"AP24JYROAB8odK5glVW_KLnsWl3UZ-voaGq_9ihQgTL\"                 }             }         },         {             \"type\": \"trojan\",             \"tag\": \"trojan-WebSocket-out\",             \"server\": \"IP\",             \"server_port\": 8443,             \"password\": \"PASSWORD\",             \"transport\": {                 \"type\": \"ws\",                 \"path\": \"\/\",                 \"early_data_header_name\": \"Sec-WebSocket-Protocol\"             },             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"d43f429a97e4ea6d.gstatic.com\"             },             \"multiplex\": {                 \"enabled\": true,                 \"max_connections\": 4,                 \"min_streams\": 4,                 \"max_streams\": 0             }         },         {             \"type\": \"vmess\",             \"tag\": \"vmess-tls-out\",             \"server\": \"IP\",             \"server_port\": 8444,             \"uuid\": \"UUID\",             \"security\": \"auto\",             \"alter_id\": 0,             \"global_padding\": false,             \"authenticated_length\": true,             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"google.com\",                 \"insecure\": false,                 \"alpn\": [                     \"http\/1.1\"                 ]             },             \"multiplex\": {                 \"enabled\": true,                 \"protocol\": \"smux\",                 \"max_connections\": 5,                 \"min_streams\": 4,                 \"max_streams\": 0             },             \"connect_timeout\": \"5s\"         },         {             \"type\": \"direct\",             \"tag\": \"direct\"         },         {             \"type\": \"block\",             \"tag\": \"block\"         },         {             \"type\": \"dns\",             \"tag\": \"dns-out\"         }     ],      \"route\": {         \"geoip\": {             \"path\": \"\/etc\/sing-box\/geoip.db\",             \"download_url\": \"https:\/\/github.com\/savely-krasovsky\/antizapret-sing-box\/releases\/latest\/download\/geoip.db\",             \"download_detour\": \"Proxy-out\"         },         \"geosite\": {             \"path\": \"\/etc\/sing-box\/geosite.db\",             \"download_url\": \"https:\/\/github.com\/savely-krasovsky\/antizapret-sing-box\/releases\/latest\/download\/geosite.db\",             \"download_detour\": \"Proxy-out\"         },         \"rules\": [             {                 \"protocol\": \"dns\",                 \"outbound\": \"dns-out\"             },             {                 \"geoip\": \"antizapret\",                 \"geosite\": \"antizapret\",                 \"outbound\": \"Proxy-out\"             }, {                 \"protocol\": \"quic\",                 \"outbound\": \"block\"             }         ],         \"final\": \"direct\",         \"auto_detect_interface\": true     } }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>        {             \"type\": \"mixed\",             \"tag\": \"mixed-in\",             \"listen\": \"127.0.0.1\",             \"listen_port\": 1080,             \"tcp_fast_open\": false,             \"sniff\": true,             \"sniff_override_destination\": true,             \"set_system_proxy\": false         },<\/code><\/pre>\n<p>\u0438 <code>\"path\": \"\/etc\/sing-box\/geoip.db\" , \"path\": \"\/etc\/sing-box\/geosite.db\",<\/code> <\/p>\n<p>\u0422\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 sing-box \u043d\u0430 Android \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445<\/p>\n<h2>4. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 sing-box \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c sing-box \u0432 \u041f\u0417\u0423 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c (\u0430 \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0446\u0435\u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430), \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0432 \u041e\u0417\u0423 \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p><em>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 sing-box \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e <\/em><strong><em>35 \u041c\u0431 \u041e\u0417\u0423<\/em><\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u041f\u0417\u0423 <strong>\u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430<\/strong> \u0438 <strong>iptables-nft<\/strong><\/p>\n<pre><code class=\"bash\">opkg install kmod-inet-diag kmod-netlink-diag kmod-tun iptables-nft<\/code><\/pre>\n<p>\u042d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u044c \u043e\u043a\u043e\u043b\u043e 1\u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <strong>sing-box<\/strong> \u0432 \u041e\u0417\u0423:<\/p>\n<pre><code class=\"bash\">opkg install sing-box -d ram<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c, \u0434\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"bash\">mkdir \/etc\/sing-box<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0435 \u0432\u0430\u0448 \u0444\u0430\u0439\u043b <strong>config.json<\/strong> \u0438\u0437 <strong>\u043f.2 <\/strong>\u0432 <strong>\/etc\/sing-box\/config.json<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u043a\u0441\u0438 (\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0432 <strong>\u043f.2<\/strong>):<\/p>\n<pre><code class=\"bash\"> \/tmp\/usr\/bin\/sing-box run -c \/etc\/sing-box\/config.json<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a <strong>sing-box<\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/rc.local<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 exit 0<\/p>\n<pre><code class=\"bash\">opkg update opkg install sing-box -d ram exit 0<\/code><\/pre>\n<p>\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430, \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 Luci<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/66b\/823\/491\/66b8234913cc33eae7d4213374442327.png\" width=\"971\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/66b\/823\/491\/66b8234913cc33eae7d4213374442327.png\"\/><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u043b\u044f <strong>sing-box<\/strong>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b <strong>\/etc\/init.d\/sing-box<\/strong> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">#!\/bin\/sh \/etc\/rc.common # # Copyright (C) 2022 by nekohasekai &lt;contact-sagernet@sekai.icu> #  # This program is free software: you can redistribute it and\/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #  # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the # GNU General Public License for more details. #  # You should have received a copy of the GNU General Public License # along with this program. If not, see &lt;http:\/\/www.gnu.org\/licenses\/>. #  START=99 USE_PROCD=1  #####  ONLY CHANGE THIS BLOCK  ###### PROG=\/tmp\/usr\/bin\/sing-box # \u041f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 sing-box \u0432 \u041e\u0417\u0423 RES_DIR=\/etc\/sing-box\/ # resource dir \/ working dir \/ the dir where you store ip\/domain lists CONF=.\/config.json   # where is the config file, it can be a relative path to $RES_DIR #####  ONLY CHANGE THIS BLOCK  ######  start_service() {   sleep 10 # \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430 sing-box \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b   procd_open_instance   procd_set_param command $PROG run -D $RES_DIR -c $CONF    procd_set_param user root   procd_set_param limits core=\"unlimited\"   procd_set_param limits nofile=\"1000000 1000000\"   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   iptables -I FORWARD -o singtun+ -j ACCEPT #\u042d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 iptables-nft \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d   echo \"sing-box is started!\" }  stop_service() {   service_stop $PROG   iptables -D FORWARD -o singtun+ -j ACCEPT   echo \"sing-box is stopped!\" }  reload_service() {   stop   sleep 5s   echo \"sing-box is restarted!\"   start }<\/code><\/pre>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c:<\/p>\n<pre><code class=\"bash\">chmod +x \/etc\/init.d\/sing-box<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/sing-box enable \/etc\/init.d\/sing-box start<\/code><\/pre>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430.<\/p>\n<p>P.S. 35 \u041c\u0431 \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u044a\u0451\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0441\u043e 128 \u041c\u0431, \u0442\u0430\u043a \u0447\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0447\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u043d\u0438.<\/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\/756178\/\"> https:\/\/habr.com\/ru\/articles\/756178\/<\/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\u043c \u0433\u0430\u0439\u0434\u0435 \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <strong>sing-box<\/strong> \u043d\u0430 OpenWRT \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439\u00a0<strong>22.03.5 \u0438 23.05.0<\/strong>. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u00a0<strong>\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 128 \u041c\u0411 RAM (256 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0438 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0431\u043e\u043b\u0435\u0435 16 \u041c\u0431, \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 sing-box \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c (\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u043c\u0430\u043b\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u041f\u0417\u0423 &lt;16 \u041c\u0431)<\/strong><\/p>\n<p><a href=\"https:\/\/sing-box.sagernet.org\/\" rel=\"noopener noreferrer nofollow\">Sing-Box<\/a> \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0441\u0438-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0446\u0435\u043d\u0437\u0443\u0440\u0443 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430\u043c. \u042d\u0442\u043e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 v2ray-core \u0438 xray-core. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445, \u043a\u0430\u043a Windows, macOS, Linux, Android \u0438 iOS.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Shadowsocks (\u0432 \u0442.\u0447. 2022), Trojan, Vless, Vmess \u0438 Socks, \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 ShadowTLS, Hysteria \u0438 NaiveProxy.<\/p>\n<p>\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c:<\/p>\n<ol>\n<li>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 sing-box \u0434\u043b\u044f shadowsocks, vless, vmess, trojan \u0438 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SagerNet GeoIP, Geosite<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GeoIP, Geosite \u043e\u0442 L11R<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 sing-box \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/strong><\/p>\n<\/li>\n<\/ol>\n<h2>1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 sing-box<\/h2>\n<p>UPD 13.10.2023\u00a0<strong>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<\/strong><a href=\"https:\/\/github.com\/lrdrdn\/my-opkg-repo\" rel=\"noopener noreferrer nofollow\"><strong>lrdrdn\/my-opkg-repo<\/strong><\/a><strong>\u00a0\u043f\u0435\u0440\u0435\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e 23.05.0, \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u0435\u0440\u044f\u0432 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 22.03.5, \u0432\u043a\u043b\u044e\u0447\u0430\u044f sing-box, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/strong>  <\/p>\n<p>\u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 OpenWRT <strong>22.03.5<\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e sing-box:<\/p>\n<pre><code class=\"bash\">cd \/tmp wget https:\/\/downloads.openwrt.org\/releases\/23.05.0\/packages\/$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}')\/packages\/sing-box_1.8.4-1_$(grep \"OPENWRT_ARCH\" \/etc\/os-release | awk -F '\"' '{print $2}').ipk opkg install sing-box_*.ipk rm sing-box_*.ipk<\/code><\/pre>\n<p><em>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <\/em><strong><em>23.05.0<\/em><\/strong><em> sing-box \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 OpenWRT.<\/em><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code class=\"bash\">opkg update<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b <strong>sing-box<\/strong> \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u0438 \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 <strong>iptables<\/strong>:<\/p>\n<pre><code class=\"bash\">opkg install kmod-inet-diag kmod-netlink-diag kmod-tun iptables-nft<\/code><\/pre>\n<p>\u0416\u0434\u0451\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043f\u0430\u043a\u0435\u0442\u044b \u0437\u0430\u043d\u044f\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 1\u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <strong>sing-box<\/strong><\/p>\n<pre><code class=\"bash\">opkg install sing-box<\/code><\/pre>\n<p>\u041f\u0430\u043a\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 10\u041c\u0431, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 16 \u041c\u0431 \u041f\u0417\u0423 \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 (\u043e\u0431 \u044d\u0442\u043e\u043c \u0432 <strong>\u043f.3<\/strong> \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 &#8212; \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a <strong>\u043f.3<\/strong>.<\/p>\n<h2>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 sing-box \u0434\u043b\u044f shadowsocks, reality, vmess, trojan \u0438 \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SagerNet GeoIP, Geosite<\/h2>\n<p>UPD 12.11.2023  <s>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0444\u0430\u0439\u043b\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e <\/s><strong><s>\/etc\/sing-box\/config.json<\/s><\/strong><s>, \u043d\u043e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <\/s><strong><s>\/etc\/sing-box\/config.json.example <\/s><\/strong>\u0412 \u0432\u0435\u0440\u0441\u0438\u0438 1.6.0 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <strong>\/etc\/sing-box\/config.json<\/strong> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0444\u0430\u0439\u043b\u0430 <strong>\/etc\/sing-box\/config.json.example <\/strong>\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442\u0443<\/p>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c<strong> <\/strong>\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439<strong> \/etc\/sing-box\/config.json<\/strong>:<\/p>\n<pre><code class=\"bash\">> \/etc\/sing-box\/config.json<\/code><\/pre>\n<p>\u042f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 <strong>config.json<\/strong> \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u043a Outline VPN (\u0432\u044b\u043f\u0443\u0441\u043a \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0438\u0445 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u0442\u0438\u043f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 base64 \u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/articles\/748408\/\" rel=\"noopener noreferrer nofollow\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>) \u0442\u0430\u043a \u0438 XTLS-Reality, VMess TLS \u0438 Trojan Websocket. \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f selector \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e urltest. \u041d\u0430 <a href=\"https:\/\/sing-box.sagernet.org\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 sing-box<\/a>,  <a href=\"https:\/\/github.com\/malikshi\/sing-box-examples\" rel=\"noopener noreferrer nofollow\">Github \u044e\u0437\u0435\u0440\u0430 malikshi<\/a> \u0438 <a href=\"https:\/\/vpnrouter.homes\/singbox\/\" rel=\"noopener noreferrer nofollow\">vpnrouter.homes<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 <strong>config.json<\/strong>:<\/p>\n<pre><code class=\"json\">{     \"log\": {         \"disabled\": false,         \"level\": \"warn\",         \"output\": \"\/tmp\/sing-box.log\",         \"timestamp\": true     },     \"dns\": {         \"servers\": [             {                 \"tag\": \"google\",                 \"address\": \"tls:\/\/8.8.8.8\"             },             {                 \"tag\": \"block\",                 \"address\": \"rcode:\/\/success\"             }         ],         \"final\": \"google\",         \"strategy\": \"prefer_ipv4\",         \"disable_cache\": false,         \"disable_expire\": false     },     \"inbounds\": [         {             \"type\": \"mixed\",             \"tag\": \"mixed-in\",             \"listen\": \"127.0.0.1\",             \"listen_port\": 1080,             \"tcp_fast_open\": false,             \"sniff\": true,             \"sniff_override_destination\": true,             \"set_system_proxy\": false         },         {             \"type\": \"tun\",             \"tag\": \"tun-in\",             \"interface_name\": \"singtun0\",             \"inet4_address\": \"172.19.16.1\/30\",             \"stack\": \"gvisor\",             \"mtu\": 9000,             \"auto_route\": true,             \"strict_route\": false,             \"endpoint_independent_nat\": false,             \"sniff\": true,             \"sniff_override_destination\": true         }     ],     \"outbounds\": [         {             \"type\": \"selector\",             \"tag\": \"Proxy-out\",             \"outbounds\": [                 \"URL-Test\",                 \"direct\",                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"default\": \"URL-Test\"         },         {             \"type\": \"urltest\",             \"tag\": \"URL-Test\",             \"outbounds\": [                 \"shadowsocks-out\",                 \"vmess-tls-out\",                 \"trojan-WebSocket-out\",                 \"reality-out\"             ],             \"url\": \"http:\/\/www.gstatic.com\/generate_204\",             \"interval\": \"1m\",             \"tolerance\": 50         },         {             \"type\": \"shadowsocks\",             \"tag\": \"shadowsocks-out\",             \"server\": \"IP\",             \"server_port\": 15000,             \"method\": \"chacha20-ietf-poly1305\",             \"password\": \"password\"         },         {             \"type\": \"vless\",             \"tag\": \"reality-out\",             \"server\": \"IP\",             \"server_port\": 8442,             \"uuid\": \"UUID\",             \"flow\": \"xtls-rprx-vision\",             \"network\": \"tcp\",             \"tls\": {                 \"enabled\": true,                 \"insecure\": false,                 \"server_name\": \"SERVERNAME\",                 \"utls\": {                     \"enabled\": true,                     \"fingerprint\": \"chrome\"                 },                 \"reality\": {                     \"enabled\": true,                     \"public_key\": \"AP24JYROAB8odK5glVW_KLnsWl3UZ-voaGq_9ihQgTL\"                 }             }         },         {             \"type\": \"trojan\",             \"tag\": \"trojan-WebSocket-out\",             \"server\": \"IP\",             \"server_port\": 8443,             \"password\": \"PASSWORD\",             \"transport\": {                 \"type\": \"ws\",                 \"path\": \"\/\",                 \"early_data_header_name\": \"Sec-WebSocket-Protocol\"             },             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"d43f429a97e4ea6d.gstatic.com\"             },             \"multiplex\": {                 \"enabled\": true,                 \"max_connections\": 4,                 \"min_streams\": 4,                 \"max_streams\": 0             }         },         {             \"type\": \"vmess\",             \"tag\": \"vmess-tls-out\",             \"server\": \"IP\",             \"server_port\": 8444,             \"uuid\": \"UUID\",             \"security\": \"auto\",             \"alter_id\": 0,             \"global_padding\": false,             \"authenticated_length\": true,             \"tls\": {                 \"enabled\": true,                 \"disable_sni\": false,                 \"server_name\": \"google.com\",                 \"insecure\": false,                 \"alpn\": [                     \"http\/1.1\"                 ]             },             \"multiplex\": {                 \"enabled\": true,                 \"protocol\": \"smux\",                 \"max_connections\": 5,                 \"min_streams\": 4,                 \"max_streams\": 0             },             \"connect_timeout\": \"5s\"         },         {             \"type\": \"direct\",             \"tag\": \"direct\"         },         {             \"type\": \"block\",             \"tag\": \"block\"         },         {             \"type\": \"dns\",             \"tag\": \"dns-out\"         }     ],     \"route\": {         \"geoip\": {             \"path\": \"\/tmp\/geoip.db\",             \"download_url\": \"https:\/\/github.com\/SagerNet\/sing-geoip\/releases\/latest\/download\/geoip.db\",             \"download_detour\": \"Proxy-out\"         },         \"geosite\": {             \"path\": \"\/tmp\/geosite.db\",             \"download_url\": \"https:\/\/github.com\/SagerNet\/sing-geosite\/releases\/latest\/download\/geosite.db\",             \"download_detour\": \"Proxy-out\"         },         \"rules\": [             {                 \"protocol\": \"dns\",                 \"outbound\": \"dns-out\"             },             {                 \"protocol\": [                     \"quic\"                 ],                 \"outbound\": \"block\"             },             {                 \"geosite\": [                     \"private\",                     \"youtube\",                     \"google\", \"yandex\"                 ],                 \"geoip\": [                     \"private\",                     \"ru\"                 ],                 \"ip_cidr\": [                     \"94.100.180.201\/32\",                     \"94.100.180.202\/32\"                 ],                 \"domain_keyword\": [                     \"mail.ru\",                     \"vk.com\"                 ], \"domain_suffix\": [                     \".ru\"                   ],                 \"outbound\": \"direct\"             }         ],         \"final\": \"Proxy-out\",         \"auto_detect_interface\": true     } }<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0438\u0448\u0435\u0442 \u0432 \u043b\u043e\u0433 \/tmp\/sing-box.log \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0438 \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 socks5 proxy \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 <strong>1080<\/strong>, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0443\u043d\u043d\u0435\u043b\u044c <strong>singtun0<\/strong> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e kmod-tun \u0438 gvisor.<\/p>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b outbounds \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f XTLS-Reality, VMess TLS \u0438 Trojan Websocket:<\/p>\n<pre><code class=\"json\">{   \"type\": \"shadowsocks\",   \"tag\": \"shadowsocks-out\", .... }, {   \"type\": \"vless\",   \"tag\": \"reality-out\", .... }, { \"type\": \"trojan\",  \"tag\": \"trojan-WebSocket-out\", .... }, {   \"type\": \"vmess\",   \"tag\": \"vmess-tls-out\", ..... },<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u043b\u0438\u0448\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432 \u0443\u0431\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 selector \u0438 urltest<\/p>\n<pre><code class=\"json\">            \"type\": \"selector\",<\/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-352845","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352845","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=352845"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352845\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}