{"id":5439,"date":"2023-11-19T20:18:11","date_gmt":"2023-11-19T12:18:11","guid":{"rendered":"https:\/\/white-night.club\/?p=5439"},"modified":"2023-11-19T21:32:09","modified_gmt":"2023-11-19T13:32:09","slug":"book4-5","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/11\/19\/book4-5\/","title":{"rendered":"5.\u300a\u56fe\u89e3\u4e91\u8ba1\u7b97\u67b6\u6784\uff1a\u57fa\u7840\u8bbe\u65bd\u548cAPI\u300b(2020) \u4f5c\u8005\uff1a[\u65e5]\u5e73\u5c71\u6bc5"},"content":{"rendered":"\n<p>\u865a\u62df\u7f51\u7edc\u5185\u90e8\u7684\u79c1\u6709IP\u5730\u5740\u8981\u901a\u8fc7\u865a\u62df\u8def\u7531\u5668\u7684NAT\u529f\u80fd\u624d\u80fd\u8f6c\u6362\u4e3a\u516c\u6709IP\u5730\u5740\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u5047\u8bbe\u4f60\u7684VPC\u91cc\u9762\u6709\u4e09\u53f0\u670d\u52a1\u5668\uff0c\u6bcf\u53f0\u670d\u52a1\u5668\u80af\u5b9a\u90fd\u6709\u81ea\u5df1\u7684IP\u3002\u90a3\u4e48\u540c\u4e0a\u4e00\u7ae0\u63d0\u5230\u7684\uff0c\u4f60\u60f3\u4f60\u7684\u670d\u52a1\u5668\uff0c\u901a\u8fc7\u865a\u62df\u8def\u7531\u5668\u7684\u516c\u5171IP\u5bf9\u5916\u90e8\u7f51\u7edc\u63d0\u4f9b\u670d\u52a1\uff0c\u90a3\u4f60\u670d\u52a1\u5668\u7684\u771f\u5b9eIP\u80af\u5b9a\u8981\u5728\u865a\u62df\u8def\u7531\u5668\u90a3\u4f5c\u4e00\u4e2a\u8f6c\u6362\uff0c\u628a\u670d\u52a1\u5668\u7684\u79c1\u6709IP\u8f6c\u6362\u4e3a\u516c\u5171IP\u518d\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u3002\n\u81f3\u4e8eNAT\u6211\u8fd8\u6ca1\u7ec6\u5b66\u8fc7\uff0c\u8fd9\u91cc\u5148\u8df3\u8fc7\u4e86\u3002\u5230\u65f6\u5019\u8ba1\u7f51\u78b0\u5230\u518d\u8bf4\u3002<\/code><\/pre>\n\n\n\n<p>\u7b2c\u4e00\u79cd\u8f6c\u6362\u65b9\u5f0f\u4e00\u822c\u79f0\u4e3a\u201cIP\u4f2a\u88c5\u201d\uff08IP masquerade\uff09\uff0c\u5373\u865a\u62df\u673a\u5b9e\u4f8b\u5728\u94fe\u63a5\u5916\u90e8\u7f51\u7edc\u65f6\u5171\u4eab\u865a\u62df\u8def\u7531\u5668\u4e0a\u7684\u516c\u6709IP\u5730\u5740\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u95ee\u9898\u4e5f\u5f88\u660e\u663e\u3002\u5982\u679cABC\u4e09\u4e2a\u670d\u52a1\u5668\u90fd\u7528\u7684\u540c\u4e00\u4e2a\u516c\u6709IP\u3002\u90a3\u5916\u7f51\u600e\u4e48\u624d\u80fd\u8bbf\u95ee\u5176\u4e2d\u4e00\u4e2a\u5177\u4f53\u7684\u670d\u52a1\u5668\u5462\uff1f\u76f8\u5f53\u4e8e\u53ea\u80fd\u5728VPC\u5185\u670d\u52a1\u5668\u53ef\u4ee5\u8fde\u63a5\u5230\u5916\u7f51\uff0c\u4f46\u662f\u5916\u7f51\u65e0\u6cd5\u8fde\u63a5\u5230\u5185\u7f51\u7684\u670d\u52a1\u5668\u3002<\/code><\/pre>\n\n\n\n<p>\u53e6\u4e00\u79cd\u8f6c\u6362\u65b9\u5f0f\u5728AWS\u4e2d\u79f0\u4e3a\u201c\u5f39\u6027IP\u201d\uff08elastic IP\uff09\uff0c\u5728OpenStack\u4e2d\u79f0\u4e3a\uff1a\u201c\u6d6e\u52a8IP\u201d\uff08floating IP\uff09\u3002\u8fd9\u79cd\u65b9\u5f0f\u4f1a\u5c06\u67d0\u4e2a\u516c\u6709IP\u5730\u5740\u5206\u914d\u7ed9\u865a\u62df\u673a\u5b9e\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u6709\u70b9\u50cf\u201c\u57df\u540d-IP\u201d\u7684\u5bf9\u7167\u5173\u7cfb\u3002\u53ea\u4e0d\u8fc7\u5728\u5f39\u6027IP\u4e2d\u53d8\u6210\u4e86\u201cIP-IP\u201d\u3002\u6bd4\u5982A\u670d\u52a1\u5668\u7684IP\u662f192.168.1.11\uff0c\u5206\u914d\u7ed9\u5b83\u7684\u5f39\u6027IP\u662f192.168.1.12\u3002\u90a3\u4e48\u5916\u7f51\u7684\u7528\u6237\u53ea\u80fd\u901a\u8fc7\u8bbf\u95ee192.168.1.12\u6765\u8bbf\u95eeA\u670d\u52a1\u5668\u3002\n\u4e0d\u8fc7\u5bf9\u4e8eA\u670d\u52a1\u5668\u800c\u8a00\uff0c\u5b83\u7684IP\u4ecd\u7136\u662f192.168.1.11\u3002\u5916\u7f51\u8981\u8bbf\u95ee192.168.1.12\u7684\u65f6\u5019\uff0c\u4f1a\u5148\u5728\u865a\u62df\u8def\u7531\u5668\u5c06\u8bf7\u6c42\u8f6c\u6362\u4e3a192.168.1.11\uff0c\u518d\u53bbVPS\u5185\u90e8\u627e\u5230\u8fd9\u4e2aIP\u5730\u5740\u7684\u670d\u52a1\u5668\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>P29\u3001P30 IP\u4f2a\u88c5\u4e0e\u5f39\u6027IP<\/p>\n","protected":false},"author":1,"featured_media":4344,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[119,107],"tags":[120,112],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/5439"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=5439"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/5439\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/4344"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=5439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=5439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=5439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}