{"id":1359,"date":"2026-09-06T18:31:13","date_gmt":"2026-09-06T10:31:13","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/openvpn%e9%85%8d%e7%bd%ae%e5%a4%8d%e6%9d%82%e5%90%97%ef%bc%9a%e9%9b%b6%e5%9f%ba%e7%a1%80%e4%b9%9f%e8%83%bd%e6%90%9e%e5%ae%9a%e7%9a%84%e8%ae%be%e7%bd%ae%e9%80%bb%e8%be%91\/"},"modified":"2026-09-06T18:31:13","modified_gmt":"2026-09-06T10:31:13","slug":"openvpn%e9%85%8d%e7%bd%ae%e5%a4%8d%e6%9d%82%e5%90%97%ef%bc%9a%e9%9b%b6%e5%9f%ba%e7%a1%80%e4%b9%9f%e8%83%bd%e6%90%9e%e5%ae%9a%e7%9a%84%e8%ae%be%e7%bd%ae%e9%80%bb%e8%be%91","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/openvpn%e9%85%8d%e7%bd%ae%e5%a4%8d%e6%9d%82%e5%90%97%ef%bc%9a%e9%9b%b6%e5%9f%ba%e7%a1%80%e4%b9%9f%e8%83%bd%e6%90%9e%e5%ae%9a%e7%9a%84%e8%ae%be%e7%bd%ae%e9%80%bb%e8%be%91\/","title":{"rendered":"OpenVPN\u914d\u7f6e\u590d\u6742\u5417\uff1a\u96f6\u57fa\u7840\u4e5f\u80fd\u641e\u5b9a\u7684\u8bbe\u7f6e\u903b\u8f91"},"content":{"rendered":"<p>OpenVPN \u7684\u914d\u7f6e\u96be\u5ea6\u53d6\u51b3\u4e8e\u4f60\u91c7\u7528\u7684\u5b89\u88c5\u65b9\u5f0f\u3002\u5bf9\u4e8e\u666e\u901a\u7528\u6237\u800c\u8a00\uff0c\u76f4\u63a5\u5bfc\u5165\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u914d\u7f6e\u6587\u4ef6\uff08.ovpn \u6216 .conf\uff09\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u70b9\u51fb\u5bfc\u5165\u5e76\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u5373\u53ef\uff1b\u4f46\u5bf9\u4e8e\u5e0c\u671b\u81ea\u884c\u642d\u5efa\u6216\u4fee\u6539\u53c2\u6570\u7684\u7528\u6237\uff0c<a href=\"https:\/\/www.suannai.link\/blog\/openvpn%e9%85%8d%e7%bd%ae%e6%ad%a5%e9%aa%a4%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e5%88%b0%e8%bf%9e%e6%8e%a5%e9%aa%8c%e8%af%81\/\" target=\"_blank\" rel=\"noopener\">\u914d\u7f6e\u8fc7\u7a0b\u6d89\u53ca\u8bc1\u4e66\u751f\u6210<\/a>\u3001\u5bc6\u94a5\u4ea4\u6362\u3001\u7aef\u53e3\u6620\u5c04\u7b49\u591a\u4e2a\u6280\u672f\u73af\u8282\uff0c\u5177\u6709\u4e00\u5b9a\u95e8\u69db\u3002<\/p>\n<p>\u672c\u6587\u5c06\u62c6\u89e3 OpenVPN \u7684\u6838\u5fc3\u914d\u7f6e\u903b\u8f91\uff0c\u5206\u6790\u5f71\u54cd\u914d\u7f6e\u96be\u5ea6\u7684\u5173\u952e\u56e0\u7d20\uff0c\u5e76\u63d0\u4f9b\u4ece\u201c\u4e00\u952e\u5bfc\u5165\u201d\u5230\u201c\u624b\u52a8\u8c03\u6574\u201d\u7684\u5b8c\u6574\u64cd\u4f5c\u8def\u5f84\uff0c\u5e2e\u52a9\u4f60\u5224\u65ad\u81ea\u8eab\u9700\u6c42\u5e76\u89e3\u51b3\u914d\u7f6e\u4e2d\u5e38\u89c1\u7684\u62a5\u9519\u95ee\u9898\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u6709\u4eba\u89c9\u5f97 OpenVPN \u914d\u7f6e\u590d\u6742\uff1f<\/h2>\n<p>OpenVPN \u4e4b\u6240\u4ee5\u88ab\u8ba4\u4e3a\u914d\u7f6e\u590d\u6742\uff0c\u4e3b\u8981\u6e90\u4e8e\u5176\u5b89\u5168\u67b6\u6784\u7684\u8bbe\u8ba1\u539f\u7406\u3002\u4e0e\u67d0\u4e9b\u53ea\u9700\u586b\u5199 IP \u548c\u7aef\u53e3\u7684\u7b80\u5355\u534f\u8bae\u4e0d\u540c\uff0cOpenVPN \u57fa\u4e8e SSL\/TLS \u534f\u8bae\uff0c\u5f3a\u8c03\u53cc\u5411\u8ba4\u8bc1\uff08Mutual Authentication\uff09\u3002\u8fd9\u610f\u5473\u7740\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u90fd\u9700\u8981\u9a8c\u8bc1\u5bf9\u65b9\u7684\u8eab\u4efd\uff0c\u800c\u975e\u4ec5\u4ec5\u9a8c\u8bc1\u670d\u52a1\u5668\u3002<\/p>\n<p>\u8fd9\u79cd\u673a\u5236\u5e26\u6765\u4e86\u4e24\u4e2a\u4e3b\u8981\u75db\u70b9\uff1a<br \/>\u2022 <strong>\u8bc1\u4e66\u7ba1\u7406\u7e41\u7410<\/strong>\uff1a\u5728\u624b\u52a8\u642d\u5efa\u6216\u9ad8\u7ea7\u914d\u7f6e\u4e2d\uff0c\u9700\u8981\u751f\u6210\u5ba2\u6237\u7aef\u8bc1\u4e66\uff08client.crt\uff09\u3001\u79c1\u94a5\uff08client.key\uff09\u548c\u516c\u94a5\uff08ca.crt\uff09\u3002\u5982\u679c\u8bc1\u4e66\u8fc7\u671f\u3001\u4e0d\u5339\u914d\u6216\u6743\u9650\u8bbe\u7f6e\u9519\u8bef\uff0c\u8fde\u63a5\u4f1a\u76f4\u63a5\u5931\u8d25\u3002<br \/>\u2022 <strong>\u53c2\u6570\u7406\u89e3\u95e8\u69db\u9ad8<\/strong>\uff1a\u914d\u7f6e\u6587\u4ef6\uff08.ovpn\uff09\u4e2d\u5305\u542b\u5927\u91cf\u6307\u4ee4\uff0c\u5982 `proto`\uff08\u534f\u8bae\uff09\u3001`remote`\uff08\u8fdc\u7a0b\u5730\u5740\uff09\u3001`tls-client`\uff08TLS \u5ba2\u6237\u7aef\u6a21\u5f0f\uff09\u7b49\u3002\u4e0d\u61c2\u7f51\u7edc\u57fa\u7840\u7684\u7528\u6237\u5728\u9762\u5bf9\u8fd9\u4e9b\u672f\u8bed\u65f6\u5bb9\u6613\u4ea7\u751f\u56f0\u60d1\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5bf9\u4e8e\u5927\u591a\u6570\u4f7f\u7528\u4ee3\u7406\u8282\u70b9\u670d\u52a1\u7684\u7528\u6237\u6765\u8bf4\uff0c\u8fd9\u4e9b\u5e95\u5c42\u903b\u8f91\u88ab\u5c01\u88c5\u5728\u914d\u7f6e\u6587\u4ef6\u5185\u90e8\u3002\u4f60\u4e0d\u9700\u8981\u7406\u89e3\u6bcf\u4e00\u884c\u4ee3\u7801\u7684\u542b\u4e49\uff0c\u53ea\u9700\u8981\u77e5\u9053\u5982\u4f55\u6b63\u786e\u5bfc\u5165\u548c\u586b\u5199\u51ed\u8bc1\u5373\u53ef\u3002<\/p>\n\n<h2>\u5c0f\u767d\u7528\u6237\uff1a\u5982\u4f55\u5feb\u901f\u5b8c\u6210\u914d\u7f6e\uff08\u63a8\u8350\u8def\u5f84\uff09<\/h2>\n<p>\u5982\u679c\u4f60\u4e0d\u662f\u7f51\u7edc\u5de5\u7a0b\u5e08\uff0c\u4e5f\u4e0d\u6253\u7b97\u81ea\u884c\u642d\u5efa\u670d\u52a1\u5668\uff0c<strong>\u5f3a\u70c8\u5efa\u8bae\u91c7\u7528\u201c\u914d\u7f6e\u6587\u4ef6\u5bfc\u5165\u6cd5\u201d<\/strong>\u3002\u8fd9\u662f\u76ee\u524d\u6700\u4e3b\u6d41\u3001\u9519\u8bef\u7387\u6700\u4f4e\u7684\u914d\u7f6e\u65b9\u5f0f\u3002<\/p>\n<h3>\u7b2c\u4e00\u6b65\uff1a\u83b7\u53d6\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u4ece\u4f60\u7684\u670d\u52a1\u63d0\u4f9b\u5546\u5904\u83b7\u53d6 OpenVPN \u914d\u7f6e\u6587\u4ef6\u3002\u901a\u5e38\u683c\u5f0f\u4e3a `.ovpn` \u6216 `.conf`\u3002\u90e8\u5206\u670d\u52a1\u5546\u53ef\u80fd\u8fd8\u4f1a\u63d0\u4f9b\u5355\u72ec\u7684\u8bc1\u4e66\u6587\u4ef6\uff08ca.crt\u3001client.crt \u7b49\uff09\uff0c\u8fd9\u4e9b\u6587\u4ef6\u901a\u5e38\u6253\u5305\u5728 ZIP \u538b\u7f29\u5305\u4e2d\u3002<\/p>\n<h3>\u7b2c\u4e8c\u6b65\uff1a\u9009\u62e9\u5ba2\u6237\u7aef\u8f6f\u4ef6<\/h3>\n<p>OpenVPN \u672c\u8eab\u662f\u4e00\u4e2a\u5f00\u6e90\u534f\u8bae\uff0c\u4f60\u9700\u8981\u5b89\u88c5\u652f\u6301\u8be5\u534f\u8bae\u7684\u5ba2\u6237\u7aef\u8f6f\u4ef6\u3002<br \/>* <strong>Windows\/Mac<\/strong>\uff1a\u63a8\u8350\u4f7f\u7528\u5b98\u65b9\u5ba2\u6237\u7aef <strong>OpenVPN Connect<\/strong>\uff0c\u6216\u8005\u529f\u80fd\u66f4\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5de5\u5177\u5982 <strong>OpenVPN GUI<\/strong>\uff08Windows\uff09\u6216 <strong>Tunnelblick<\/strong>\uff08Mac\uff09\u3002<br \/>* <strong>iOS\/Android<\/strong>\uff1a\u63a8\u8350\u4f7f\u7528 <strong>OpenVPN Connect<\/strong> \u5b98\u65b9\u5e94\u7528\uff0c\u6216\u652f\u6301\u5bfc\u5165 OpenVPN \u914d\u7f6e\u6587\u4ef6\u7684\u7b2c\u4e09\u65b9\u5e94\u7528\uff08\u5982 <strong>OpenVPN for Android<\/strong>\uff09\u3002<\/p>\n<h3>\u7b2c\u4e09\u6b65\uff1a\u5bfc\u5165\u914d\u7f6e<\/h3>\n<p>\u2022 \u6253\u5f00\u5ba2\u6237\u7aef\u8f6f\u4ef6\uff0c\u627e\u5230\u201c\u5bfc\u5165\u201d\u6216\u201cAdd Profile\u201d\u9009\u9879\u3002<br \/>\u2022 \u9009\u62e9\u4f60\u4e0b\u8f7d\u7684\u6587\u4ef6\uff08.ovpn \u6216 ZIP \u5305\uff09\u3002<br \/>\u2022 \u5982\u679c\u6587\u4ef6\u5305\u542b\u8bc1\u4e66\uff0c\u8f6f\u4ef6\u901a\u5e38\u4f1a\u81ea\u52a8\u8bc6\u522b\u5e76\u5173\u8054\uff1b\u5982\u679c\u63d0\u793a\u7f3a\u5c11\u8bc1\u4e66\uff0c\u8bf7\u624b\u52a8\u9009\u62e9\u5bf9\u5e94\u7684 .crt \u6587\u4ef6\u3002<br \/>\u2022 \u5728\u5f39\u51fa\u7684\u767b\u5f55\u6846\u4e2d\uff0c\u8f93\u5165\u670d\u52a1\u5546\u63d0\u4f9b\u7684<strong>\u7528\u6237\u540d<\/strong>\u548c<strong>\u5bc6\u7801<\/strong>\u3002\u6ce8\u610f\uff1aOpenVPN \u901a\u5e38\u4f7f\u7528\u72ec\u7acb\u7684\u8d26\u53f7\u5bc6\u7801\u4f53\u7cfb\uff0c\u800c\u975e\u8ba2\u9605\u94fe\u63a5\u3002<\/p>\n<h3>\u7b2c\u56db\u6b65\uff1a\u8fde\u63a5\u4e0e\u9a8c\u8bc1<\/h3>\n<p>\u70b9\u51fb\u8fde\u63a5\u3002\u5982\u679c\u914d\u7f6e\u6b63\u786e\uff0c\u72b6\u6001\u680f\u4f1a\u663e\u793a\u201cConnected\u201d\u3002\u6b64\u65f6\uff0c\u4f60\u7684\u6d41\u91cf\u5df2\u7ecf\u901a\u8fc7 OpenVPN \u96a7\u9053\u52a0\u5bc6\u4f20\u8f93\u3002<\/p>\n<p><strong>\u5173\u952e\u70b9<\/strong>\uff1a\u6b64\u65b9\u6cd5\u65e0\u9700\u914d\u7f6e\u7aef\u53e3\u3001IP \u6216\u8bc1\u4e66\u8def\u5f84\uff0c\u590d\u6742\u5ea6\u6781\u4f4e\uff0c\u9002\u5408 90% \u4ee5\u4e0a\u7684\u666e\u901a\u7528\u6237\u3002<\/p>\n<h2>\u8fdb\u9636\u7528\u6237\uff1a\u5982\u4f55\u624b\u52a8\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1f<\/h2>\n<p>\u5f53\u4f60\u9047\u5230\u8fde\u63a5\u4e0d\u7a33\u5b9a\u3001\u9700\u8981\u5207\u6362\u534f\u8bae\uff08TCP\/UDP\uff09\u6216\u4f18\u5316\u901f\u5ea6\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u7f16\u8f91 .ovpn \u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u914d\u7f6e\u6587\u4ef6\u4e2d\u5fc5\u987b\u5173\u6ce8\u7684\u6838\u5fc3\u53c2\u6570\u53ca\u5176\u4f5c\u7528\u3002<\/p>\n<h3>1. \u534f\u8bae\u9009\u62e9\uff1aTCP vs UDP<\/h3>\n<p>OpenVPN \u652f\u6301 TCP \u548c UDP \u4e24\u79cd\u4f20\u8f93\u534f\u8bae\u3002<br \/>* <strong>UDP<\/strong>\uff1a\u9ed8\u8ba4\u63a8\u8350\u3002\u901f\u5ea6\u5feb\u3001\u5ef6\u8fdf\u4f4e\u3001\u5f00\u9500\u5c0f\uff0c\u9002\u5408\u89c6\u9891\u6d41\u5a92\u4f53\u548c\u5b9e\u65f6\u901a\u4fe1\u3002<br \/>* <strong>TCP<\/strong>\uff1a\u7a33\u5b9a\u6027\u9ad8\uff0c\u4e0d\u6613\u4e22\u5305\uff0c\u9002\u5408\u7f51\u7edc\u73af\u5883\u6781\u5dee\u6216\u9700\u8981\u7a7f\u900f\u4e25\u683c\u9632\u706b\u5899\u7684\u573a\u666f\u3002<\/p>\n<p><strong>\u4fee\u6539\u65b9\u6cd5<\/strong>\uff1a<br \/>\u627e\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 `proto udp` \u6216 `proto tcp` \u884c\u3002<br \/>* \u5982\u679c\u5f53\u524d\u662f `proto udp` \u4e14\u8fde\u63a5\u4e0d\u7a33\u5b9a\uff0c\u5c1d\u8bd5\u6539\u4e3a `proto tcp`\u3002<br \/>* \u5982\u679c\u5f53\u524d\u662f `proto tcp` \u4e14\u901f\u5ea6\u6781\u6162\uff0c\u5c1d\u8bd5\u6539\u4e3a `proto udp`\u3002<br \/>* \u6ce8\u610f\uff1a\u90e8\u5206\u670d\u52a1\u5546\u53ef\u80fd\u53ea\u5f00\u653e\u4e86\u5176\u4e2d\u4e00\u79cd\u534f\u8bae\uff0c\u4fee\u6539\u540e\u82e5\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u6062\u590d\u539f\u72b6\u6216\u54a8\u8be2\u670d\u52a1\u5546\u3002<\/p>\n<h3>2. \u7aef\u53e3\u8bbe\u7f6e<\/h3>\n<p>\u9ed8\u8ba4 OpenVPN \u4f7f\u7528 <strong>1194<\/strong> \u7aef\u53e3\u3002\u4f46\u5728\u7f51\u7edc\u5c01\u9501\u4e25\u683c\u7684\u73af\u5883\u4e2d\uff0c\u8be5\u7aef\u53e3\u5e38\u88ab\u5e72\u6270\u3002<br \/>* <strong>\u5e38\u89c1\u7aef\u53e3<\/strong>\uff1a443\uff08HTTPS \u9ed8\u8ba4\u7aef\u53e3\uff0c\u4f2a\u88c5\u6027\u597d\uff09\u300180\uff08HTTP \u9ed8\u8ba4\u7aef\u53e3\uff09\u30011194\u3002<br \/>* <strong>\u4fee\u6539\u65b9\u6cd5<\/strong>\uff1a\u627e\u5230 `port 1194` \u884c\uff0c\u5c06\u5176\u6539\u4e3a\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u5176\u4ed6\u7aef\u53e3\uff08\u5982 443\uff09\u3002\u540c\u65f6\uff0c\u786e\u4fdd `proto` \u4e0e\u7aef\u53e3\u5339\u914d\uff08\u4f8b\u5982 443 \u7aef\u53e3\u901a\u5e38\u914d\u5408 TCP \u4f7f\u7528\uff09\u3002<\/p>\n<h3>3. \u8fdc\u7a0b\u5730\u5740\uff08Remote\uff09<\/h3>\n<p>`remote` \u6307\u4ee4\u6307\u5b9a\u4e86\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u6216\u57df\u540d\u3002<br \/>* <strong>\u591a\u884c Remote<\/strong>\uff1a\u67d0\u4e9b\u914d\u7f6e\u6587\u4ef6\u5305\u542b\u591a\u884c `remote` \u6307\u4ee4\uff0c\u7528\u4e8e\u8f6e\u8be2\u5907\u7528\u670d\u52a1\u5668\u3002\u4f60\u53ef\u4ee5\u624b\u52a8\u6ce8\u91ca\u6389\uff08\u5728\u884c\u9996\u52a0 `#`\uff09\u4e0d\u9700\u8981\u7684\u670d\u52a1\u5668\uff0c\u53ea\u4fdd\u7559\u4e00\u4e2a\u4f60\u6d4b\u8bd5\u8fc7\u53ef\u7528\u7684\u5730\u5740\uff0c\u4ee5\u52a0\u5feb\u8fde\u63a5\u901f\u5ea6\u3002<br \/>* <strong>\u683c\u5f0f<\/strong>\uff1a`remote IP\u5730\u5740 \u7aef\u53e3 proto`<\/p>\n<h3>4. \u8bc1\u4e66\u4e0e\u5bc6\u94a5\u8def\u5f84<\/h3>\n<p>\u5728\u624b\u52a8\u914d\u7f6e\u4e2d\uff0c\u5fc5\u987b\u660e\u786e\u6307\u5b9a\u8bc1\u4e66\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002<br \/>* `ca ca.crt`\uff1a\u6307\u5411\u6839\u8bc1\u4e66\u6587\u4ef6\u3002<br \/>* `cert client.crt`\uff1a\u6307\u5411\u5ba2\u6237\u7aef\u8bc1\u4e66\u6587\u4ef6\u3002<br \/>* `key client.key`\uff1a\u6307\u5411\u5ba2\u6237\u7aef\u79c1\u94a5\u6587\u4ef6\u3002<br \/>* <strong>\u6ce8\u610f<\/strong>\uff1a\u6587\u4ef6\u8def\u5f84\u5fc5\u987b\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u6216\u786e\u4fdd\u5ba2\u6237\u7aef\u8f6f\u4ef6\u5728\u6b63\u786e\u7684\u76ee\u5f55\u4e0b\u8bfb\u53d6\u3002<\/p>\n<h2>\u914d\u7f6e\u5931\u8d25\uff1f\u6392\u67e5\u8fd9 4 \u4e2a\u5e38\u89c1\u539f\u56e0<\/h2>\n<p>\u5373\u4f7f\u5bfc\u5165\u914d\u7f6e\uff0c\u4e5f\u53ef\u80fd\u9047\u5230\u8fde\u63a5\u5931\u8d25\u3002\u8bf7\u6309\u4ee5\u4e0b\u987a\u5e8f\u6392\u67e5\uff1a<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u6545\u969c\u73b0\u8c61<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u53ef\u80fd\u539f\u56e0<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u89e3\u51b3\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>Connection Refused<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u670d\u52a1\u5668\u5730\u5740\u9519\u8bef\u3001\u7aef\u53e3\u88ab\u5c01\u3001\u9632\u706b\u5899\u62e6\u622a<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5 IP \u548c\u7aef\u53e3\u662f\u5426\u6b63\u786e\uff1b\u5c1d\u8bd5\u66f4\u6362\u7aef\u53e3\uff08\u5982 443\uff09\uff1b\u5173\u95ed\u672c\u5730\u9632\u706b\u5899\u6d4b\u8bd5\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>TLS Handshake Failed<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8bc1\u4e66\u8fc7\u671f\u3001\u8bc1\u4e66\u4e0d\u5339\u914d\u3001\u65f6\u95f4\u4e0d\u540c\u6b65<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">1. \u66f4\u65b0\u8bc1\u4e66\u6587\u4ef6\uff1b2. \u68c0\u67e5\u7535\u8111\u7cfb\u7edf\u65f6\u95f4\u662f\u5426\u51c6\u786e\uff1b3. \u786e\u8ba4\u4f7f\u7528\u7684\u8d26\u53f7\u5bc6\u7801\u662f\u5426\u6b63\u786e\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>Authentication Failed<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef\u3001\u8d26\u53f7\u6b20\u8d39<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u91cd\u65b0\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\uff1b\u8054\u7cfb\u670d\u52a1\u5546\u786e\u8ba4\u8d26\u53f7\u72b6\u6001\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>DNS Leak \/ \u65e0\u6cd5\u8bbf\u95ee\u5916\u7f51<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">DNS \u8bbe\u7f6e\u672a\u8ddf\u968f\u96a7\u9053\u3001IPv6 \u6cc4\u9732<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5728\u5ba2\u6237\u7aef\u8bbe\u7f6e\u4e2d\u542f\u7528\u201cUse Remote DNS\u201d\uff1b\u7981\u7528 IPv6 \u6d4b\u8bd5\uff1b\u68c0\u67e5\u672c\u5730 DNS \u8bbe\u7f6e\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>\u7279\u522b\u63d0\u793a\uff1a\u65f6\u95f4\u540c\u6b65\u95ee\u9898<\/h3>\n<p>OpenVPN \u5bf9\u65f6\u95f4\u654f\u611f\u3002\u5982\u679c\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u65f6\u95f4\u504f\u5dee\u8d85\u8fc7 2-3 \u5206\u949f\uff0cTLS \u63e1\u624b\u4f1a\u5931\u8d25\u3002\u8bf7\u786e\u4fdd\u4f60\u7684\u8bbe\u5907\u5df2\u5f00\u542f\u201c\u81ea\u52a8\u8bbe\u7f6e\u65f6\u95f4\u201d\u3002<\/p>\n<h2>OpenVPN \u4e0e\u5176\u4ed6\u534f\u8bae\u914d\u7f6e\u7684\u5bf9\u6bd4<\/h2>\n<p>\u5728\u9009\u62e9\u914d\u7f6e\u65b9\u6848\u65f6\uff0c\u4e86\u89e3 OpenVPN \u4e0e V2Ray\u3001Shadowsocks \u7b49\u534f\u8bae\u7684\u914d\u7f6e\u5dee\u5f02\u6709\u52a9\u4e8e\u505a\u51fa\u51b3\u7b56\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u7279\u6027<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">OpenVPN<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">V2Ray \/ Xray<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">Shadowsocks (SS)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>\u914d\u7f6e\u590d\u6742\u5ea6<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e2d\uff08\u9700\u7ba1\u7406\u8bc1\u4e66\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9ad8\uff08JSON \u7ed3\u6784\u590d\u6742\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4f4e\uff08\u4ec5\u9700 IP\/\u7aef\u53e3\/\u5bc6\u7801\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>\u5b89\u5168\u6027<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u6781\u9ad8\uff08\u4f01\u4e1a\u7ea7\u52a0\u5bc6\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9ad8\uff08\u53ef\u6df7\u6dc6\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e2d\uff08\u52a0\u5bc6\u5f3a\u5ea6\u4f9d\u8d56\u7b97\u6cd5\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>\u517c\u5bb9\u6027<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5e7f\u6cdb\uff08\u539f\u751f\u652f\u6301\u591a\u5e73\u53f0\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u4e13\u7528\u5ba2\u6237\u7aef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5e7f\u6cdb\uff08\u8f7b\u91cf\u7ea7\u5ba2\u6237\u7aef\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>\u6297\u5c01\u9501\u80fd\u529b<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e2d\uff08\u7aef\u53e3\u6613\u88ab\u8bc6\u522b\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9ad8\uff08\u652f\u6301 WS\/TLS \u7b49\u6df7\u6dc6\uff09<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4e2d<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\"><strong>\u9002\u7528\u573a\u666f<\/strong><\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u5bf9\u5b89\u5168\u6027\u8981\u6c42\u6781\u9ad8\u3001\u4f01\u4e1a\u5185\u7f51<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u8981\u9ad8\u9690\u853d\u6027\u3001\u591a\u8282\u70b9\u8d1f\u8f7d\u5747\u8861<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8ffd\u6c42\u7b80\u5355\u3001\u5feb\u901f\u914d\u7f6e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u7ed3\u8bba<\/strong>\uff1a<br \/>* \u5982\u679c\u4f60\u8ffd\u6c42<strong>\u6781\u81f4\u5b89\u5168\u548c\u6807\u51c6\u5316<\/strong>\uff0c\u4e14\u613f\u610f\u5904\u7406\u8bc1\u4e66\uff0cOpenVPN \u662f\u9996\u9009\u3002<br \/>* \u5982\u679c\u4f60\u8ffd\u6c42<strong>\u914d\u7f6e\u7b80\u5355\u3001\u901f\u5ea6\u5feb<\/strong>\uff0c\u4e14\u7f51\u7edc\u73af\u5883\u5141\u8bb8\uff0cV2Ray \u6216 Shadowsocks \u7684\u914d\u7f6e\u95e8\u69db\u66f4\u4f4e\u3002<br \/>* \u5982\u679c\u4f60\u5728\u7f51\u7edc\u5c01\u9501\u4e25\u91cd\u7684\u73af\u5883\u4e2d\uff0cOpenVPN \u53ef\u80fd\u9700\u8981\u914d\u5408\u6df7\u6dc6\u63d2\u4ef6\uff08\u5982 `plugin \/usr\/lib\/openvpn\/plugins\/openvpn3-plugin-obfsproxy.so`\uff0c\u9700\u670d\u52a1\u5546\u652f\u6301\uff09\u624d\u80fd\u4f7f\u7528\u3002<\/p>\n<h2>\u603b\u7ed3\uff1aOpenVPN \u914d\u7f6e\u771f\u7684\u96be\u5417\uff1f<\/h2>\n<p><strong>\u5bf9\u4e8e\u666e\u901a\u7528\u6237\uff1a\u4e0d\u96be\u3002<\/strong><br \/>\u53ea\u8981\u638c\u63e1\u201c\u5bfc\u5165\u914d\u7f6e\u6587\u4ef6 + \u586b\u5199\u8d26\u53f7\u5bc6\u7801\u201d\u8fd9\u4e00\u6838\u5fc3\u6b65\u9aa4\uff0cOpenVPN \u7684\u914d\u7f6e\u96be\u5ea6\u7b49\u540c\u4e8e\u6ce8\u518c\u4e00\u4e2a\u7f51\u7ad9\u8d26\u53f7\u3002\u4f60\u65e0\u9700\u5173\u5fc3\u80cc\u540e\u7684\u52a0\u5bc6\u7b97\u6cd5\u6216\u8bc1\u4e66\u8def\u5f84\u3002<\/p>\n<p><strong>\u5bf9\u4e8e\u8fdb\u9636\u7528\u6237\uff1a\u6709\u6311\u6218\u4f46\u53ef\u63a7\u3002<\/strong><br \/>\u624b\u52a8\u914d\u7f6e\u6d89\u53ca\u7f51\u7edc\u534f\u8bae\u3001\u8bc1\u4e66\u7ba1\u7406\u548c\u9632\u706b\u5899\u89c4\u5219\u3002\u4f46\u901a\u8fc7\u7406\u89e3 `proto`\u3001`port` \u548c `remote` \u8fd9\u4e09\u4e2a\u6838\u5fc3\u53c2\u6570\uff0c\u4f60\u53ef\u4ee5\u89e3\u51b3 90% \u7684\u8fde\u63a5\u95ee\u9898\u3002<\/p>\n<p><strong>\u5efa\u8bae<\/strong>\uff1a<br \/>\u2022 <strong>\u4f18\u5148\u4f7f\u7528\u5b98\u65b9\u5ba2\u6237\u7aef<\/strong>\uff0c\u907f\u514d\u4f7f\u7528\u7b2c\u4e09\u65b9\u4fee\u6539\u7248\u8f6f\u4ef6\uff0c\u4ee5\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u3002<br \/>\u2022 <strong>\u5b9a\u671f\u66f4\u65b0\u8bc1\u4e66<\/strong>\uff0c\u9632\u6b62\u56e0\u8bc1\u4e66\u8fc7\u671f\u5bfc\u81f4\u8fde\u63a5\u4e2d\u65ad\u3002<br \/>\u2022 <strong>\u4fdd\u7559\u539f\u59cb\u914d\u7f6e\u6587\u4ef6\u5907\u4efd<\/strong>\uff0c\u4ee5\u4fbf\u5728\u4fee\u6539\u51fa\u9519\u65f6\u5feb\u901f\u6062\u590d\u3002<br \/>\u2022 <strong>\u4e0d\u8981\u76f2\u76ee\u8ffd\u6c42\u590d\u6742\u914d\u7f6e<\/strong>\uff0c\u5982\u679c\u5bfc\u5165\u914d\u7f6e\u80fd\u6b63\u5e38\u4e0a\u7f51\uff0c\u65e0\u9700\u624b\u52a8\u4fee\u6539\u53c2\u6570\u3002<\/p>\n<p>OpenVPN \u7684\u5f3a\u5927\u5728\u4e8e\u5176\u7075\u6d3b\u6027\u548c\u5b89\u5168\u6027\uff0c\u4f46\u8fd9\u79cd\u7075\u6d3b\u6027\u4e5f\u5e26\u6765\u4e86\u914d\u7f6e\u4e0a\u7684\u591a\u6837\u6027\u3002\u6839\u636e\u4f60\u7684\u6280\u672f\u80cc\u666f\u9009\u62e9\u5408\u9002\u7684\u914d\u7f6e\u65b9\u5f0f\uff0c\u624d\u80fd\u6700\u5927\u5316\u5176\u4ef7\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenVPN \u7684\u914d\u7f6e\u96be\u5ea6\u53d6\u51b3\u4e8e\u4f60\u91c7\u7528\u7684\u5b89\u88c5\u65b9\u5f0f\u3002\u5bf9\u4e8e\u666e\u901a\u7528\u6237\u800c\u8a00\uff0c\u76f4\u63a5\u5bfc\u5165\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u914d\u7f6e\u6587\u4ef6\uff08.ovpn  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1359","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/comments?post=1359"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1359\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=1359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=1359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=1359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}