{"id":1385,"date":"2025-10-23T15:53:12","date_gmt":"2025-10-23T07:53:12","guid":{"rendered":"https:\/\/hali.life\/?p=1385"},"modified":"2025-12-28T03:48:31","modified_gmt":"2025-12-27T19:48:31","slug":"%e5%a6%82%e4%bd%95%e7%bb%99%e6%8b%a5%e6%9c%89%e5%8a%a8%e6%80%81%e4%bd%8f%e5%ae%85ip%e7%9a%84vps%e8%8a%82%e7%82%b9%e6%90%ad%e5%bb%ba%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"https:\/\/hali.life\/?p=1385","title":{"rendered":"\u5982\u4f55\u7ed9\u62e5\u6709\u52a8\u6001\u4f4f\u5b85IP\u7684vps\u8282\u70b9\u642d\u5efa\u4ee3\u7406"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u7b80\u4ecb<\/h1>\n\n\n\n<p>\u5982\u679c\u4f60\u89c2\u5bdf\u8fc7\u6211\u4eec\u5bb6\u91cc\u7684\u5bbd\u5e26IP\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\uff0c\u4ed6\u7684IP\u5730\u5740\u603b\u662f\u5728\u4e0d\u65ad\u7684\u53d8\u52a8\u3002\u8fd9\u4e2a\u53d8\u52a8\u7684\u65f6\u95f4\u95f4\u9694\u6709\u53ef\u80fd\u662f\u51e0\u5929\uff0c\u6709\u53ef\u80fd\u662f\u51e0\u5468\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u51e0\u4e2a\u5c0f\u65f6\u3002\u800c\u4e14\u8fd9\u4e2aIP\u4e5f\u4e0d\u4e00\u5b9a\u662f\u53d8\u6210\u65b0\u7684\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u4e4b\u524d\u5206\u914d\u7ed9\u4f60\u7528\u8fc7\u7684\u3002\u50cf\u8fd9\u79cdIP\u7684\u53d8\u5316\uff0c\u662f\u6211\u4eec\u5bb6\u7528\u5bbd\u5e26\u6700\u5e38\u89c1\u7684\u3002<\/p>\n\n\n\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\u6211\u60f3\u5148\u56de\u7b54\u4e00\u4e2a\u95ee\u9898\uff0c\u8fd0\u8425\u8de8\u5883\u7535\u5546\uff0c\u662f\u9759\u6001\u4f4f\u5b85IP\u597d\uff0c\u8fd8\u662f\u52a8\u6001\u4f4f\u5b85IP\u597d\uff1f\u8fd9\u4e2a\u95ee\u9898\u6ca1\u6709\u7b54\u6848\uff0c\u6211\u8ba4\u4e3a\uff0c\u53ea\u8981\u4f60\u7684IP\u662f\u72ec\u4eab\u7684\uff0c\u65e0\u8bba\u52a8\u9759\uff0c\u90fd\u662f\u597d\u7684\u3002\u6211\u54a8\u8be2\u8fc7 <a href=\"https:\/\/lisahost.com\/aff.php?aff=2457\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u4e3d\u8428\u4e91\uff08\u70b9\u51fb\u8fdb\u5165\u5b98\u7f51\uff09<\/mark><\/strong><\/a> \u7684\u5ba2\u670d\uff0c\u4ed6\u4eec\u7684\u52a8\u6001\u4f4f\u5b85IP\uff0c\u90fd\u662f\u72ec\u4eab\u7684\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u65e0\u8bba\u4f60\u7684\u4ee3\u7406IP\u600e\u4e48\u53d8\u5316\uff0c\u90fd\u53ea\u6709\u4f60\u4e00\u4e2a\u4eba\u518d\u7528\u3002\u5982\u679c\u4f60\u4e70\u7684\u662f\u642d\u5efa\u597d\u7684\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u7684socks5\u7684\u4ee3\u7406\uff0c\u90a38\u6210\u662f\u5171\u4eab\u7684\u3002\u5176\u5b9e\u8bf4\u767d\u4e86\uff0c\u60f3\u7528\u9760\u8c31\u7684\uff0c\u8fd8\u662f\u8981\u81ea\u5df1\u642d\u5efa\u3002\u81ea\u5df1\u52a8\u624b\u4e30\u8863\u8db3\u98df\u554a<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b9e\u73b0\u6d41\u7a0b\u56fe<\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"354\" src=\"https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-1024x354.png\" alt=\"\" class=\"wp-image-1386\" srcset=\"https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-1024x354.png 1024w, https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-300x104.png 300w, https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-768x265.png 768w, https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-520x180.png 520w, https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248-940x325.png 940w, https:\/\/hali.life\/wp-content\/uploads\/2025\/10\/\u4f01\u4e1a\u5fae\u4fe1\u622a\u56fe_20251023110248.png 1225w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">\u6240\u9700\u8d44\u6e90<\/h1>\n\n\n\n<p>1\u3001\u8d2d\u4e70\u4e00\u4e2a\u80fd\u63d0\u4f9b\u52a8\u6001\u4f4f\u5b85IP\u7684vps ===&gt; <a href=\"https:\/\/lisahost.com\/aff.php?aff=2457\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u4e3d\u8428\u4e91\u4e3b\u673a(lisahost \u70b9\u51fb\u8fdb\u5165\u5b98\u7f51)<\/mark><\/strong><\/a><br>2\u3001\u8d2d\u4e70\u4e00\u4e2a\u57df\u540d\u5e76\u6258\u7ba1\u5230 <a href=\"https:\/\/cloudflare.com\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">cloudflare.com<\/mark><\/strong><\/a><br>3\u3001cloudflare_ddns \u811a\u672c\u7528\u6bcf\u96941\u5206\u949f\u67e5\u770b\u4e00\u4e0b\u81ea\u5df1\u7684IP\u662f\u5426\u53d8\u5316\uff0c\u5982\u679c\u53d8\u5316\u4fbf\u901a\u77e5cloudflare\u3002\u811a\u672c\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/pan.quark.cn\/s\/fc7ee0425d24\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">cloudflare_ddns.sh \u4e0b\u8f7d<\/mark><\/strong><\/a><br>4\u3001install \u811a\u672c\u7528\u4e8e\u90e8\u7f72vps xray\u4ee3\u7406\uff0c\u811a\u672c\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/pan.quark.cn\/s\/fc7ee0425d24\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">install.sh \u4e0b\u8f7d<\/mark><\/strong><\/a><br>5\u3001Finalshell \u670d\u52a1\u5668\u8fde\u63a5\u5de5\u5177\u4e0b\u8f7d\uff1a<a href=\"https:\/\/pan.quark.cn\/s\/fc7ee0425d24\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Finalshell \u5b89\u88c5\u5305<\/mark><\/strong><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u89c6\u9891\u6559\u7a0b<\/h1>\n\n\n\n<iframe src=\"\/\/player.bilibili.com\/player.html?bvid=BV1gFs7zCEK1&#038;page=1\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\" style=\"width:100%; height:500px; max-width: 100%\uff1balign:center; margin-left: 60px; \"> <\/iframe>\n\n\n\n<h1 class=\"wp-block-heading\">\u6559\u7a0b\u5f00\u59cb<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u3001\u8d2d\u4e70vps\u548c\u57df\u540d<\/h3>\n\n\n\n<p><a href=\"https:\/\/lisahost.com\/aff.php?aff=2457\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u4e3d\u8428\u4e91VPS(\u70b9\u51fb\u8fdb\u5165\u5b98\u7f51)<\/mark><\/strong><\/a> \u8d2d\u4e70\u7684\u65f6\u5019\uff0c\u9700\u8981\u9009\u62e9 Ubuntu22.04\u7cfb\u7edf\uff0c\u8d2d\u4e70\u540e\u4f7f\u7528Finalshell\u767b\u9646vps\u3002<br>\u767b\u9646Cloudflare =&gt; \u3010\u6ce8\u518c\u57df\u3011 \u9009\u8d2d\u57df\u540d\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e8c\u3001\u914d\u7f6eDDNS<\/h3>\n\n\n\n<p>\u767b\u9646cloudflare =&gt;\u3010\u7ba1\u7406\u57df\u3011=&gt; \u3010\u66f4\u6539DNS\u3011 =&gt; \u3010\u6dfb\u52a0\u8bb0\u5f55\u3011 \u6dfb\u52a0\u52a8\u6001IP\u5176\u4e2d\u7684\u4e00\u4e2aIP\uff0c\u5e76\u4e14\u5173\u95ed\u5c0f\u9ec4\u4e91\u3002\u6b64\u65f6\u5df2\u7ecf\u5b8c\u6210\uff0c\u6211\u4eec\u53ef\u4ee5\u5728vps\u8282\u70b9\u4e2d\u5b89\u88c5\u4e00\u4e2anginx\u6765\u6d4b\u8bd5\u53ef\u5426\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u8282\u70b9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#vps ubuntu \u5b89\u88c5 nginx\n\nsudo apt install -y nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e09\u3001\u5b9a\u65f6\u66f4\u65b0\u811a\u672c<\/h3>\n\n\n\n<p>\u5c06\u3010\u6240\u9700\u7269\u6599\u3011\u4e2d\u7684 cloudflare_ddns.sh \u811a\u672c\u4e0a\u4f20\u81f3vps\u8282\u70b9\u4e2d\uff0c\u66f4\u6539\u4e00\u4e0b\u51e0\u9879\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CF_EMAIL=\"cloudflare\u6ce8\u518c\u90ae\u7bb1\"\nCF_API_KEY=\"\u4f60\u7684APIKEY\"\nZONE_NAME=\"\u4f60\u7684\u57df\u540d\"\nRECORD_NAME=\"\u4f60\u7684\u5b50\u57df\u540d\"<\/code><\/pre>\n\n\n\n<p>APIKEY\u83b7\u53d6\u8def\u5f84\uff1a Cloudflare\u53f3\u4e0a\u89d2\u5934\u50cf =&gt; \u914d\u7f6e\u6587\u4ef6 =&gt; API\u4ee4\u724c =&gt; API \u5bc6\u94a5 =&gt; Global API Key<\/p>\n\n\n\n<p>\u8fd0\u884c\u5b9a\u65f6\u811a\u672c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4fdd\u5b58\u5e76\u6267\u884c\u6743\u9650\nchmod +x \/root\/cloudflare_ddns.sh\n\n# \u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1 1\u5206\u949f\u8fd0\u884c\u4e00\u6b21\n(crontab -l ; echo \"*\/1 * * * * \/root\/cloudflare_ddns.sh &gt;\/dev\/null 2&gt;&amp;1\") | crontab -\n\n# \u6392\u9664windows\u548clinux \u56de\u8f66\u4e0d\u517c\u5bb9\u95ee\u9898\nsudo apt install dos2unix -y &amp;&amp; dos2unix \/root\/cloudflare_ddns.sh  &amp;&amp; bash \/root\/cloudflare_ddns.sh \n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u56db\u3001vps\u8282\u70b9\u4e2d\u642d\u5efaxray\u4ee3\u7406<\/h3>\n\n\n\n<p>\u5c06 install.sh \u811a\u672c\u4f20\u5230vps\u4e2d\uff0c\u53ea\u9700\u4fee\u6539\u4e00\u5904\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>domain=\"haliapp.org\"  # \u2190 \u8fd9\u91cc\u6539\u6210\u4f60\u7684 Cloudflare DDNS \u57df\u540d<\/code><\/pre>\n\n\n\n<p>\u5728\u811a\u672c\u4e2d\u641c\u7d22\uff1a\u201dhaliapp.org\u201c \u66f4\u6362\u6210\u4f60\u7684\u57df\u540d\u5373\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8fd0\u884cxray\u5b89\u88c5\u811a\u672c\nbash install.sh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e94\u3001\u5c06\u8282\u70b9\u4fe1\u606f\u5bfc\u5165OpenClash \u7b49\u4ee3\u7406\u5de5\u5177\u5373\u53ef\u4f7f\u7528\u3002<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><em>\u5982\u679c\u4f60\u9700\u8981\u5e2e\u52a9\u6216\u8005\u6210\u54c1\u8f6f\u8def\u7531\uff0c\u53ef\u4ee5\u5728\u535a\u5ba2\u53f3\u4fa7\u5bfc\u822a\u680f\u8054\u7cfb\u54c8\u5229<\/em><\/mark><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u5982\u679c\u4f60\u89c2\u5bdf\u8fc7\u6211\u4eec\u5bb6\u91cc\u7684\u5bbd\u5e26IP\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\uff0c\u4ed6\u7684IP\u5730\u5740\u603b\u662f\u5728\u4e0d\u65ad\u7684\u53d8\u52a8\u3002\u8fd9\u4e2a\u53d8\u52a8\u7684\u65f6\u95f4\u95f4\u9694\u6709\u53ef\u80fd\u662f\u51e0\u5929&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1390,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"views":6405,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1385"}],"version-history":[{"count":5,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1385\/revisions"}],"predecessor-version":[{"id":1468,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/1385\/revisions\/1468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/media\/1390"}],"wp:attachment":[{"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}