{"id":354,"date":"2026-01-29T03:45:53","date_gmt":"2026-01-29T08:45:53","guid":{"rendered":"https:\/\/mliaomcx.com\/?p=354"},"modified":"2026-01-30T08:11:12","modified_gmt":"2026-01-30T13:11:12","slug":"linux-%e7%8e%a9%e8%bd%ac-cloudflare-%e4%bc%98%e9%80%89-ip%ef%bc%9a%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e7%9a%84%e5%ae%9e%e6%93%8d%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/mliaomcx.com\/en\/linux-%e7%8e%a9%e8%bd%ac-cloudflare-%e4%bc%98%e9%80%89-ip%ef%bc%9a%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e7%9a%84%e5%ae%9e%e6%93%8d%e6%8c%87%e5%8d%97\/","title":{"rendered":"\u300a Cloudflare \u4f18\u9009 IP\uff1a\u4ece\u96f6\u5f00\u59cb\u7684\u5b9e\u64cd\u6307\u5357\u300b"},"content":{"rendered":"<p>\u5728 Linux \u670d\u52a1\u5668\uff08VPS\uff09\u6216\u8f6f\u8def\u7531\uff08OpenWrt\/\u8f6f\u8def\u7531 Docker\uff09\u4e0a\u4f7f\u7528 Cloudflare CDN \u65f6\uff0c\u7531\u4e8e\u7ebf\u8def\u62e5\u5835\uff0c\u901f\u5ea6\u5f80\u5f80\u4e0d\u5c3d\u5982\u4eba\u610f\u3002<\/p>\n\n\n\n<p>\u672c\u6587\u57fa\u4e8e\u5f00\u6e90\u9879\u76ee <strong><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/XIU2\/CloudflareSpeedTest\">CloudflareSpeedTest<\/a><\/strong>\uff0c\u4e3a\u4f60\u63d0\u4f9b\u4e00\u4efd<strong>\u6700\u5168\u3001\u6700\u5feb\u3001\u6700\u9002\u5408\u56fd\u5185\u7f51\u7edc\u73af\u5883<\/strong>\u7684\u4f18\u9009 IP \u5b9e\u64cd\u811a\u672c\u3002\u65e0\u8bba\u4f60\u662f\u7b2c\u4e00\u6b21\u4f7f\u7528\uff0c\u8fd8\u662f\u9700\u8981\u66f4\u65b0\u7248\u672c\uff0c\u76f4\u63a5\u6284\u4f5c\u4e1a\u5373\u53ef\uff01<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f \u7b2c\u4e00\u6b65\uff1a\u786e\u8ba4\u7cfb\u7edf\u67b6\u6784<\/h2>\n\n\n\n<p>\u5728\u4e0b\u8f7d\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u786e\u8ba4\u4f60\u7684 Linux \u7cfb\u7edf\u662f <code>amd64<\/code>\uff08\u5e38\u89c1\u4e8e\u666e\u901a\u670d\u52a1\u5668\u3001PC\uff09\u8fd8\u662f <code>arm64<\/code>\uff08\u5e38\u89c1\u4e8e\u6811\u8393\u6d3e\u3001N1 \u76d2\u5b50\u3001\u90e8\u5206\u8f6f\u8def\u7531\uff09\u3002<\/p>\n\n\n\n<p>\u5728\u7ec8\u7aef\u8f93\u5165\uff1auname -m<\/p>\n\n\n\n<p>\u5982\u679c\u663e\u793a <code>x86_64<\/code> -&gt; \u8bf7\u4e0b\u8f7d <strong>amd64<\/strong> \u7248\u672c\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u663e\u793a <code>aarch64<\/code> -&gt; \u8bf7\u4e0b\u8f7d <strong>arm64<\/strong> \u7248\u672c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1a\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff08\u56fd\u5185\u52a0\u901f\u7248\uff09<\/h2>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406\uff0c\u5efa\u8bae\u5c06\u5de5\u5177\u653e\u5728\u72ec\u7acb\u7684\u6587\u4ef6\u5939\u4e2d\u3002\u4ee5\u4e0b\u547d\u4ee4\u5305\u542b\u4e86<strong>\u56fd\u5185\u955c\u50cf\u6e90<\/strong>\uff0c\u89e3\u51b3\u4e86 GitHub \u4e0b\u8f7d\u6162\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccb \u4e00\u952e\u64cd\u4f5c\u811a\u672c<\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u4e0b\u65b9\u4ee3\u7801\u5757\u5e76\u5728\u7ec8\u7aef\u8fd0\u884c\uff1a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u521b\u5efa\u5e76\u8fdb\u5165\u6587\u4ef6\u5939<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">(\u5982\u679c\u662f\u66f4\u65b0\u7248\u672c\uff0c\u8df3\u8fc7 mkdir\uff0c\u76f4\u63a5 cd \u5373\u53ef)<\/h2>\n\n\n\n<p>mkdir -p cfst<br>cd cfst<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u4e0b\u8f7d\u538b\u7f29\u5305<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">&#8212; \u8bf4\u660e\uff1a\u8bf7\u6839\u636e\u4f60\u7684\u67b6\u6784\u9009\u62e9\u4e0b\u9762\u7684\u4e00\u6761\u547d\u4ee4 &#8212;<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u3010\u65b9\u5f0f A\uff1aGitHub \u76f4\u8fde\u4e0b\u8f7d (\u9002\u5408\u56fd\u5916 VPS)\u3011<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">AMD64 \u67b6\u6784:<\/h2>\n\n\n\n<p>wget -N https:\/\/github.com\/XIU2\/CloudflareSpeedTest\/releases\/download\/v2.3.4\/cfst_linux_amd64.tar.gz<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ARM64 \u67b6\u6784:<\/h2>\n\n\n\n<p>wget -N https:\/\/github.com\/XIU2\/CloudflareSpeedTest\/releases\/download\/v2.3.4\/cfst_linux_arm64.tar.gz<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u65b9\u5f0f B\uff1a\u56fd\u5185\u955c\u50cf\u52a0\u901f\u4e0b\u8f7d (\u9002\u5408\u56fd\u5185\u670d\u52a1\u5668\/\u5bb6\u5ead\u5bbd\u5e26)\u3011<\/h3>\n\n\n\n<p>\u63a8\u8350\u4f9d\u6b21\u5c1d\u8bd5\uff0c\u5982\u679c\u7b2c\u4e00\u4e2a\u4e0b\u8f7d\u5931\u8d25\uff0c\u5c1d\u8bd5\u4e0b\u4e00\u4e2a\uff1a<\/p>\n\n\n\n<p>AMD64 \u67b6\u6784\u793a\u4f8b (\u5982\u9700 ARM64 \u8bf7\u624b\u52a8\u66ff\u6362\u94fe\u63a5\u4e2d\u7684 amd64 \u4e3a arm64):<\/p>\n\n\n\n<p>wget -N https:\/\/ghfast.top\/https:\/\/github.com\/XIU2\/CloudflareSpeedTest\/releases\/download\/v2.3.4\/cfst_linux_amd64.tar.gz<\/p>\n\n\n\n<p>wget -N https:\/\/ghproxy.net\/https:\/\/github.com\/XIU2\/CloudflareSpeedTest\/releases\/download\/v2.3.4\/cfst_linux_amd64.tar.gz<\/p>\n\n\n\n<p>wget -N https:\/\/gh-proxy.com\/https:\/\/github.com\/XIU2\/CloudflareSpeedTest\/releases\/download\/v2.3.4\/cfst_linux_amd64.tar.gz<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u89e3\u538b\u6587\u4ef6<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">(\u4f1a\u81ea\u52a8\u8986\u76d6\u65e7\u6587\u4ef6\uff0c\u65e0\u9700\u624b\u52a8\u5220\u9664)<\/h2>\n\n\n\n<p>tar -zxf cfst_linux_amd64.tar.gz<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u8d4b\u4e88\u6267\u884c\u6743\u9650<\/h2>\n\n\n\n<p>chmod +x cfst<\/p>\n\n\n\n<p><strong>\u5c0f\u8d34\u58eb<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>wget<\/code> \u547d\u4ee4\u4e2d\u7684 <code>-N<\/code> \u53c2\u6570\u8868\u793a\u201c\u53ea\u4e0b\u8f7d\u6bd4\u672c\u5730\u65b0\u7684\u6587\u4ef6\u201d\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u811a\u672c\u66f4\u65b0\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u4e0b\u8f7d\u4e00\u76f4\u62a5\u9519\uff0c\u5c1d\u8bd5\u53bb\u6389 <code>-N<\/code> \u53c2\u6570\uff0c\u5e76\u624b\u52a8\u6267\u884c <code>rm cfst_linux_amd64.tar.gz<\/code> \u5220\u9664\u65e7\u5305\u540e\u518d\u8bd5\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u5f00\u59cb\u6d4b\u901f<\/h2>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5bfb\u627e\u5c5e\u4e8e\u4f60\u7684\u201c\u5929\u9009 IP\u201d\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\uff01\uff01\uff01\uff01\uff01\uff01\uff01\u6ce8\u610f\uff1a\u5728\u5f00\u59cb\u6d4b\u901f\u524d\uff0c\u5173\u95ed\u79d1\u5b66\u4e0a\u7f51<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u7b80\u5355\u8fd0\u884c\uff08\u9ed8\u8ba4\u914d\u7f6e\uff09<\/h3>\n\n\n\n<p>\u76f4\u63a5\u8fd0\u884c\u5de5\u5177\uff0c\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u6d4b\u8bd5\u5185\u7f6e\u7684 IP \u6bb5\uff1a.\/cfst<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u8fdb\u9636\u8fd0\u884c\uff08\u63a8\u8350\u914d\u7f6e\uff09<\/h3>\n\n\n\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u7b5b\u9009\u7ed3\u679c\u66f4\u7cbe\u51c6\uff0c\u6bd4\u5982<strong>\u5ef6\u8fdf\u5fc5\u987b\u4f4e<\/strong>\uff0c\u4e14<strong>\u591a\u6d4b\u51e0\u4e2a IP \u7684\u4e0b\u8f7d\u901f\u5ea6<\/strong>\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/cfst -tl 200 -dn 20<\/code><\/pre>\n\n\n\n<p><strong>\u53c2\u6570\u8be6\u89e3\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>-tl 200<\/code><\/strong>\uff1a(Time Limit) \u53ea\u6709\u5ef6\u8fdf<strong>\u4f4e\u4e8e 200ms<\/strong> \u7684 IP \u624d\u4f1a\u8fdb\u5165\u4e0b\u8f7d\u6d4b\u901f\u73af\u8282\u3002\u5982\u679c\u4f60\u7684\u7f51\u7edc\u73af\u5883\u8f83\u5dee\uff0c\u53ef\u4ee5\u9002\u5f53\u8c03\u9ad8\u5230 250 \u6216 300\u3002<\/li>\n\n\n\n<li><strong><code>-dn 20<\/code><\/strong>\uff1a(Download Num) \u4ece\u5ef6\u8fdf\u6700\u4f4e\u7684 IP \u4e2d\uff0c\u9009\u53d6<strong>\u524d 20 \u4e2a<\/strong>\u8fdb\u884c\u4e0b\u8f7d\u6d4b\u901f\uff08\u9ed8\u8ba4\u662f 10 \u4e2a\uff09\u3002\u6570\u91cf\u8d8a\u591a\uff0c\u627e\u5230\u201c\u6f0f\u7f51\u4e4b\u9c7c\u201d\u6ee1\u901f IP \u7684\u6982\u7387\u8d8a\u5927\uff0c\u4f46\u8017\u65f6\u4e5f\u8d8a\u957f\u3002<\/li>\n\n\n\n<li><strong><code>-sl 5<\/code><\/strong>\uff1a(Speed Limit) \u5982\u679c\u4f60\u8981\u6c42\u5f88\u9ad8\uff0c\u53ef\u4ee5\u52a0\u4e0a\u8fd9\u4e2a\u53c2\u6570\uff0c\u8868\u793a\u53ea\u663e\u793a\u4e0b\u8f7d\u901f\u5ea6\u5927\u4e8e 5MB\/s \u7684\u7ed3\u679c\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ed3\u679c\u600e\u4e48\u770b\uff1f<\/h2>\n\n\n\n<p>\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u675f\u540e\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u7ec8\u7aef\u4f1a\u7528<strong>\u7eff\u8272<\/strong>\u9ad8\u4eae\u663e\u793a\u7efc\u5408\u7d20\u8d28\u6700\u597d\u7684 IP\u3002<\/li>\n\n\n\n<li>\u5f53\u524d\u76ee\u5f55\u4e0b\u4f1a\u751f\u6210\u4e00\u4e2a <code>result.csv<\/code> \u6587\u4ef6\uff0c\u91cc\u9762\u5305\u542b\u4e86\u6240\u6709\u6d4b\u901f IP \u7684\u8be6\u7ec6\u6570\u636e\uff08IP\u5730\u5740\u3001\u7aef\u53e3\u3001\u5ef6\u8fdf\u3001\u4e0b\u8f7d\u901f\u5ea6\uff09\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e38\u7528\u540e\u7eed\u547d\u4ee4<\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u76f4\u63a5\u63d0\u53d6<strong>\u901f\u5ea6\u6700\u5feb<\/strong>\u7684\u90a3\u4e2a IP \u5730\u5740\uff1a<\/p>\n\n\n\n<p>Bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u63d0\u53d6\u6392\u540d\u7b2c\u4e00\u7684 IP\nsed -n '2p' result.csv | awk -F, '{print $1}'\n<\/code><\/pre>\n\n\n\n<p>\u62ff\u5230 IP \u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5c06\u5176\u586b\u5165\u4f60\u7684 PassWall\u3001SSR+\u3001V2Ray \u7b49\u63d2\u4ef6\u7684<strong>\u5bf9\u7aef IP (Address)<\/strong> \u680f\u76ee\u4e2d\uff0c\u6216\u8005\u7ed1\u5b9a\u5230 <code>\/etc\/hosts<\/code> \u6765\u52a0\u901f\u7279\u5b9a\u7f51\u7ad9\u4e86\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p>\u901a\u8fc7\u4e0a\u9762\u51e0\u884c\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u4f60\u5c31\u5b8c\u6210\u4e86\u4e00\u6b21\u9ad8\u8d28\u91cf\u7684\u7f51\u7edc\u4f18\u9009\u3002\u5efa\u8bae\u5c06\u4e0b\u8f7d\u548c\u6d4b\u901f\u7684\u547d\u4ee4\u4fdd\u5b58\u4e3a\u4e00\u4e2a Shell \u811a\u672c\uff08\u4f8b\u5982 <code>update_cf_ip.sh<\/code>\uff09\uff0c\u914d\u5408 Crontab \u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u5929\u81ea\u52a8\u4f18\u9009\uff0c\u8ba9\u4f60\u7684\u7f51\u7edc\u65f6\u523b\u4fdd\u6301\u6700\u4f73\u72b6\u6001\uff01<\/p>\n\n\n\n<p><em>\u89c9\u5f97\u597d\u7528\u7684\u8bdd\uff0c\u522b\u5fd8\u4e86\u53bb GitHub \u7ed9\u4f5c\u8005 <strong>XIU2<\/strong> \u70b9\u4e2a Star \u54e6\uff01<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728 Linux \u670d\u52a1\u5668\uff08VPS&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":5,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":361,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/posts\/354\/revisions\/361"}],"wp:attachment":[{"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mliaomcx.com\/en\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}