{"id":30925,"date":"2026-06-03T14:00:00","date_gmt":"2026-06-03T06:00:00","guid":{"rendered":"https:\/\/cn.hostease.com\/blog\/?p=30925"},"modified":"2026-06-03T14:00:00","modified_gmt":"2026-06-03T06:00:00","slug":"overseas-ip-deployment-full-guide","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/blog\/guides\/overseas-ip-deployment-full-guide\/","title":{"rendered":"\u6d77\u5916\u670d\u52a1\u5668ip\u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u96f6\u5230\u4e0a\u7ebf\u7684\u5b8c\u6574\u6d41\u7a0b"},"content":{"rendered":"<p>\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u6d77\u5916\u670d\u52a1\u5668 IP \u5730\u5740\u7684\u90e8\u7f72\u548c\u914d\u7f6e\u6d41\u7a0b\uff0c\u9002\u5408\u6240\u6709\u6c34\u5e73\u7684\u6280\u672f\u7528\u6237\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u68c0\u67e5 IP \u5206\u914d\u60c5\u51b5<\/strong><\/p>\n<p>\u767b\u5f55\u670d\u52a1\u5668\u540e\uff0c\u68c0\u67e5 IP \u914d\u7f6e\uff1a<\/p>\n<pre><code>ip addr show\n<\/code><\/pre>\n<p>\u786e\u8ba4\u8f93\u51fa\u4e2d\u5305\u542b\u5206\u914d\u7684 IP \u5730\u5740\u3002\u5982\u679c\u53ea\u6709 IPv4 \u6ca1\u6709 IPv6\uff0c\u8054\u7cfb\u670d\u52a1\u5546\u7533\u8bf7 IPv6 \u5730\u5740\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u57fa\u7840\u7f51\u7edc\u914d\u7f6e<\/strong><\/p>\n<p>\u914d\u7f6e\u7f51\u7edc\u53c2\u6570\uff1a<br \/>\n&#8211; \u7f16\u8f91 \/etc\/netplan\/ \u4e0b\u7684\u914d\u7f6e\u6587\u4ef6\uff08Ubuntu\uff09<br \/>\n&#8211; \u6216\u7f16\u8f91 \/etc\/network\/interfaces\uff08Debian\uff09<br \/>\n\u786e\u4fdd DNS \u8bbe\u7f6e\u4e3a 8.8.8.8 \u548c 1.1.1.1\uff0c\u63d0\u9ad8\u89e3\u6790\u901f\u5ea6\u3002<\/p>\n<p><strong>\u7b2c\u4e09\u6b65\uff1a\u9632\u706b\u5899\u7b56\u7565<\/strong><\/p>\n<p>\u4f7f\u7528 nftables \u6216 iptables \u914d\u7f6e\u7cbe\u7ec6\u5316\u9632\u706b\u5899\u89c4\u5219\uff1a<\/p>\n<pre><code># \u5141\u8bb8\u5df2\u5efa\u7acb\u7684\u8fde\u63a5\niptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT\n# \u653e\u884c\u5e38\u7528\u7aef\u53e3\niptables -A INPUT -p tcp --dport 22 -j ACCEPT\niptables -A INPUT -p tcp --dport 80 -j ACCEPT\niptables -A INPUT -p tcp --dport 443 -j ACCEPT\n# \u62d2\u7edd\u5176\u4ed6\u5165\u7ad9\u6d41\u91cf\niptables -P INPUT DROP\n<\/code><\/pre>\n<p><strong>\u7b2c\u56db\u6b65\uff1a\u914d\u7f6e\u53cd\u5411 DNS<\/strong><\/p>\n<p>\u5728\u670d\u52a1\u5546\u9762\u677f\u8bbe\u7f6e rDNS \u8bb0\u5f55\uff0c\u5c06 IP \u89e3\u6790\u5230\u4f60\u7684\u57df\u540d\u3002\u8bbe\u7f6e\u540e\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\uff1a<\/p>\n<pre><code>nslookup your-server-ip\n<\/code><\/pre>\n<p>\u8f93\u51fa\u5e94\u663e\u793a\u4f60\u7684\u57df\u540d\u3002<\/p>\n<p><strong>\u7b2c\u4e94\u6b65\uff1a\u914d\u7f6e CDN \u9690\u85cf\u6e90\u7ad9 IP<\/strong><\/p>\n<p>\u4e3a\u4e86\u9632\u6b62\u6e90\u7ad9 IP \u88ab\u76f4\u63a5\u653b\u51fb\uff0c\u914d\u7f6e CDN \u540e\u53ea\u5141\u8bb8 CDN \u8282\u70b9\u8bbf\u95ee\u6e90\u7ad9\uff1a<\/p>\n<pre><code># Nginx \u914d\u7f6e\nallow CDN_IP_1;\nallow CDN_IP_2;\ndeny all;\n<\/code><\/pre>\n<p><strong>\u7b2c\u516d\u6b65\uff1aIP \u76d1\u63a7\u4e0e\u544a\u8b66<\/strong><\/p>\n<p>\u914d\u7f6e IP \u53ef\u7528\u6027\u76d1\u63a7\uff0c\u8bbe\u7f6e\u544a\u8b66\u89c4\u5219\uff1a<br \/>\n&#8211; Ping \u76d1\u63a7\uff1a\u68c0\u6d4b IP \u662f\u5426\u5728\u7ebf<br \/>\n&#8211; \u7aef\u53e3\u76d1\u63a7\uff1a\u68c0\u6d4b Web \u670d\u52a1\u662f\u5426\u6b63\u5e38<br \/>\n&#8211; \u9ed1\u540d\u5355\u76d1\u63a7\uff1a\u5b9a\u671f\u68c0\u67e5 IP \u662f\u5426\u88ab\u5217\u5165\u9ed1\u540d\u5355<\/p>\n<p><strong>\u6545\u969c\u5904\u7406<\/strong><\/p>\n<p>IP \u88ab\u5899\uff1a\u7acb\u5373\u8054\u7cfb\u670d\u52a1\u5546\u66f4\u6362 IP\uff0c\u914d\u7f6e CDN \u540e\u6062\u590d\u8bbf\u95ee<br \/>\nIP \u51b2\u7a81\uff1a\u8054\u7cfb\u670d\u52a1\u5546\u68c0\u67e5\u7f51\u7edc\u914d\u7f6e\uff0c\u907f\u514d\u624b\u52a8\u4fee\u6539 IP \u5730\u5740<br \/>\nDNS \u89e3\u6790\u5ef6\u8fdf\uff1a\u66f4\u6362 DNS \u670d\u52a1\u5546\uff0c\u4f7f\u7528 DNSPod \u6216\u963f\u91cc\u4e91 DNS<\/p>\n<p>\u6309\u7167\u8fd9\u4e9b\u6b65\u9aa4\u64cd\u4f5c\uff0c\u4f60\u7684\u6d77\u5916\u670d\u52a1\u5668 IP \u5c31\u80fd\u7a33\u5b9a\u9ad8\u6548\u5730\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u6d77\u5916\u670d\u52a1\u5668 IP \u5730\u5740\u7684\u90e8\u7f72\u548c\u914d\u7f6e\u6d41\u7a0b\uff0c\u9002\u5408\u6240\u6709\u6c34\u5e73\u7684\u6280\u672f\u7528\u6237\u3002 \u7b2c\u4e00\u6b65\uff1a\u68c0\u67e5 IP \u5206\u914d\u60c5\u51b5  &#8230; <a title=\"\u6d77\u5916\u670d\u52a1\u5668ip\u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u96f6\u5230\u4e0a\u7ebf\u7684\u5b8c\u6574\u6d41\u7a0b\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/blog\/guides\/overseas-ip-deployment-full-guide\/\" aria-label=\"\u9605\u8bfb \u6d77\u5916\u670d\u52a1\u5668ip\u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u96f6\u5230\u4e0a\u7ebf\u7684\u5b8c\u6574\u6d41\u7a0b\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3822],"tags":[],"class_list":["post-30925","post","type-post","status-publish","format-standard","hentry","category-guides"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/30925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/comments?post=30925"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/30925\/revisions"}],"predecessor-version":[{"id":30955,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/30925\/revisions\/30955"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/media?parent=30925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/categories?post=30925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/tags?post=30925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}