{"id":437586,"date":"2024-11-05T21:03:53","date_gmt":"2024-11-05T21:03:53","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=437586"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=437586","title":{"rendered":"<span>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Xray \u043a\u0430\u043a VPN<\/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>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c selfhosted, \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430:<\/p>\n<ul>\n<li>\n<p>Orange Pi &#8212; \u043c\u0435\u0434\u0438\u0430\u0441\u0435\u0440\u0432\u0435\u0440;<\/p>\n<\/li>\n<li>\n<p>Synology &#8212; \u0444\u0430\u0439\u043b\u043e\u043f\u043e\u043c\u043e\u0439\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>Neptune 4 &#8212; 3\u0434 \u043f\u0440\u0438\u043d\u0442\u0435\u0440 \u0441 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0438 \u0432\u0438\u0434\u0435\u043e \u0441 \u043a\u0430\u043c\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0435\u0439 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u041f\u041a, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0445\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0432 \u0420\u0424.<br \/> \u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043d\u0443\u0436\u0434 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b OpenVPN, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0441\u0442\u043e\u0438\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u0447\u0430\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043a \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0443 \u043e\u0442 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0445 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u0439 &#8212; Xray!<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c IP \u0441 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439. \u0423 \u043c\u0435\u043d\u044f &#8212; Orange Pi, \u0434\u0430\u043b\u0435\u0435 &#8212; <code>Bridge<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f &#8212; <code>Server<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u043d\u0435 \u0420\u0424 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0414\u0430\u043b\u0435\u0435 &#8212; <code>Proxy<\/code><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441. \u0414\u0430\u043b\u0435\u0435 &#8212; <code>Client<\/code><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Linux &#8212;  <a href=\"https:\/\/github.com\/XTLS\/Xray-core\" rel=\"noopener noreferrer nofollow\">Xray-core<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/github.com\/XTLS\/Xray-install\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Xray<\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434 &#8212; <a href=\"https:\/\/github.com\/2dust\/v2rayNG\" rel=\"noopener noreferrer nofollow\">v2rayNG<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0449\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/XTLS\/Xray-core\" rel=\"noopener noreferrer nofollow\">Xray-core<\/a><\/p>\n<p>\u0417\u0430 \u0431\u0430\u0437\u0443 \u0431\u0435\u0440\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <a href=\"https:\/\/github.com\/XTLS\/Xray-examples\/tree\/main\/VLESS-TCP-XTLS-Vision-REALITY\" rel=\"noopener noreferrer nofollow\">VLESS-TCP-XTLS-Vision-REALITY<\/a> \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/xtls.github.io\/en\/config\/\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a> \u043a Xray<\/p>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0434\u043e\u043c\u0435\u043d\u0443 <code>xray.com<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u0432 <code>Bridge<\/code>, \u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 &#8212; \u0432 <code>Proxy<\/code>. \u0417\u0430\u0442\u0435\u043c <code>Bridge<\/code> \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043a <code>Server<\/code>, \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u043b\u0441\u044f \u043a <code>server.xray.com<\/code>.<br \/> \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/6b\/m8\/qv\/6bm8qvz0qqb5gfw8ai5urwtyxqw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/6b\/m8\/qv\/6bm8qvz0qqb5gfw8ai5urwtyxqw.png\"\/><\/figure>\n<blockquote>\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 xray \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 <code>\/usr\/local\/etc\/xray\/config.json<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 \u0447\u0435\u0440\u0435\u0437 <code>systemctl restart xray.service<\/code><\/p>\n<\/blockquote>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xray \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>bash -c \"$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)\" @ install <\/code><\/pre>\n<ol start=\"2\">\n<li>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 <code>443<\/code> \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 <code>ufw<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>ufw allow 443 <\/code><\/pre>\n<ol start=\"3\">\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430  <code>Bridge<\/code> \u0438\u043b\u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>xray x25519 <\/code><\/pre>\n<blockquote>\n<p>\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 xray, \u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 &#8212; \u043a\u043e\u043d\u0444\u0438\u0433 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/p>\n<\/blockquote>\n<ol start=\"4\">\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c <code>UUID<\/code> \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0435\u043c\u0443 <code>shortId<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>xray uuid <\/code><\/pre>\n<blockquote>\n<p><code>UUID<\/code> \u0438 <code>shortId<\/code> \u0437\u0430\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432<br \/> <code>shortId<\/code> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c HEX \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0435 \u0434\u043b\u0438\u043d\u043d\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u043a\u0440\u0430\u0442\u043d\u043e 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>a0<\/code>, <code>b1<\/code>, <code>ff<\/code><\/p>\n<\/blockquote>\n<ol start=\"5\">\n<li>\n<p>\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, <code>UUID<\/code>, <code>shortId<\/code>, \u0445\u043e\u0441\u0442\u043d\u0435\u0439\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>Bridge<\/code> <code>\/usr\/local\/etc\/xray\/config.json<\/code>:<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>`\/usr\/local\/etc\/xray\/config.json`<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> {      \"log\": {          \"loglevel\": \"debug\"      },      \"inbounds\": [\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b          {              \"tag\": \"external\",              \"port\": 443,              \"protocol\": \"vless\",              \"settings\": {                  \"clients\": [                      {                          \"id\": \"client_uuid_0\", \/\/ run `xray uuid` to generate                          \"flow\": \"xtls-rprx-vision\"                      },                      {                          \"id\": \"client_uuid_1\",                          \"flow\": \"xtls-rprx-vision\"                      }                  ],                  \"decryption\": \"none\"              },              \"streamSettings\": {                  \"network\": \"tcp\",                  \"security\": \"reality\",                  \"realitySettings\": {                      \"dest\": \"google.com:443\", \/\/ You can also use `1.1.1.1:443` as dest                      \"serverNames\": [                          \"google.com\" \/\/ If you use `1.1.1.1:443` as dest, then you can leave `serverNames` empty, it is a possible ways to bypass Iran's internet speed restrictions.                      ],                      \"privateKey\": \"bridge_privateKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                      \"shortIds\": [ \/\/ Required, list of shortIds available to clients, can be used to distinguish different clients                          \"client_shortId_0\", \/\/ If this item exists, client shortId can be empty                          \"client_shortId_1\",                          \"0123456789abcdef\" \/\/ 0 to f, length is a multiple of 2, maximum length is 16                      ]                  }              },              \"sniffing\": {                  \"enabled\": true,                  \"destOverride\": [                      \"http\",                      \"tls\",                      \"quic\"                  ],                  \"routeOnly\": true              }          }      ],      \"outbounds\": [          {              \"tag\": \"out\",              \"protocol\": \"freedom\"          },          {              \"tag\": \"neptune4\",              \"protocol\": \"freedom\",              \"settings\": {                  \"redirect\": \"server_lan_ip:0\" \/\/ Forward all traffic to web server              }          }      ],      \"routing\": {          \"rules\": [              {                  \"type\": \"field\",                  \"domain\": [                      \"server.xray.com\"                  ],                  \"outboundTag\": \"server\"              }          ]      }  } <\/code><\/pre>\n<\/div>\n<\/details>\n<ol start=\"6\">\n<li>\n<p>\u0414\u043b\u044f <code>Proxy<\/code>  \u0432\u0441\u0435 \u043f\u043e\u043f\u0440\u043e\u0449\u0435 &#8212; \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, <code>UUID<\/code> \u0438<code>shortId<\/code>:<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>  {       \"log\": {           \"loglevel\": \"debug\"       },       \"inbounds\": [           {               \"tag\": \"proxy\",               \"port\": 443,               \"protocol\": \"vless\",               \"settings\": {                   \"clients\": [                       {                           \"\u044b\u0432\u0444\u044bid\": \"client_uuid_0\", \/\/ run `xray uuid` to generate                           \"flow\": \"xtls-rprx-vision\"                       },                       {                           \"id\": \"client_uuid_1\",                           \"flow\": \"xtls-rprx-vision\"                       }                   ],                   \"decryption\": \"none\"               },               \"streamSettings\": {                   \"network\": \"tcp\",                   \"security\": \"reality\",                   \"realitySettings\": {                       \"dest\": \"google.com:443\", \/\/ You can also use `1.1.1.1:443` as dest                       \"serverNames\": [                           \"google.com\" \/\/ If you use `1.1.1.1:443` as dest, then you can leave `serverNames` empty, it is a possible ways to bypass Iran's internet speed restrictions.                       ],                       \"privateKey\": \"proxy_privateKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                       \"shortIds\": [ \/\/ Required, list of shortIds available to clients, can be used to distinguish different clients                           \"client_shortId_0\", \/\/ If this item exists, client shortId can be empty                           \"client_shortId_1\",                           \"0123456789abcdef\" \/\/ 0 to f, length is a multiple of 2, maximum length is 16                       ]                   }               },               \"sniffing\": {                   \"enabled\": true,                   \"destOverride\": [                       \"http\",                       \"tls\",                       \"quic\"                   ],                   \"routeOnly\": true               }           }       ],       \"outbounds\": [           {\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b               \"protocol\": \"freedom\",               \"tag\": \"direct\"           }       ]   } <\/code><\/pre>\n<\/div>\n<\/details>\n<ol start=\"6\">\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 <code>xray<\/code> \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>systemctl restart xray.service <\/code><\/pre>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c<\/h2>\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/> \u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>UUID<\/code>, <code>shortId<\/code>, hostname \u0438\u043b\u0438 ip <code>Proxy<\/code>, <code>Bridge<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043c\u0435\u043d, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0444\u0438\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>\u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>{     \"log\": {         \"loglevel\": \"debug\"     },     \"routing\": {         \"rules\": [             {                 \"type\": \"field\",                 \"domain\": [                     \"xray.com\"                 ],                 \"outboundTag\": \"bridge\"             }         ]     },     \"inbounds\": [         {             \"listen\": \"127.0.0.1\",             \"port\": 10808,             \"protocol\": \"socks\",             \"settings\": {                 \"udp\": true             },             \"sniffing\": {                 \"enabled\": true,                 \"destOverride\": [\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b                     \"http\",                     \"tls\",                     \"quic\"                 ],                 \"routeOnly\": true             }         }     ],     \"outbounds\": [         {             \"protocol\": \"vless\",             \"settings\": {                 \"vnext\": [                     {                         \"address\": \"proxy_hostname_or_ip\",                         \"port\": 443,                         \"users\": [                             {                                 \"id\": \"client_uuid_0\", \/\/ Needs to match server side                                 \"encryption\": \"none\",                                 \"flow\": \"xtls-rprx-vision\"                             }                         ]                     }                 ]             },             \"streamSettings\": {                 \"network\": \"tcp\",                 \"security\": \"reality\",                 \"realitySettings\": {                     \"fingerprint\": \"chrome\",                     \"serverName\": \"google.com\", \/\/ If your dest is `1.1.1.1:443`, then leave it empty                     \"publicKey\": \"proxy_publicKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                     \"spiderX\": \"\", \/\/ If your dest is `1.1.1.1:443`, then you can fill it with `\/dns-query\/` or just leave it empty                     \"shortId\": \"client_shortId_0\" \/\/ Required                 }             },             \"tag\": \"proxy\"         },         {             \"protocol\": \"vless\",             \"settings\": {                 \"vnext\": [                     {                         \"address\": \"bridge_hostname_or_ip\",                         \"port\": 443,                         \"users\": [                             {                                 \"id\": \"client_uuid_0\", \/\/ Needs to match server side                                 \"encryption\": \"none\",                                 \"flow\": \"xtls-rprx-vision\"                             }                         ]                     }                 ]             },             \"streamSettings\": {                 \"network\": \"tcp\",                 \"security\": \"reality\",                 \"realitySettings\": {                     \"fingerprint\": \"chrome\",                     \"serverName\": \"google.com\", \/\/ If your dest is `1.1.1.1:443`, then leave it empty                     \"publicKey\": \"bridge_publicKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                     \"spiderX\": \"\", \/\/ If your dest is `1.1.1.1:443`, then you can fill it with `\/dns-query\/` or just leave it empty                     \"shortId\": \"client_shortId_0\" \/\/ Required                 }             },             \"tag\": \"bridge\"         }     ] } <\/code><\/pre>\n<\/div>\n<\/details>\n<h3>Linux<\/h3>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xray:<\/p>\n<\/li>\n<\/ol>\n<pre><code>bash -c \"$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)\" @ install <\/code><\/pre>\n<ol start=\"2\">\n<li>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 <code>\/usr\/local\/etc\/xray\/config.json<\/code><\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443:<\/p>\n<\/li>\n<\/ol>\n<pre><code>systemctl restart xray.service <\/code><\/pre>\n<blockquote>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 socks5, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 Firefox <code>Settings<\/code> -&gt; <code>Network Settings<\/code> -&gt; <code>Settings<\/code> -&gt; <code>Manual proxy configuration<\/code>:<br \/> Socks Host: 127.0.0.1 Port: 10808<br \/> \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u043b\u0430\u0433 SOCKS v5<\/p>\n<\/blockquote>\n<h3>Android<\/h3>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/github.com\/2dust\/v2rayNG\" rel=\"noopener noreferrer nofollow\">v2rayNG<\/a><\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 <code>Custom config<\/code> -&gt; <code>Import custom config from locally<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u0412\u044b\u0431\u0440\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 xray, \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 <code>Settings<\/code> -&gt; <code>VPN Settings<\/code> -&gt; <code>Per-app proxy<\/code><\/p>\n<\/blockquote>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0432\u043e\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043f\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<br \/> \u0411\u043e\u043d\u0443\u0441\u043e\u043c:<br \/> \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a <code>Server<\/code> \u043f\u043e ssh \u0447\u0435\u0440\u0435\u0437 xray. \u041e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439:<\/p>\n<pre><code>ssh root@server.xray.com -o \"ProxyCommand=nc -X connect -x 127.0.0.1:10808 %h %p\" <\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 <code>~\/.ssh\/config<\/code>:<\/p>\n<pre><code>Host server     Hostname server.xray.com     User root     ProxyCommand nc -X 5 -x 127.0.0.1:10808 %h %p     ServerAliveInterval 10 <\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/855754\/\"> https:\/\/habr.com\/ru\/articles\/855754\/<\/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>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c selfhosted, \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430:<\/p>\n<ul>\n<li>\n<p>Orange Pi &#8212; \u043c\u0435\u0434\u0438\u0430\u0441\u0435\u0440\u0432\u0435\u0440;<\/p>\n<\/li>\n<li>\n<p>Synology &#8212; \u0444\u0430\u0439\u043b\u043e\u043f\u043e\u043c\u043e\u0439\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>Neptune 4 &#8212; 3\u0434 \u043f\u0440\u0438\u043d\u0442\u0435\u0440 \u0441 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0438 \u0432\u0438\u0434\u0435\u043e \u0441 \u043a\u0430\u043c\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0435\u0439 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u041f\u041a, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0445\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0432 \u0420\u0424.<br \/> \u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043d\u0443\u0436\u0434 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b OpenVPN, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0441\u0442\u043e\u0438\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u0447\u0430\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043a \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0443 \u043e\u0442 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0445 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u0439 &#8212; Xray!<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c IP \u0441 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439. \u0423 \u043c\u0435\u043d\u044f &#8212; Orange Pi, \u0434\u0430\u043b\u0435\u0435 &#8212; <code>Bridge<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f &#8212; <code>Server<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u043d\u0435 \u0420\u0424 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0414\u0430\u043b\u0435\u0435 &#8212; <code>Proxy<\/code><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441. \u0414\u0430\u043b\u0435\u0435 &#8212; <code>Client<\/code><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Linux &#8212;  <a href=\"https:\/\/github.com\/XTLS\/Xray-core\" rel=\"noopener noreferrer nofollow\">Xray-core<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/github.com\/XTLS\/Xray-install\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Xray<\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434 &#8212; <a href=\"https:\/\/github.com\/2dust\/v2rayNG\" rel=\"noopener noreferrer nofollow\">v2rayNG<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0449\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/XTLS\/Xray-core\" rel=\"noopener noreferrer nofollow\">Xray-core<\/a><\/p>\n<p>\u0417\u0430 \u0431\u0430\u0437\u0443 \u0431\u0435\u0440\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <a href=\"https:\/\/github.com\/XTLS\/Xray-examples\/tree\/main\/VLESS-TCP-XTLS-Vision-REALITY\" rel=\"noopener noreferrer nofollow\">VLESS-TCP-XTLS-Vision-REALITY<\/a> \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/xtls.github.io\/en\/config\/\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a> \u043a Xray<\/p>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0434\u043e\u043c\u0435\u043d\u0443 <code>xray.com<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u0432 <code>Bridge<\/code>, \u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 &#8212; \u0432 <code>Proxy<\/code>. \u0417\u0430\u0442\u0435\u043c <code>Bridge<\/code> \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0440\u0430\u0444\u0444\u0438\u043a \u043a <code>Server<\/code>, \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u043b\u0441\u044f \u043a <code>server.xray.com<\/code>.<br \/> \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <\/p>\n<figure class=\"\"><\/figure>\n<blockquote>\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 xray \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 <code>\/usr\/local\/etc\/xray\/config.json<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 \u0447\u0435\u0440\u0435\u0437 <code>systemctl restart xray.service<\/code><\/p>\n<\/blockquote>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xray \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>bash -c \"$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)\" @ install <\/code><\/pre>\n<ol start=\"2\">\n<li>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 <code>443<\/code> \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 <code>ufw<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>ufw allow 443 <\/code><\/pre>\n<ol start=\"3\">\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430  <code>Bridge<\/code> \u0438\u043b\u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>xray x25519 <\/code><\/pre>\n<blockquote>\n<p>\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 xray, \u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 &#8212; \u043a\u043e\u043d\u0444\u0438\u0433 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/p>\n<\/blockquote>\n<ol start=\"4\">\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c <code>UUID<\/code> \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0435\u043c\u0443 <code>shortId<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>xray uuid <\/code><\/pre>\n<blockquote>\n<p><code>UUID<\/code> \u0438 <code>shortId<\/code> \u0437\u0430\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432<br \/> <code>shortId<\/code> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c HEX \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0435 \u0434\u043b\u0438\u043d\u043d\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u043a\u0440\u0430\u0442\u043d\u043e 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>a0<\/code>, <code>b1<\/code>, <code>ff<\/code><\/p>\n<\/blockquote>\n<ol start=\"5\">\n<li>\n<p>\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, <code>UUID<\/code>, <code>shortId<\/code>, \u0445\u043e\u0441\u0442\u043d\u0435\u0439\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>Bridge<\/code> <code>\/usr\/local\/etc\/xray\/config.json<\/code>:<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>`\/usr\/local\/etc\/xray\/config.json`<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> {      \"log\": {          \"loglevel\": \"debug\"      },      \"inbounds\": [\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b          {              \"tag\": \"external\",              \"port\": 443,              \"protocol\": \"vless\",              \"settings\": {                  \"clients\": [                      {                          \"id\": \"client_uuid_0\", \/\/ run `xray uuid` to generate                          \"flow\": \"xtls-rprx-vision\"                      },                      {                          \"id\": \"client_uuid_1\",                          \"flow\": \"xtls-rprx-vision\"                      }                  ],                  \"decryption\": \"none\"              },              \"streamSettings\": {                  \"network\": \"tcp\",                  \"security\": \"reality\",                  \"realitySettings\": {                      \"dest\": \"google.com:443\", \/\/ You can also use `1.1.1.1:443` as dest                      \"serverNames\": [                          \"google.com\" \/\/ If you use `1.1.1.1:443` as dest, then you can leave `serverNames` empty, it is a possible ways to bypass Iran's internet speed restrictions.                      ],                      \"privateKey\": \"bridge_privateKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                      \"shortIds\": [ \/\/ Required, list of shortIds available to clients, can be used to distinguish different clients                          \"client_shortId_0\", \/\/ If this item exists, client shortId can be empty                          \"client_shortId_1\",                          \"0123456789abcdef\" \/\/ 0 to f, length is a multiple of 2, maximum length is 16                      ]                  }              },              \"sniffing\": {                  \"enabled\": true,                  \"destOverride\": [                      \"http\",                      \"tls\",                      \"quic\"                  ],                  \"routeOnly\": true              }          }      ],      \"outbounds\": [          {              \"tag\": \"out\",              \"protocol\": \"freedom\"          },          {              \"tag\": \"neptune4\",              \"protocol\": \"freedom\",              \"settings\": {                  \"redirect\": \"server_lan_ip:0\" \/\/ Forward all traffic to web server              }          }      ],      \"routing\": {          \"rules\": [              {                  \"type\": \"field\",                  \"domain\": [                      \"server.xray.com\"                  ],                  \"outboundTag\": \"server\"              }          ]      }  } <\/code><\/pre>\n<\/div>\n<\/details>\n<ol start=\"6\">\n<li>\n<p>\u0414\u043b\u044f <code>Proxy<\/code>  \u0432\u0441\u0435 \u043f\u043e\u043f\u0440\u043e\u0449\u0435 &#8212; \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, <code>UUID<\/code> \u0438<code>shortId<\/code>:<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>  {       \"log\": {           \"loglevel\": \"debug\"       },       \"inbounds\": [           {               \"tag\": \"proxy\",               \"port\": 443,               \"protocol\": \"vless\",               \"settings\": {                   \"clients\": [                       {                           \"\u044b\u0432\u0444\u044bid\": \"client_uuid_0\", \/\/ run `xray uuid` to generate                           \"flow\": \"xtls-rprx-vision\"                       },                       {                           \"id\": \"client_uuid_1\",                           \"flow\": \"xtls-rprx-vision\"                       }                   ],                   \"decryption\": \"none\"               },               \"streamSettings\": {                   \"network\": \"tcp\",                   \"security\": \"reality\",                   \"realitySettings\": {                       \"dest\": \"google.com:443\", \/\/ You can also use `1.1.1.1:443` as dest                       \"serverNames\": [                           \"google.com\" \/\/ If you use `1.1.1.1:443` as dest, then you can leave `serverNames` empty, it is a possible ways to bypass Iran's internet speed restrictions.                       ],                       \"privateKey\": \"proxy_privateKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                       \"shortIds\": [ \/\/ Required, list of shortIds available to clients, can be used to distinguish different clients                           \"client_shortId_0\", \/\/ If this item exists, client shortId can be empty                           \"client_shortId_1\",                           \"0123456789abcdef\" \/\/ 0 to f, length is a multiple of 2, maximum length is 16                       ]                   }               },               \"sniffing\": {                   \"enabled\": true,                   \"destOverride\": [                       \"http\",                       \"tls\",                       \"quic\"                   ],                   \"routeOnly\": true               }           }       ],       \"outbounds\": [           {\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b               \"protocol\": \"freedom\",               \"tag\": \"direct\"           }       ]   } <\/code><\/pre>\n<\/div>\n<\/details>\n<ol start=\"6\">\n<li>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 <code>xray<\/code> \u043d\u0430 <code>Bridge<\/code> \u0438 <code>Proxy<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code>systemctl restart xray.service <\/code><\/pre>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c<\/h2>\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/> \u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>UUID<\/code>, <code>shortId<\/code>, hostname \u0438\u043b\u0438 ip <code>Proxy<\/code>, <code>Bridge<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043c\u0435\u043d, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0444\u0438\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>\u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>{     \"log\": {         \"loglevel\": \"debug\"     },     \"routing\": {         \"rules\": [             {                 \"type\": \"field\",                 \"domain\": [                     \"xray.com\"                 ],                 \"outboundTag\": \"bridge\"             }         ]     },     \"inbounds\": [         {             \"listen\": \"127.0.0.1\",             \"port\": 10808,             \"protocol\": \"socks\",             \"settings\": {                 \"udp\": true             },             \"sniffing\": {                 \"enabled\": true,                 \"destOverride\": [\u0417\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u0444\u0430\u0439\u043b                     \"http\",                     \"tls\",                     \"quic\"                 ],                 \"routeOnly\": true             }         }     ],     \"outbounds\": [         {             \"protocol\": \"vless\",             \"settings\": {                 \"vnext\": [                     {                         \"address\": \"proxy_hostname_or_ip\",                         \"port\": 443,                         \"users\": [                             {                                 \"id\": \"client_uuid_0\", \/\/ Needs to match server side                                 \"encryption\": \"none\",                                 \"flow\": \"xtls-rprx-vision\"                             }                         ]                     }                 ]             },             \"streamSettings\": {                 \"network\": \"tcp\",                 \"security\": \"reality\",                 \"realitySettings\": {                     \"fingerprint\": \"chrome\",                     \"serverName\": \"google.com\", \/\/ If your dest is `1.1.1.1:443`, then leave it empty                     \"publicKey\": \"proxy_publicKey\", \/\/ run `xray x25519` to generate. Public and private keys need to be corresponding.                     \"spiderX\": \"\", \/\/ If your dest is `1.1.1.1:443`, then you can fill it with `\/dns-query\/` or just leave it empty                     \"shortId\": \"client_shortId_0\" \/\/ Required                 }             },             \"tag\": \"proxy\"         },         {             \"protocol\": \"vless\",             \"settings\": {                 \"vnext\": [                     {                         \"address\": \"bridge_hostname_or_ip\",                         \"port\": 443,                         \"users\": [                             {                                 \"id\": \"client_uuid_0\", \/\/ Needs to match server side                                 \"encryption\": \"none\",                                 \"flow\": \"xtls-rprx-vision\"                             }                         ]                     }                 ]             },             \"streamSettings\": {                 \"network\": \"tcp\",                 \"security\": \"reality\",<\/code><\/pre>\n<\/div>\n<\/details>\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-437586","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/437586","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=437586"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/437586\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}