{"id":442592,"date":"2026-04-23T16:16:17","date_gmt":"2026-04-23T08:16:17","guid":{"rendered":"https:\/\/idc.net\/help\/?p=442592"},"modified":"2026-04-18T16:19:25","modified_gmt":"2026-04-18T08:19:25","slug":"%e9%a6%99%e6%b8%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%bav2ray-xray%e6%95%99%e7%a8%8b%ef%bc%9a%e5%ae%89%e5%85%a8%e9%85%8d%e7%bd%ae%e4%b8%8e%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/442592\/","title":{"rendered":"\u9999\u6e2f\u670d\u52a1\u5668\u642d\u5efaV2Ray\/Xray\u6559\u7a0b\uff1a\u5b89\u5168\u914d\u7f6e\u4e0e\u6027\u80fd\u4f18\u5316\u6307\u5357"},"content":{"rendered":"<p>V2Ray \u548c Xray \u662f\u76ee\u524d\u6280\u672f\u793e\u533a\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u88ab\u5f00\u53d1\u8005\u3001\u8fdc\u7a0b\u529e\u516c\u8005\u548c\u4f01\u4e1a IT \u56e2\u961f\u7528\u4e8e\u8bbf\u95ee GitHub\u3001Google Cloud\u3001Stripe \u7b49\u5883\u5916\u670d\u52a1\u3002\u9999\u6e2f\u670d\u52a1\u5668\u56e0\u5ef6\u8fdf\u4f4e\u3001\u7a33\u5b9a\u6027\u597d\uff0c\u662f\u642d\u5efa\u6b64\u7c7b\u4ee3\u7406\u670d\u52a1\u7684\u9996\u9009\u8282\u70b9\u3002\u672c\u6587\u63d0\u4f9b\u5b8c\u6574\u7684\u642d\u5efa\u3001\u5b89\u5168\u914d\u7f6e\u548c\u6027\u80fd\u4f18\u5316\u6d41\u7a0b\u3002<\/p>\n<hr \/>\n<h2>\u4e00\u3001V2Ray \u4e0e Xray \u7684\u533a\u522b<\/h2>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead>\n<tr style=\"background-color: #f5f5f5;\">\n<th>\u5bf9\u6bd4\u9879<\/th>\n<th>V2Ray<\/th>\n<th>Xray<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5173\u7cfb<\/td>\n<td>\u539f\u7248<\/td>\n<td>V2Ray \u7684\u8d85\u96c6\u5206\u652f\uff0c\u5b8c\u5168\u517c\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>XTLS \u534f\u8bae<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u2705 \u652f\u6301\uff0c\u6027\u80fd\u66f4\u9ad8<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u9891\u7387<\/td>\n<td>\u8f83\u6162<\/td>\n<td>\u6d3b\u8dc3\u7ef4\u62a4<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd<\/td>\n<td>\u826f\u597d<\/td>\n<td>\u6bd4 V2Ray \u9ad8\u7ea6 30~50%<\/td>\n<\/tr>\n<tr>\n<td>\u63a8\u8350\u5ea6<\/td>\n<td>\u53ef\u7528<\/td>\n<td>\u2705 2024\u5e74\u540e\u63a8\u8350\u9996\u9009<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u5efa\u8bae\uff1a\u65b0\u90e8\u7f72\u4f18\u5148\u9009\u62e9 Xray<\/strong>\uff0c\u517c\u5bb9\u6240\u6709 V2Ray \u914d\u7f6e\uff0c\u6027\u80fd\u66f4\u5f3a\uff0c\u4e14\u652f\u6301\u6700\u65b0\u7684 VLESS + XTLS-Reality \u534f\u8bae\u3002<\/p>\n<hr \/>\n<h2>\u4e8c\u3001\u670d\u52a1\u5668\u51c6\u5907<\/h2>\n<ul>\n<li>\u9999\u6e2f VPS \u4e00\u53f0\uff08\u63a8\u8350 1\u68382G \u4ee5\u4e0a\uff0cUbuntu 22.04 LTS\uff09<\/li>\n<li>\u5df2\u7ed1\u5b9a\u57df\u540d\uff08\u7528\u4e8e TLS \u8bc1\u4e66\uff0c\u5982 <code>proxy.yourdomain.com<\/code>\uff09<\/li>\n<li>\u670d\u52a1\u5668 80\/443 \u7aef\u53e3\u5df2\u5f00\u653e<\/li>\n<li>SSH \u5df2\u8fde\u63a5<\/li>\n<\/ul>\n<p>\u5148\u786e\u8ba4 VPS IP \u662f\u5426\"\u5e72\u51c0\"\uff08\u672a\u88ab\u6807\u8bb0\uff09\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6d4b\u8bd5\uff1a<\/p>\n<pre><code>curl -I https:\/\/www.google.com<\/code><\/pre>\n<p>\u80fd\u8fd4\u56de HTTP \u54cd\u5e94\u5934\u8bf4\u660e IP \u53ef\u7528\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u3001\u4f7f\u7528\u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u63a8\u8350\u65b0\u624b\uff09<\/h2>\n<p>\u793e\u533a\u7ef4\u62a4\u7684 <strong>233boy \u811a\u672c<\/strong> \u662f\u6700\u5e38\u7528\u7684\u4e00\u952e\u90e8\u7f72\u65b9\u6848\uff0c\u652f\u6301 V2Ray \u548c Xray\uff0c\u542b\u4ea4\u4e92\u5f0f\u914d\u7f6e\u83dc\u5355\uff1a<\/p>\n<pre><code># \u5b89\u88c5 Xray\uff08\u63a8\u8350\uff09\r\nbash &lt;(wget -qO- -o- https:\/\/git.io\/v2ray.sh)<\/code><\/pre>\n<p>\u811a\u672c\u4f1a\u5f15\u5bfc\u4f60\u9009\u62e9\uff1a<\/p>\n<ol>\n<li>\u534f\u8bae\uff08\u63a8\u8350\u9009 VLESS + TCP + TLS \u6216 VLESS + Reality\uff09<\/li>\n<li>\u7aef\u53e3\uff08\u63a8\u8350\u4f7f\u7528 443\uff09<\/li>\n<li>\u57df\u540d\uff08\u7528\u4e8e\u7533\u8bf7 TLS \u8bc1\u4e66\uff09<\/li>\n<li>UUID\uff08\u81ea\u52a8\u751f\u6210\uff0c\u4e5f\u53ef\u81ea\u5b9a\u4e49\uff09<\/li>\n<\/ol>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u811a\u672c\u4f1a\u8f93\u51fa\u5ba2\u6237\u7aef\u914d\u7f6e\u4fe1\u606f\uff08vmess\/vless \u94fe\u63a5\uff09\uff0c\u53ef\u76f4\u63a5\u5bfc\u5165 V2RayN\u3001Clash \u7b49\u5ba2\u6237\u7aef\u3002<\/p>\n<hr \/>\n<h2>\u56db\u3001\u624b\u52a8\u5b89\u88c5 Xray\uff08\u8fdb\u9636\u7528\u6237\uff09<\/h2>\n<h3>Step 1\uff1a\u5b89\u88c5 Xray<\/h3>\n<pre><code>bash -c \"$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)\" @ install<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0cXray \u53ef\u6267\u884c\u6587\u4ef6\u5728 <code>\/usr\/local\/bin\/xray<\/code>\uff0c\u914d\u7f6e\u6587\u4ef6\u5728 <code>\/usr\/local\/etc\/xray\/config.json<\/code>\u3002<\/p>\n<h3>Step 2\uff1a\u914d\u7f6e VLESS + TCP + TLS\uff08\u63a8\u8350\u65b9\u6848\uff09<\/h3>\n<p>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>sudo nano \/usr\/local\/etc\/xray\/config.json<\/code><\/pre>\n<pre><code>{\r\n  \"log\": {\"loglevel\": \"warning\"},\r\n  \"inbounds\": [\r\n    {\r\n      \"port\": 443,\r\n      \"protocol\": \"vless\",\r\n      \"settings\": {\r\n        \"clients\": [{\"id\": \"\u4f60\u7684UUID\", \"level\": 0}],\r\n        \"decryption\": \"none\",\r\n        \"fallbacks\": [{\"dest\": 80}]\r\n      },\r\n      \"streamSettings\": {\r\n        \"network\": \"tcp\",\r\n        \"security\": \"tls\",\r\n        \"tlsSettings\": {\r\n          \"certificates\": [\r\n            {\r\n              \"certificateFile\": \"\/etc\/letsencrypt\/live\/proxy.yourdomain.com\/fullchain.pem\",\r\n              \"keyFile\": \"\/etc\/letsencrypt\/live\/proxy.yourdomain.com\/privkey.pem\"\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    }\r\n  ],\r\n  \"outbounds\": [{\"protocol\": \"freedom\"}]\r\n}<\/code><\/pre>\n<h3>Step 3\uff1a\u7533\u8bf7 SSL \u8bc1\u4e66<\/h3>\n<pre><code>sudo apt install certbot -y\r\nsudo certbot certonly --standalone -d proxy.yourdomain.com<\/code><\/pre>\n<h3>Step 4\uff1a\u542f\u52a8 Xray<\/h3>\n<pre><code>sudo systemctl enable xray\r\nsudo systemctl start xray\r\nsudo systemctl status xray   # \u786e\u8ba4\u8fd0\u884c\u72b6\u6001<\/code><\/pre>\n<hr \/>\n<h2>\u4e94\u3001VLESS + XTLS-Reality\uff08\u6700\u65b0\u9ad8\u7ea7\u65b9\u6848\uff09<\/h2>\n<p>Reality \u662f 2023 \u5e74\u63a8\u51fa\u7684\u6700\u65b0\u4f2a\u88c5\u534f\u8bae\uff0c<strong>\u65e0\u9700\u57df\u540d\u548c SSL \u8bc1\u4e66<\/strong>\uff0c\u76f4\u63a5\u4f2a\u88c5\u6210\u8bbf\u95ee\u4e3b\u6d41\u7f51\u7ad9\uff08\u5982 Microsoft\u3001Cloudflare\uff09\u7684\u6d41\u91cf\uff0c\u9690\u853d\u6027\u6781\u9ad8\u3002<\/p>\n<h3>\u751f\u6210 Reality \u5bc6\u94a5\u5bf9<\/h3>\n<pre><code>xray x25519<\/code><\/pre>\n<p>\u4f1a\u8f93\u51fa <code>Private key<\/code> \u548c <code>Public key<\/code>\uff0c\u8bb0\u5f55\u5907\u7528\u3002<\/p>\n<h3>Reality \u914d\u7f6e\u7247\u6bb5\uff08inbound \u90e8\u5206\uff09<\/h3>\n<pre><code>\"streamSettings\": {\r\n  \"network\": \"tcp\",\r\n  \"security\": \"reality\",\r\n  \"realitySettings\": {\r\n    \"dest\": \"www.microsoft.com:443\",\r\n    \"serverNames\": [\"www.microsoft.com\"],\r\n    \"privateKey\": \"\u4f60\u7684\u79c1\u94a5\",\r\n    \"shortIds\": [\"\u968f\u673a8\u4f4d\u5341\u516d\u8fdb\u5236\"]\r\n  }\r\n}<\/code><\/pre>\n<p>\u5ba2\u6237\u7aef\u914d\u7f6e\u65f6\uff0c\u586b\u5165\u5bf9\u5e94\u7684 <code>publicKey<\/code> \u548c <code>shortId<\/code> \u5373\u53ef\u8fde\u63a5\u3002<\/p>\n<hr \/>\n<h2>\u516d\u3001\u5b89\u5168\u52a0\u56fa\uff1a\u5fc5\u505a\u7684\u9632\u62a4\u63aa\u65bd<\/h2>\n<h3>1. \u4fee\u6539 SSH \u9ed8\u8ba4\u7aef\u53e3<\/h3>\n<pre><code>sudo nano \/etc\/ssh\/sshd_config\r\n# \u627e\u5230 Port 22\uff0c\u6539\u4e3a\u5982 Port 22222\r\nsudo systemctl restart sshd<\/code><\/pre>\n<h3>2. \u5b89\u88c5 fail2ban \u9632\u66b4\u529b\u7834\u89e3<\/h3>\n<pre><code>sudo apt install fail2ban -y\r\nsudo systemctl enable fail2ban\r\nsudo systemctl start fail2ban<\/code><\/pre>\n<h3>3. \u914d\u7f6e UFW \u9632\u706b\u5899\uff0c\u53ea\u5f00\u653e\u5fc5\u8981\u7aef\u53e3<\/h3>\n<pre><code>sudo ufw allow 22222\/tcp   # SSH\uff08\u65b0\u7aef\u53e3\uff09\r\nsudo ufw allow 443\/tcp     # Xray\r\nsudo ufw enable<\/code><\/pre>\n<h3>4. \u5b9a\u671f\u8f6e\u6362 UUID<\/h3>\n<p>\u5efa\u8bae\u6bcf 1~3 \u4e2a\u6708\u66f4\u6362\u4e00\u6b21 UUID\uff0c\u964d\u4f4e\u88ab\u8bc6\u522b\u98ce\u9669\u3002\u66f4\u6362\u540e\u91cd\u542f Xray \u670d\u52a1\uff0c\u5e76\u66f4\u65b0\u5ba2\u6237\u7aef\u914d\u7f6e\u3002<\/p>\n<h3>5. \u907f\u514d\u4f7f\u7528\u975e\u6807\u51c6\u7aef\u53e3\u66b4\u9732\u670d\u52a1<\/h3>\n<p>443 \u7aef\u53e3\u6d41\u91cf\u4e0e\u6b63\u5e38 HTTPS \u6d41\u91cf\u6df7\u5408\uff0c\u4e0d\u6613\u88ab\u8bc6\u522b\u3002\u907f\u514d\u5c06 Xray \u76d1\u542c\u5728 10086\u30019090 \u7b49\"\u4ee3\u7406\u7279\u5f81\"\u660e\u663e\u7684\u7aef\u53e3\u4e0a\u3002<\/p>\n<hr \/>\n<h2>\u4e03\u3001\u6027\u80fd\u4f18\u5316\u5efa\u8bae<\/h2>\n<ul>\n<li><strong>\u5f00\u542f BBR \u62e5\u585e\u63a7\u5236<\/strong>\uff1a\u663e\u8457\u63d0\u5347\u9ad8\u5ef6\u8fdf\u573a\u666f\u4e0b\u7684\u541e\u5410\u91cf\n<pre><code>echo \"net.core.default_qdisc=fq\" | sudo tee -a \/etc\/sysctl.conf\r\necho \"net.ipv4.tcp_congestion_control=bbr\" | sudo tee -a \/etc\/sysctl.conf\r\nsudo sysctl -p<\/code><\/pre>\n<\/li>\n<li><strong>\u589e\u5927\u7cfb\u7edf\u6587\u4ef6\u63cf\u8ff0\u7b26\u9650\u5236<\/strong>\uff1a\u652f\u6301\u66f4\u591a\u5e76\u53d1\u8fde\u63a5\n<pre><code>echo \"* soft nofile 51200\" | sudo tee -a \/etc\/security\/limits.conf\r\necho \"* hard nofile 51200\" | sudo tee -a \/etc\/security\/limits.conf<\/code><\/pre>\n<\/li>\n<li><strong>\u9009\u62e9 VLESS \u534f\u8bae\u800c\u975e VMess<\/strong>\uff1aVLESS \u52a0\u5bc6\u5f00\u9500\u66f4\u4f4e\uff0c\u76f8\u540c\u5e26\u5bbd\u4e0b\u901f\u5ea6\u66f4\u5feb<\/li>\n<\/ul>\n<hr \/>\n<h2>\u516b\u3001\u5e38\u89c1\u5ba2\u6237\u7aef\u63a8\u8350<\/h2>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead>\n<tr style=\"background-color: #f5f5f5;\">\n<th>\u5e73\u53f0<\/th>\n<th>\u63a8\u8350\u5ba2\u6237\u7aef<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Windows<\/td>\n<td>V2RayN<\/td>\n<td>\u529f\u80fd\u5168\u9762\uff0c\u652f\u6301\u6240\u6709\u534f\u8bae<\/td>\n<\/tr>\n<tr>\n<td>macOS<\/td>\n<td>V2RayX \/ Clash for Mac<\/td>\n<td>\u754c\u9762\u7b80\u6d01\uff0c\u64cd\u4f5c\u65b9\u4fbf<\/td>\n<\/tr>\n<tr>\n<td>iOS<\/td>\n<td>Shadowrocket \/ Quantumult X<\/td>\n<td>\u9700\u8981\u7f8e\u533a App Store \u8d26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>Android<\/td>\n<td>V2RayNG<\/td>\n<td>\u5f00\u6e90\u514d\u8d39\uff0c\u652f\u6301\u5bfc\u5165\u5206\u4eab\u94fe\u63a5<\/td>\n<\/tr>\n<tr>\n<td>Linux<\/td>\n<td>v2ray-core\uff08\u547d\u4ee4\u884c\uff09<\/td>\n<td>\u9002\u5408\u670d\u52a1\u5668\u7ea7\u8054\u4f7f\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728\u9999\u6e2f VPS \u4e0a\u642d\u5efa V2Ray \/ Xray \u662f\u4f17\u591a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a IT \u56e2\u961f\u89e3\u51b3\u8de8\u5883\u7f51\u7edc\u8bbf\u95ee\u95ee\u9898\u7684\u4e3b\u6d41\u65b9\u6848\u3002\u6838\u5fc3\u8981\u70b9\uff1a<\/p>\n<ul>\n<li>\ud83d\udd35 <strong>\u65b0\u90e8\u7f72\u4f18\u5148\u9009 Xray<\/strong>\uff0c\u6027\u80fd\u66f4\u5f3a\uff0c\u652f\u6301 Reality \u6700\u65b0\u534f\u8bae<\/li>\n<li>\ud83d\udd12 <strong>\u5b89\u5168\u914d\u7f6e\u4e0d\u80fd\u7701<\/strong>\uff1aTLS\u3001fail2ban\u3001\u9632\u706b\u5899\u7f3a\u4e00\u4e0d\u53ef<\/li>\n<li>\u26a1 <strong>\u5f00\u542f BBR<\/strong>\uff1a\u51e0\u884c\u547d\u4ee4\u5927\u5e45\u63d0\u5347\u5e26\u5bbd\u5229\u7528\u7387<\/li>\n<\/ul>\n<p><a title=\"\u9999\u6e2f\u4e91\u670d\u52a1\u5668\" href=\"https:\/\/idc.net\/cloud-hk\/\">\u540e\u6d6a\u4e91\u9999\u6e2f\u4e91\u670d\u52a1\u5668<\/a>\u63d0\u4f9b CN2 GIA \u4f18\u8d28\u7ebf\u8def\uff0cIP \u8d44\u6e90\u5e72\u51c0\uff0c\u662f\u642d\u5efa V2Ray\/Xray \u7684\u7406\u60f3\u9009\u62e9\u3002\u6700\u4f4e 10 \u5143\/\u6708\uff0c\u652f\u6301\u652f\u4ed8\u5b9d\u4ed8\u6b3e\uff0c\u514d\u5907\u6848\u3001\u514d KYC\uff0c\u8d2d\u4e70\u540e\u5373\u53ef\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>V2Ray \u548c Xray \u662f\u76ee\u524d\u6280\u672f\u793e\u533a\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u88ab\u5f00\u53d1\u8005\u3001\u8fdc\u7a0b\u529e\u516c\u8005\u548c\u4f01\u4e1a IT \u56e2\u961f\u7528\u4e8e\u8bbf\u95ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202757],"tags":[],"class_list":["post-442592","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=442592"}],"version-history":[{"count":1,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442592\/revisions"}],"predecessor-version":[{"id":442593,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442592\/revisions\/442593"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=442592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=442592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=442592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}