{"id":332642,"date":"2022-04-30T21:00:18","date_gmt":"2022-04-30T21:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=332642"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=332642","title":{"rendered":"<span>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Shadowsocks \u0441 \u043e\u0431\u0445\u043e\u0434\u043e\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043d\u0430 Keenetic<\/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<h2>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h2>\n<p>\u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0410\u043c\u0435\u0440\u0438\u043a\u0438 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0442.\u043a. \u043e\u043d\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0435\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0438 \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u0442.\u0447. \u043d\u0430 Habr. \u041d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0414\u0435\u043b\u0430\u043b \u044d\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441 \u043d\u0443\u043b\u044f, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0441\u043c\u043e\u0433 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u0435 \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<h2>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e<\/h2>\n<ul>\n<li>\n<p>\u041b\u044e\u0431\u043e\u0439 Keenetic \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 USB. \u041c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u043f\u0430\u043c\u044f\u0442\u044c, \u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f<\/p>\n<\/li>\n<li>\n<p>\u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f KeeneticOs (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 3.7.4)<\/p>\n<\/li>\n<li>\n<p>Flash-\u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0445\u0432\u0430\u0442\u0438\u0442 \u0434\u0430\u0436\u0435 256\u041c\u0431, \u043d\u043e \u0432 2022 \u0433\u043e\u0434\u0443 \u0442\u0430\u043a\u0438\u0445 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0448\u044c)<\/p>\n<\/li>\n<\/ul>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b 1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Entware<\/h2>\n<ol>\n<li>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043b\u0435\u0448\u043a\u0438 \u0432 ext4. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b MiniTool Partition Wizard Free, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/81e\/78c\/ae6\/81e78cae6b7122d0e3cd51dcf9b7134e.png\" width=\"681\" height=\"797\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/81e\/78c\/ae6\/81e78cae6b7122d0e3cd51dcf9b7134e.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/62c\/4f5\/49f\/62c4f549f013751a2ab6a378e0d41ed6.png\" width=\"446\" height=\"249\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/62c\/4f5\/49f\/62c4f549f013751a2ab6a378e0d41ed6.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fbd\/ea4\/bc4\/fbdea4bc4d0e055c823137485c25d91f.png\" width=\"238\" height=\"262\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fbd\/ea4\/bc4\/fbdea4bc4d0e055c823137485c25d91f.png\"\/><figcaption><\/figcaption><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f <a href=\"https:\/\/help.keenetic.com\/hc\/ru\/articles\/360021214160-%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%8B-%D0%BF%D0%B0%D0%BA%D0%B5%D1%82%D0%BE%D0%B2-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F-Entware-%D0%BD%D0%B0-USB-%D0%BD%D0%B0%D0%BA%D0%BE%D0%BF%D0%B8%D1%82%D0%B5%D0%BB%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 <\/a>\u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 Keenetic<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/bin.entware.net\/mipselsf-k3.4\/installer\/mipsel-installer.tar.gz\" rel=\"noopener noreferrer nofollow\">mipsel    <\/a><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0444\u043b\u0435\u0448\u043a\u0443 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443<\/p>\n<p>\u0412<em> \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 &#171;<\/em><a href=\"https:\/\/help.keenetic.com\/hc\/ru\/articles\/https:\/\/help.keenetic.com\/hc\/ru\/articles\/360000812220\" rel=\"noopener noreferrer nofollow\"><em>\u0421\u0435\u0440\u0432\u0435\u0440 SMB<\/em><\/a><em>&#187; \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c USB-\u0434\u0438\u0441\u043a\u0430\u043c \u043f\u043e \u0441\u0435\u0442\u0438.<\/em><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043f\u043a\u0443 install<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/845\/107\/d48\/845107d48d77157c9d5029006e0b3969.png\" width=\"598\" height=\"458\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/845\/107\/d48\/845107d48d77157c9d5029006e0b3969.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b mipsel \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/468\/0af\/c38\/4680afc381244546f331c2217de7b62d.png\" width=\"374\" height=\"214\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/468\/0af\/c38\/4680afc381244546f331c2217de7b62d.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 OPKG, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0441\u0442\u044c \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cc1\/dd0\/add\/cc1dd0add8d48f90ca774b4559c42c8a.png\" width=\"764\" height=\"673\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cc1\/dd0\/add\/cc1dd0add8d48f90ca774b4559c42c8a.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043c\u0438\u043d\u0443\u0442\u0443 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443. \u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f entware \u043f\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u044e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0430\u043f\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e9a\/311\/140\/e9a3111407133b33e31c922881766bff.png\" width=\"385\" height=\"386\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e9a\/311\/140\/e9a3111407133b33e31c922881766bff.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" rel=\"noopener noreferrer nofollow\">Putty <\/a>(\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e putty-64bit-0.76-installer.msi) \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0451. \u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u0447\u043a\u0438 (\u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Save)<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<\/blockquote>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d62\/fb8\/88f\/d62fb888f9675f5cfe77588e5d7e9b16.png\" width=\"458\" height=\"442\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d62\/fb8\/88f\/d62fb888f9675f5cfe77588e5d7e9b16.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u0445 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f (\u043a\u043d\u043e\u043f\u043a\u0430 Accept)<\/p>\n<ul>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043b\u043e\u0433\u0438\u043d \u00abroot\u00bb (\u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a), \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Enter, \u043f\u0430\u0440\u043e\u043b\u044c \u00abkeenetic\u00bb (\u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a) (\u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0435 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u2013 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e), \u0442\u0430\u043a\u0436\u0435 Enter. \u0414\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f:<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c76\/859\/341\/c768593415a61f548c5ea4a1ed8d0bab.png\" width=\"557\" height=\"97\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c76\/859\/341\/c768593415a61f548c5ea4a1ed8d0bab.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>passwd<\/code><\/pre>\n<p>\u0438 \u0434\u0432\u0430\u0436\u0434\u044b \u0432\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c. \u041a\u0443\u0440\u0441\u043e\u0440 \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c opkg<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>P.S. \u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 &#8212; \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438<\/p>\n<\/blockquote>\n<pre><code>opkg update<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/61d\/db5\/191\/61ddb519179db6ed68bc9b40e24a8ac1.png\" width=\"572\" height=\"245\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/61d\/db5\/191\/61ddb519179db6ed68bc9b40e24a8ac1.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b 2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Shadowsocks \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/h2>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0432\u043e\u0442 <a href=\"https:\/\/habr.com\/ru\/post\/428992\/\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0430 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/p>\n<ol>\n<li>\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 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0430: \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 > \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b IPv6<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u00ab\u041c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b Netfilter\u00bb \u0438, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u00ab\u041f\u0430\u043a\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f Xtables-addons \u0434\u043b\u044f Netfilter\u00bb \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0448 Entware<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a Putty (\u0441\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u0435\u0441\u043b\u0438 \u043b\u043e\u0433\u0438\u043d \u0438  \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u0438 \u0442\u043e root-keenetic)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code>opkg install mc bind-dig cron dnsmasq-full ipset iptables shadowsocks-libev-ss-redir shadowsocks-libev-config<\/code><\/pre>\n<ol start=\"3\">\n<li>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ipset, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 unblock (100-ipset.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 hash:net (\u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c, \u043d\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 Keenetic \u043e\u043d\u0430 \u0435\u0441\u0442\u044c):<\/p>\n<\/li>\n<\/ul>\n<pre><code>ipset create test hash:net<\/code><\/pre>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0435 \u0432\u044b\u0434\u0430\u043b\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0435\u0441\u0442\u044c, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 (\u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430) \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <strong>hash:net<\/strong> \u043d\u0430 <strong>hash:ip<\/strong>. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 \u0438 CIDR.<br \/>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443 \u0412\u0430\u0441<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c unblock \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \/opt\/etc\/ndm\/fs.d\/100-ipset.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/ndm\/fs.d\/100-ipset.sh<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448 <strong>Shift+Insert<\/strong>. \u0414\u0430\u043b\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448<\/p>\n<pre><code>#!\/bin\/sh [ \"$1\" != \"start\" ] &amp;&amp; exit 0 ipset create unblock hash:net -exist exit 0 <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (<strong>\u043a\u043b\u0430\u0432\u0438\u0448\u0430 F2<\/strong>), \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f (<strong>Enter<\/strong>) \u0438 \u0432\u044b\u0445\u043e\u0434 (<strong>\u043a\u043b\u0430\u0432\u0438\u0448\u0430 F10<\/strong>). \u042d\u0442\u0438 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u0435\u0435<\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435:<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/etc\/ndm\/fs.d\/100-ipset.sh<\/code><\/pre>\n<ol start=\"4\">\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Shadowsocks \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <a href=\"https:\/\/hi-l.eu\/\" rel=\"noopener noreferrer nofollow\">Highload-VPN<\/a>. \u041d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439. \u041f\u043e\u043a\u0430 \u0442\u0430\u043c \u0432\u0441\u0451 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043e\u043d\u0438 \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0432\u0441\u043a\u043e\u0440\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u043b\u0430\u0442\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u043d\u043e, \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u0440\u043e\u0433\u043e\u0439. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u043b\u0438\u0431\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e Shadowsocks \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=Ml6PKWpJunw\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0439 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c)))). \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0432\u0437\u044f\u0442\u0430 <a href=\"https:\/\/telegra.ph\/HighLoad-VPN-na-routere-Keenetic-s-Entware-03-21\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0430 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <a href=\"https:\/\/hi-l.eu\/dashboard\" rel=\"noopener noreferrer nofollow\">\u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f <\/a><\/p>\n<\/li>\n<li>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043a\u043b\u044e\u0447. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u00bb<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f0e\/628\/649\/f0e628649ac6cf9c4ba8f80580608c01.png\" width=\"1508\" height=\"599\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f0e\/628\/649\/f0e628649ac6cf9c4ba8f80580608c01.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/49f\/f21\/68e\/49ff2168e945ca49cc1d03dfec49130a.png\" width=\"859\" height=\"170\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/49f\/f21\/68e\/49ff2168e945ca49cc1d03dfec49130a.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u0438\u043d\u044e\u044e \u0438 \u0437\u0435\u043b\u0451\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u043e\u0437\u0436\u0435. \u041f\u043e\u043a\u0430 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0447\u0430\u0441\u0442\u044c, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c (\u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e &#171;\u0441\u043e\u0431\u0430\u0447\u043a\u0438&#187;). \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0435\u0451 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430. \u041e\u043d\u0430 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 base64, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0451 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/www.base64decode.org\/\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u0441\u0430\u0439\u0442 <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0432\u0435\u0440\u0445\u043d\u0435\u0435 \u043f\u043e\u043b\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0448\u0443 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Decode. \u041f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430. \u041d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/441\/8d6\/9f5\/4418d69f5926e79a5f30a4fef9e0c0e7.png\" width=\"558\" height=\"525\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/441\/8d6\/9f5\/4418d69f5926e79a5f30a4fef9e0c0e7.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 Putty \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/shadowsocks.json<\/code><\/pre>\n<ul>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0444\u0430\u0439\u043b. \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 server (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 5.5.5.5) \u043d\u0430 ip \u0430\u0434\u0440\u0435\u0441 (\u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f) \u0438\u0437 \u043a\u043b\u044e\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 (\u0441\u043c \u0432\u0442\u043e\u0440\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430\u0432\u0435\u0440\u0445). \u042d\u0442\u043e &#171;\u0441\u0438\u043d\u044f\u044f&#187; \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430. &#171;\u0417\u0435\u043b\u0451\u043d\u0443\u044e&#187; \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 server_port (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 666). \u0412 \u043f\u043e\u043b\u0435 password \u043c\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0438\u0437 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430, \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u0440\u0430\u0441\u043d\u044b\u043c, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f). local_port \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0440\u0442. \u041c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>{     \"server\":[\"5.5.5.5\"],     \"mode\":\"tcp_and_udp\",     \"server_port\":666,     \"password\":\"8888888\",     \"timeout\":86400,     \"method\":\"chacha20-ietf-poly1305\",     \"local_address\": \"::\",     \"local_port\": 1082,     \"timeout\": 300,     \"fast_open\": false,     \"ipv6_first\": true }<\/code><\/pre>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd7\/18e\/0f5\/dd718e0f53074b80c938848b72961d03.png\" width=\"355\" height=\"276\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd7\/18e\/0f5\/dd718e0f53074b80c938848b72961d03.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c (\u043d\u0430\u043f\u043e\u043c\u043d\u044e F2,F10)<\/p>\n<ul>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b Shadowsocks<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/init.d\/S22shadowsocks<\/code><\/pre>\n<ul>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c ss-local \u043d\u0430 ss-redir<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ea0\/058\/9c8\/ea00589c81ac110c5490548d92ff935f.png\" width=\"316\" height=\"247\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ea0\/058\/9c8\/ea00589c81ac110c5490548d92ff935f.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c<\/p>\n<ol start=\"5\">\n<li>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e) \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 (unblock.txt)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \/opt\/etc\/unblock.txt<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/unblock.txt<\/code><\/pre>\n<blockquote>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, IP-\u0430\u0434\u0440\u0435\u0441, \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u043b\u0438 CIDR. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b # \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a.<\/p>\n<\/blockquote>\n<pre><code>###\u0422\u043e\u0440\u0440\u0435\u043d\u0442-\u0442\u0440\u0435\u043a\u0435\u0440\u044b rutracker.org kinozal.tv ###\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u043c\u0435\u0434\u0438\u0430\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c filmix.cc ###\u041a\u043d\u0438\u0433\u0438 lib.rus.ec ###\u0420\u0430\u0437\u043d\u043e\u0435 2ip.ru  #facebooktwitterinstagram facebook.com twitter.com instagram.com  ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e IP (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #195.82.146.214 ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e CIDR (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #103.21.244.0\/22 ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #100.100.100.200-100.100.100.210 <\/code><\/pre>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 twitter, facebook \u0438 instagram \u0443 \u043c\u0435\u043d\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442. \u0421\u0430\u0439\u0442 2ip \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 ip<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c    <\/p>\n<ol start=\"6\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 unblock IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_ipset.sh) \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 dnsmasq \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_dnsmasq.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/opt\/bin\/unblock_ipset.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh until ADDRS=$(dig +short google.com @localhost) &amp;&amp; [ -n \"$ADDRS\" ] > \/dev\/null 2>&amp;1; do sleep 5; done while read line || [ -n \"$line\" ]; do   [ -z \"$line\" ] &amp;&amp; continue   [ \"${line:0:1}\" = \"#\" ] &amp;&amp; continue   cidr=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\/[0-9]{1,2}')   if [ ! -z \"$cidr\" ]; then     ipset -exist add unblock $cidr     continue   fi   range=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}-[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}')   if [ ! -z \"$range\" ]; then     ipset -exist add unblock $range     continue   fi   addr=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}')   if [ ! -z \"$addr\" ]; then     ipset -exist add unblock $addr     continue   fi   dig +short $line @localhost | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}' | awk '{system(\"ipset -exist add unblock \"$1)}' done &lt; \/opt\/etc\/unblock.txt <\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/opt\/bin\/unblock_dnsmasq.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_dnsmasq.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh cat \/dev\/null > \/opt\/etc\/unblock.dnsmasq while read line || [ -n \"$line\" ]; do   [ -z \"$line\" ] &amp;&amp; continue   [ \"${line:0:1}\" = \"#\" ] &amp;&amp; continue   echo $line | grep -Eq '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}' &amp;&amp; continue   echo \"ipset=\/$line\/unblock\" >> \/opt\/etc\/unblock.dnsmasq done &lt; \/opt\/etc\/unblock.txt<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_dnsmasq.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043b\u0438 \u0444\u0430\u0439\u043b. \u0417\u0434\u0435\u0441\u044c 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<pre><code>unblock_dnsmasq.sh cat \/opt\/etc\/unblock.dnsmasq<\/code><\/pre>\n<p> \u041a\u0430\u0440\u0442\u0438\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0430\u044f<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e1c\/3e8\/ff2\/e1c3e8ff215e59e0eb9d7b1a09125020.png\" width=\"302\" height=\"119\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e1c\/3e8\/ff2\/e1c3e8ff215e59e0eb9d7b1a09125020.png\"\/><figcaption><\/figcaption><\/figure>\n<ol start=\"7\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_update.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0435\u0433\u043e<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_update.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh ipset flush unblock \/opt\/bin\/unblock_dnsmasq.sh \/opt\/etc\/init.d\/S56dnsmasq restart \/opt\/bin\/unblock_ipset.sh &amp;<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_update.sh<\/code><\/pre>\n<ol start=\"8\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 unblock \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 (S99unblock)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/init.d\/S99unblock<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh [ \"$1\" != \"start\" ] &amp;&amp; exit 0 \/opt\/bin\/unblock_ipset.sh &amp;<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/etc\/init.d\/S99unblock<\/code><\/pre>\n<ol start=\"9\">\n<li>\n<p>\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u0442\u0430\u043c\u0438 \u0438\u0437 unblock \u0432 Shadowsocks<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/ndm\/netfilter.d\/100-redirect.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u2013 \u043c\u0435\u043d\u044f\u0435\u043c ip \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438 \u043d\u0430\u0448 \u043f\u043e\u0440\u0442. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh [ \"$type\" == \"ip6tables\" ] &amp;&amp; exit 0 if [ -z \"$(iptables-save 2>\/dev\/null | grep unblock)\" ]; then     ipset create unblock hash:net family inet -exist     iptables -I PREROUTING -w -t nat -i br0 -p tcp -m set --match-set unblock dst -j REDIRECT --to-port 1082     iptables -I PREROUTING -w -t nat -i br0 -p udp -m set --match-set unblock dst -j REDIRECT --to-port 1082 fi if [ -z \"$(iptables-save 2>\/dev\/null | grep \"udp \\-\\-dport 53 \\-j DNAT\")\" ]; then     iptables -w -t nat -I PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1 fi if [ -z \"$(iptables-save 2>\/dev\/null | grep \"tcp \\-\\-dport 53 \\-j DNAT\")\" ]; then     iptables -w -t nat -I PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to 192.168.1.1 fi exit 0<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/etc\/ndm\/netfilter.d\/100-redirect.sh<\/code><\/pre>\n<ol start=\"10\">\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 dnsmasq \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043a dnsmasq<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 dnsmasq:<\/p>\n<\/li>\n<\/ul>\n<pre><code>cat \/dev\/null > \/opt\/etc\/dnsmasq.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 dnsmasq:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/dnsmasq.conf<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044f\u0435\u043c ip \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>user=nobody bogus-priv no-negcache clear-on-reload bind-dynamic listen-address=192.168.1.1 listen-address=127.0.0.1 min-port=4096 cache-size=1536 expand-hosts log-async conf-file=\/opt\/etc\/unblock.dnsmasq server=8.8.8.8<\/code><\/pre>\n<ol start=\"11\">\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 cron \u0434\u043b\u044f \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 unblock<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/crontab<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0435\u0446 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code>00 06 * * * root \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>] SHELL=\/bin\/sh PATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/opt\/bin:\/opt\/sbin MAILTO=\"\" HOME=\/ # ---------- ---------- Default is Empty ---------- ---------- # #*\/1 * * * * root \/opt\/bin\/run-parts \/opt\/etc\/cron.1min #*\/5 * * * * root \/opt\/bin\/run-parts \/opt\/etc\/cron.5mins #01 * * * * root \/opt\/bin\/run-parts \/opt\/etc\/cron.hourly #02 4 * * * root \/opt\/bin\/run-parts \/opt\/etc\/cron.daily #22 4 * * 0 root \/opt\/bin\/run-parts \/opt\/etc\/cron.weekly #42 4 1 * * root \/opt\/bin\/run-parts \/opt\/etc\/cron.monthly 00 06 * * * root \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ol start=\"12\">\n<li>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0448\u0442\u0430\u0442\u043d\u043e\u0433\u043e DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430   <\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u00b7\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 Windows (\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0441\u043a \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u00ab\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u00bb)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0438\u0448\u0435\u043c (ip \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u0435\u0441\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439)<\/p>\n<\/li>\n<\/ul>\n<pre><code>telnet 192.168.1.1<\/code><\/pre>\n<ul>\n<li>\n<p>\u041b\u043e\u0433\u0438\u043d \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0432\u0432\u043e\u0434\u0438\u043c \u043e\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u0430 \u043d\u0435 entware (\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e admin, \u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u043b\u0438\u0447\u043d\u043e \u0412\u0430\u0448)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043e\u0447\u0435\u0440\u0451\u0434\u043d\u043e 3 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n<\/li>\n<\/ul>\n<pre><code>opkg dns-override system configuration save system reboot<\/code><\/pre>\n<ul>\n<li>\n<p>\u0420\u043e\u0443\u0442\u0435\u0440 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0438 \u0412\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0412\u0430\u043c \u0441\u0430\u0439\u0442\u0430\u043c\u0438<\/p>\n<ol start=\"13\">\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043f\u0440\u043e\u043f\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e 222 \u043f\u043e\u0440\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 putty \u043f\u043e ssh. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0441\u044c \u043f\u043e 22 \u043f\u043e\u0440\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0442 \u0436\u0435 putty, \u0432\u0432\u043e\u0436\u0443 \u043b\u043e\u0433\u0438\u043d \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u043e\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043f\u0438\u0448\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:   <\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<pre><code>exec sh<\/code><\/pre>\n<p>\u0430 \u0437\u0430\u0442\u0435\u043c<\/p>\n<pre><code>su - root<\/code><\/pre>\n<p>\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Entware \u043f\u043e \u0442\u0438\u043f\u0443 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0416\u0434\u0443 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/663862\/\"> https:\/\/habr.com\/ru\/post\/663862\/<\/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<h2>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h2>\n<p>\u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0410\u043c\u0435\u0440\u0438\u043a\u0438 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0442.\u043a. \u043e\u043d\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0435\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0438 \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u0442.\u0447. \u043d\u0430 Habr. \u041d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0414\u0435\u043b\u0430\u043b \u044d\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441 \u043d\u0443\u043b\u044f, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0441\u043c\u043e\u0433 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u0435 \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<h2>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e<\/h2>\n<ul>\n<li>\n<p>\u041b\u044e\u0431\u043e\u0439 Keenetic \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 USB. \u041c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u043f\u0430\u043c\u044f\u0442\u044c, \u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f<\/p>\n<\/li>\n<li>\n<p>\u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f KeeneticOs (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 3.7.4)<\/p>\n<\/li>\n<li>\n<p>Flash-\u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0445\u0432\u0430\u0442\u0438\u0442 \u0434\u0430\u0436\u0435 256\u041c\u0431, \u043d\u043e \u0432 2022 \u0433\u043e\u0434\u0443 \u0442\u0430\u043a\u0438\u0445 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0448\u044c)<\/p>\n<\/li>\n<\/ul>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b 1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Entware<\/h2>\n<ol>\n<li>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043b\u0435\u0448\u043a\u0438 \u0432 ext4. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b MiniTool Partition Wizard Free, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f <a href=\"https:\/\/help.keenetic.com\/hc\/ru\/articles\/360021214160-%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%8B-%D0%BF%D0%B0%D0%BA%D0%B5%D1%82%D0%BE%D0%B2-%D1%80%D0%B5%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D1%8F-Entware-%D0%BD%D0%B0-USB-%D0%BD%D0%B0%D0%BA%D0%BE%D0%BF%D0%B8%D1%82%D0%B5%D0%BB%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 <\/a>\u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 Keenetic<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/bin.entware.net\/mipselsf-k3.4\/installer\/mipsel-installer.tar.gz\" rel=\"noopener noreferrer nofollow\">mipsel    <\/a><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0444\u043b\u0435\u0448\u043a\u0443 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443<\/p>\n<p>\u0412<em> \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 &#171;<\/em><a href=\"https:\/\/help.keenetic.com\/hc\/ru\/articles\/https:\/\/help.keenetic.com\/hc\/ru\/articles\/360000812220\" rel=\"noopener noreferrer nofollow\"><em>\u0421\u0435\u0440\u0432\u0435\u0440 SMB<\/em><\/a><em>&#187; \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c USB-\u0434\u0438\u0441\u043a\u0430\u043c \u043f\u043e \u0441\u0435\u0442\u0438.<\/em><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043f\u043a\u0443 install<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b mipsel \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 OPKG, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0441\u0442\u044c \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043c\u0438\u043d\u0443\u0442\u0443 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2013 \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u043b\u0435\u0448\u043a\u0443. \u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f entware \u043f\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u044e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0430\u043f\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" rel=\"noopener noreferrer nofollow\">Putty <\/a>(\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e putty-64bit-0.76-installer.msi) \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0451. \u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u0447\u043a\u0438 (\u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Save)<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<\/blockquote>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u0445 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f (\u043a\u043d\u043e\u043f\u043a\u0430 Accept)<\/p>\n<ul>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043b\u043e\u0433\u0438\u043d \u00abroot\u00bb (\u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a), \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Enter, \u043f\u0430\u0440\u043e\u043b\u044c \u00abkeenetic\u00bb (\u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a) (\u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0435 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u2013 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e), \u0442\u0430\u043a\u0436\u0435 Enter. \u0414\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f:<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>passwd<\/code><\/pre>\n<p>\u0438 \u0434\u0432\u0430\u0436\u0434\u044b \u0432\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c. \u041a\u0443\u0440\u0441\u043e\u0440 \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c opkg<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>P.S. \u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 &#8212; \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438<\/p>\n<\/blockquote>\n<pre><code>opkg update<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b 2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Shadowsocks \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/h2>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0432\u043e\u0442 <a href=\"https:\/\/habr.com\/ru\/post\/428992\/\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0430 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/p>\n<ol>\n<li>\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 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0430: \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 > \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b IPv6<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u00ab\u041c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b Netfilter\u00bb \u0438, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u00ab\u041f\u0430\u043a\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f Xtables-addons \u0434\u043b\u044f Netfilter\u00bb \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0448 Entware<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a Putty (\u0441\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u0435\u0441\u043b\u0438 \u043b\u043e\u0433\u0438\u043d \u0438  \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u0438 \u0442\u043e root-keenetic)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code>opkg install mc bind-dig cron dnsmasq-full ipset iptables shadowsocks-libev-ss-redir shadowsocks-libev-config<\/code><\/pre>\n<ol start=\"3\">\n<li>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ipset, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 unblock (100-ipset.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 hash:net (\u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c, \u043d\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 Keenetic \u043e\u043d\u0430 \u0435\u0441\u0442\u044c):<\/p>\n<\/li>\n<\/ul>\n<pre><code>ipset create test hash:net<\/code><\/pre>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0435 \u0432\u044b\u0434\u0430\u043b\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0435\u0441\u0442\u044c, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 (\u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430) \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <strong>hash:net<\/strong> \u043d\u0430 <strong>hash:ip<\/strong>. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 \u0438 CIDR.<br \/>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443 \u0412\u0430\u0441<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c unblock \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \/opt\/etc\/ndm\/fs.d\/100-ipset.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/ndm\/fs.d\/100-ipset.sh<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448 <strong>Shift+Insert<\/strong>. \u0414\u0430\u043b\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448<\/p>\n<pre><code>#!\/bin\/sh [ \"$1\" != \"start\" ] &amp;&amp; exit 0 ipset create unblock hash:net -exist exit 0 <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (<strong>\u043a\u043b\u0430\u0432\u0438\u0448\u0430 F2<\/strong>), \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f (<strong>Enter<\/strong>) \u0438 \u0432\u044b\u0445\u043e\u0434 (<strong>\u043a\u043b\u0430\u0432\u0438\u0448\u0430 F10<\/strong>). \u042d\u0442\u0438 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u0435\u0435<\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435:<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/etc\/ndm\/fs.d\/100-ipset.sh<\/code><\/pre>\n<ol start=\"4\">\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Shadowsocks \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <a href=\"https:\/\/hi-l.eu\/\" rel=\"noopener noreferrer nofollow\">Highload-VPN<\/a>. \u041d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439. \u041f\u043e\u043a\u0430 \u0442\u0430\u043c \u0432\u0441\u0451 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043e\u043d\u0438 \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0432\u0441\u043a\u043e\u0440\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u043b\u0430\u0442\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u043d\u043e, \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u0440\u043e\u0433\u043e\u0439. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u043b\u0438\u0431\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e Shadowsocks \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=Ml6PKWpJunw\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0439 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c)))). \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0432\u0437\u044f\u0442\u0430 <a href=\"https:\/\/telegra.ph\/HighLoad-VPN-na-routere-Keenetic-s-Entware-03-21\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0430 <\/a>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <a href=\"https:\/\/hi-l.eu\/dashboard\" rel=\"noopener noreferrer nofollow\">\u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f <\/a><\/p>\n<\/li>\n<li>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043a\u043b\u044e\u0447. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u00bb<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0421\u0438\u043d\u044e\u044e \u0438 \u0437\u0435\u043b\u0451\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u043e\u0437\u0436\u0435. \u041f\u043e\u043a\u0430 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0447\u0430\u0441\u0442\u044c, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c (\u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e &#171;\u0441\u043e\u0431\u0430\u0447\u043a\u0438&#187;). \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0435\u0451 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430. \u041e\u043d\u0430 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 base64, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0451 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/www.base64decode.org\/\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u0441\u0430\u0439\u0442 <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0432\u0435\u0440\u0445\u043d\u0435\u0435 \u043f\u043e\u043b\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0448\u0443 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Decode. \u041f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430. \u041d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 Putty \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/shadowsocks.json<\/code><\/pre>\n<ul>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0444\u0430\u0439\u043b. \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 server (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 5.5.5.5) \u043d\u0430 ip \u0430\u0434\u0440\u0435\u0441 (\u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f) \u0438\u0437 \u043a\u043b\u044e\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 (\u0441\u043c \u0432\u0442\u043e\u0440\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430\u0432\u0435\u0440\u0445). \u042d\u0442\u043e &#171;\u0441\u0438\u043d\u044f\u044f&#187; \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430. &#171;\u0417\u0435\u043b\u0451\u043d\u0443\u044e&#187; \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 server_port (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 666). \u0412 \u043f\u043e\u043b\u0435 password \u043c\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0438\u0437 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430, \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u0440\u0430\u0441\u043d\u044b\u043c, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f). local_port \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0440\u0442. \u041c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>{     \"server\":[\"5.5.5.5\"],     \"mode\":\"tcp_and_udp\",     \"server_port\":666,     \"password\":\"8888888\",     \"timeout\":86400,     \"method\":\"chacha20-ietf-poly1305\",     \"local_address\": \"::\",     \"local_port\": 1082,     \"timeout\": 300,     \"fast_open\": false,     \"ipv6_first\": true }<\/code><\/pre>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c (\u043d\u0430\u043f\u043e\u043c\u043d\u044e F2,F10)<\/p>\n<ul>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b Shadowsocks<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/init.d\/S22shadowsocks<\/code><\/pre>\n<ul>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c ss-local \u043d\u0430 ss-redir<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c<\/p>\n<ol start=\"5\">\n<li>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e) \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 (unblock.txt)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \/opt\/etc\/unblock.txt<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/unblock.txt<\/code><\/pre>\n<blockquote>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, IP-\u0430\u0434\u0440\u0435\u0441, \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u043b\u0438 CIDR. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b # \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a.<\/p>\n<\/blockquote>\n<pre><code>###\u0422\u043e\u0440\u0440\u0435\u043d\u0442-\u0442\u0440\u0435\u043a\u0435\u0440\u044b rutracker.org kinozal.tv ###\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u043c\u0435\u0434\u0438\u0430\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c filmix.cc ###\u041a\u043d\u0438\u0433\u0438 lib.rus.ec ###\u0420\u0430\u0437\u043d\u043e\u0435 2ip.ru  #facebooktwitterinstagram facebook.com twitter.com instagram.com  ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e IP (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #195.82.146.214 ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e CIDR (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #103.21.244.0\/22 ###\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 (\u0443\u0431\u0440\u0430\u0442\u044c # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438) #100.100.100.200-100.100.100.210 <\/code><\/pre>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 twitter, facebook \u0438 instagram \u0443 \u043c\u0435\u043d\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442. \u0421\u0430\u0439\u0442 2ip \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 ip<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c    <\/p>\n<ol start=\"6\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 unblock IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_ipset.sh) \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 dnsmasq \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_dnsmasq.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/opt\/bin\/unblock_ipset.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh until ADDRS=$(dig +short google.com @localhost) &amp;&amp; [ -n \"$ADDRS\" ] > \/dev\/null 2>&amp;1; do sleep 5; done while read line || [ -n \"$line\" ]; do   [ -z \"$line\" ] &amp;&amp; continue   [ \"${line:0:1}\" = \"#\" ] &amp;&amp; continue   cidr=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\/[0-9]{1,2}')   if [ ! -z \"$cidr\" ]; then     ipset -exist add unblock $cidr     continue   fi   range=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}-[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}')   if [ ! -z \"$range\" ]; then     ipset -exist add unblock $range     continue   fi   addr=$(echo $line | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}')   if [ ! -z \"$addr\" ]; then     ipset -exist add unblock $addr     continue   fi   dig +short $line @localhost | grep -Eo '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}' | awk '{system(\"ipset -exist add unblock \"$1)}' done &lt; \/opt\/etc\/unblock.txt <\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_ipset.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/opt\/bin\/unblock_dnsmasq.sh:<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_dnsmasq.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh cat \/dev\/null > \/opt\/etc\/unblock.dnsmasq while read line || [ -n \"$line\" ]; do   [ -z \"$line\" ] &amp;&amp; continue   [ \"${line:0:1}\" = \"#\" ] &amp;&amp; continue   echo $line | grep -Eq '[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}' &amp;&amp; continue   echo \"ipset=\/$line\/unblock\" >> \/opt\/etc\/unblock.dnsmasq done &lt; \/opt\/etc\/unblock.txt<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_dnsmasq.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043b\u0438 \u0444\u0430\u0439\u043b. \u0417\u0434\u0435\u0441\u044c 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<pre><code>unblock_dnsmasq.sh cat \/opt\/etc\/unblock.dnsmasq<\/code><\/pre>\n<p> \u041a\u0430\u0440\u0442\u0438\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0430\u044f<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<ol start=\"7\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 (unblock_update.sh)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0435\u0433\u043e<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/bin\/unblock_update.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh ipset flush unblock \/opt\/bin\/unblock_dnsmasq.sh \/opt\/etc\/init.d\/S56dnsmasq restart \/opt\/bin\/unblock_ipset.sh &amp;<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/bin\/unblock_update.sh<\/code><\/pre>\n<ol start=\"8\">\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 unblock \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 (S99unblock)<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/init.d\/S99unblock<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh [ \"$1\" != \"start\" ] &amp;&amp; exit 0 \/opt\/bin\/unblock_ipset.sh &amp;<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code>chmod +x \/opt\/etc\/init.d\/S99unblock<\/code><\/pre>\n<ol start=\"9\">\n<li>\n<p>\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u0442\u0430\u043c\u0438 \u0438\u0437 unblock \u0432 Shadowsocks<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<\/li>\n<\/ul>\n<pre><code>mcedit \/opt\/etc\/ndm\/netfilter.d\/100-redirect.sh<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u2013 \u043c\u0435\u043d\u044f\u0435\u043c ip \u0430\u0434\u0440\u0435\u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438 \u043d\u0430\u0448 \u043f\u043e\u0440\u0442. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<pre><code>#!\/bin\/sh [ \"$type\" == \"ip6tables\" ] &amp;&amp; exit 0 if [ -z \"$(iptables-save 2>\/dev\/null | grep unblock)\" ]; then     ipset create unblock hash:net family inet -exist     iptables -I PREROUTING -w -t nat -i br0 -p tcp -m set --match-set unblock dst -j REDIRECT --to-port 1082     iptables -I PREROUTING -w -t nat -i br0 -p udp -m set<\/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-332642","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/332642","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=332642"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/332642\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=332642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=332642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=332642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}