{"id":131,"date":"2026-08-30T02:52:11","date_gmt":"2026-08-29T18:52:11","guid":{"rendered":"https:\/\/www.fzc0.cn\/?p=131"},"modified":"2026-08-30T02:58:45","modified_gmt":"2026-08-29T18:58:45","slug":"%e5%9c%a8%e7%ba%bf%e6%a3%80%e6%b5%8b%e4%bd%a0%e7%9a%84-nat-%e7%b1%bb%e5%9e%8b%ef%bc%9anat1nat4-%e5%88%86%e5%88%ab%e4%bb%a3%e8%a1%a8%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/www.fzc0.cn\/?p=131","title":{"rendered":"\u5728\u7ebf\u68c0\u6d4b\u4f60\u7684 NAT \u7c7b\u578b\uff1aNAT1~NAT4 \u5206\u522b\u4ee3\u8868\u4ec0\u4e48"},"content":{"rendered":"<p>\u7ecf\u5e38\u9047\u5230\u8054\u673a\u6389\u7ebf\u3001\u8fdb\u4e0d\u4e86\u522b\u4eba\u7684\u623f\u95f4\u3001P2P \u4e0b\u8f7d\u6ca1\u901f\u5ea6\uff1f\u5f88\u591a\u65f6\u5019\u95ee\u9898\u4e0d\u5728\u6e38\u620f\u670d\u52a1\u5668\uff0c\u800c\u5728\u4f60\u5bb6\u91cc\u7684 <strong>NAT \u7c7b\u578b<\/strong>\u3002\u8fd9\u7bc7\u6587\u7ae0\u8bb2\u8bb2 NAT \u662f\u4ec0\u4e48\u3001NAT1~NAT4 \u6709\u4ec0\u4e48\u533a\u522b\uff0c\u4ee5\u53ca\u600e\u4e48\u5feb\u901f\u6d4b\u51fa\u81ea\u5df1\u5c5e\u4e8e\u54ea\u4e00\u79cd\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4ec0\u4e48\u662f NAT\uff1f<\/h2>\n<p>NAT\uff08Network Address Translation\uff0c\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff09\u8d1f\u8d23\u628a\u4f60\u7684\u5185\u7f51 IP \u6620\u5c04\u6210\u8fd0\u8425\u5546\u5206\u914d\u7684\u516c\u7f51 IP \u548c\u7aef\u53e3\u3002\u8def\u7531\u5668\u3001\u5149\u732b\u4ee5\u53ca\u8fd0\u8425\u5546\u7684\u51fa\u53e3\u8bbe\u5907\u90fd\u5728\u505a\u8fd9\u4ef6\u4e8b\u3002\u4e0d\u540c\u8bbe\u5907\u7684\u6620\u5c04\u7b56\u7565\u4e0d\u540c\uff0c\u5c31\u4ea7\u751f\u4e86\u4e0d\u540c\u7684 NAT \u7c7b\u578b\uff0c\u76f4\u63a5\u51b3\u5b9a\u4e86\u522b\u4eba\u80fd\u4e0d\u80fd\u201c\u4e3b\u52a8\u627e\u5230\u4f60\u201d\u3002<\/p>\n<h2 class=\"wp-block-heading\">NAT1 ~ NAT4 \u6709\u4ec0\u4e48\u533a\u522b<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u82f1\u6587<\/th>\n<th>\u4e2d\u6587<\/th>\n<th>\u7279\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>NAT1<\/td>\n<td>Full Cone<\/td>\n<td>\u5b8c\u5168\u9525\u5f62<\/td>\n<td>\u6700\u5f00\u653e\uff0c\u63a5\u8fd1\u516c\u7f51\u76f4\u8fde\uff0c\u8054\u673a \/ P2P \/ \u8fdc\u7a0b\u8bbf\u95ee\u5168\u7545\u901a<\/td>\n<\/tr>\n<tr>\n<td>NAT2<\/td>\n<td>Restricted Cone<\/td>\n<td>\u5730\u5740\u9650\u5236\u9525\u5f62<\/td>\n<td>\u6bd4\u8f83\u7406\u60f3\uff0c\u4e3b\u6d41\u6e38\u620f\u548c P2P \u5927\u591a\u80fd\u6b63\u5e38\u8dd1<\/td>\n<\/tr>\n<tr>\n<td>NAT3<\/td>\n<td>Port Restricted Cone<\/td>\n<td>\u7aef\u53e3\u9650\u5236\u9525\u5f62<\/td>\n<td>\u4e2d\u7b49\u6c34\u5e73\uff0c\u5bb9\u6613\u201c\u80fd\u8bed\u97f3\u3001\u8fdb\u4e0d\u4e86\u623f\u201d<\/td>\n<\/tr>\n<tr>\n<td>NAT4<\/td>\n<td>Symmetric<\/td>\n<td>\u5bf9\u79f0\u578b<\/td>\n<td>\u9650\u5236\u6700\u4e25\u683c\uff0c\u6bcf\u6b21\u8fde\u63a5\u6362\u7aef\u53e3\uff0c\u8054\u673a\u4e0d\u7a33\u5b9a\u3001\u57fa\u672c\u544a\u522b P2P<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u7b80\u5355\u8bf4\uff1a<strong>NAT \u6570\u5b57\u8d8a\u5c0f\u8d8a\u5f00\u653e<\/strong>\u3002\u6253\u6e38\u620f\u3001\u505a P2P\u3001\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u6700\u7406\u60f3\u7684\u662f NAT1 \/ NAT2\uff1bNAT3 \u51d1\u5408\uff1bNAT4 \u57fa\u672c\u5efa\u8bae\u4f18\u5316\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u600e\u4e48\u68c0\u6d4b\u81ea\u5df1\u7684 NAT \u7c7b\u578b<\/h2>\n<p>\u6211\u5199\u4e86\u4e00\u4e2a\u7eaf\u524d\u7aef\u7684\u5c0f\u5de5\u5177 <a href=\"https:\/\/nat.fzc0.cn\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>NAT \u7c7b\u578b\u68c0\u6d4b \u00b7 nat.fzc0.cn<\/strong><\/a>\uff0c\u6253\u5f00\u9875\u9762\u70b9\u4e00\u4e0b\u201c\u5f00\u59cb\u68c0\u6d4b\u201d\u5c31\u884c\uff1a<\/p>\n<ul>\n<li>\u901a\u8fc7 WebRTC \u540c\u65f6\u8fde\u63a5\u591a\u4e2a\u516c\u5171 STUN \u670d\u52a1\u5668\uff0c\u62ff\u5230 NAT \u5206\u914d\u7684\u516c\u7f51 IP \u548c\u7aef\u53e3\uff1b<\/li>\n<li>\u4e0d\u540c\u670d\u52a1\u5668\u8fd4\u56de\u7684\u7aef\u53e3\u4e0d\u540c \u2192 \u5bf9\u79f0\u578b\uff08NAT4\uff09\uff1b\u7aef\u53e3\u4e00\u81f4 \u2192 \u9525\u5f62 NAT \u5bb6\u65cf\uff08NAT1\/2\/3\uff09\uff1b<\/li>\n<li>\u81ea\u52a8\u7ed9\u51fa\u56db\u7ef4\u8bc4\u5206\uff08\u6e38\u620f\u8054\u673a \/ P2P\u4e0b\u8f7d \/ \u89c6\u9891\u901a\u8bdd \/ \u8fdc\u7a0b\u8bbf\u95ee\uff09\u548c\u9488\u5bf9\u6027\u7684\u4f18\u5316\u5efa\u8bae\uff1b<\/li>\n<li>\u5168\u7a0b\u5728\u6d4f\u89c8\u5668\u672c\u5730\u5b8c\u6210\uff0c\u4e0d\u4e0a\u4f20\u4efb\u4f55\u6570\u636e\uff0c\u624b\u673a\u7535\u8111\u90fd\u80fd\u7528\u3002<\/li>\n<\/ul>\n<p>\u68c0\u6d4b\u94fe\u63a5\uff1a<a href=\"https:\/\/nat.fzc0.cn\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nat.fzc0.cn<\/a><\/p>\n<h2 class=\"wp-block-heading\">\u6d4b\u51fa NAT4 \u600e\u4e48\u529e<\/h2>\n<ul>\n<li><strong>\u7b2c\u4e00\u6b65\uff1a\u7533\u8bf7\u516c\u7f51 IP<\/strong>\u3002\u5f88\u591a NAT4 \u5176\u5b9e\u662f\u8fd0\u8425\u5546\u5927\u5185\u7f51\uff08CGNAT\uff09\u5bfc\u81f4\u7684\uff0c\u6253\u7535\u8bdd\u7ed9\u8fd0\u8425\u5546\u8981\u4e2a\u516c\u7f51 IP \u5f80\u5f80\u5c31\u89e3\u51b3\u4e86\uff1b<\/li>\n<li><strong>\u7b2c\u4e8c\u6b65\uff1a\u5149\u732b\u6539\u6865\u63a5<\/strong>\uff0c\u8ba9\u8def\u7531\u5668\u76f4\u63a5 PPPoE \u62e8\u53f7\uff1b<\/li>\n<li><strong>\u7b2c\u4e09\u6b65\uff1a\u5f00 UPnP + \u7aef\u53e3\u8f6c\u53d1<\/strong>\uff0c\u6216\u7ed9\u6e38\u620f\u4e3b\u673a \/ \u7535\u8111\u8bbe\u7f6e DMZ\uff1b<\/li>\n<li><strong>\u5e94\u6025\u65b9\u6848<\/strong>\uff1a\u6e38\u620f\u52a0\u901f\u5668\uff0c\u6216 ZeroTier \/ Tailscale \u7ec4\u7f51\u3002<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">\u4e00\u70b9\u8bf4\u660e<\/h2>\n<p>\u7eaf\u6d4f\u89c8\u5668\u7aef\u65e0\u6cd5\u5b8c\u5168\u533a\u5206 NAT1 \/ NAT2 \/ NAT3\uff0c\u5de5\u5177\u4f1a\u6309\u6700\u4fdd\u5b88\u60c5\u51b5\u5c55\u793a\uff0c\u7ed3\u679c\u4ec5\u4f9b\u53c2\u8003\uff1b\u4f01\u4e1a\u7f51\u7edc\u3001\u4ee3\u7406 \/ VPN \u4e5f\u4f1a\u5f71\u54cd\u5224\u5b9a\u3002\u9879\u76ee\u5df2\u7ecf\u5f00\u6e90\u5728 <a href=\"https:\/\/github.com\/fzc0\/nat-checker\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub \u00b7 fzc0\/nat-checker<\/a>\uff0c\u6b22\u8fce\u56f4\u89c2\u548c\u63d0\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u5e38\u9047\u5230\u8054\u673a\u6389\u7ebf\u3001\u8fdb\u4e0d\u4e86\u522b\u4eba\u7684\u623f\u95f4\u3001P2P \u4e0b\u8f7d\u6ca1\u901f\u5ea6\uff1f\u5f88\u591a\u65f6\u5019\u95ee\u9898\u4e0d\u5728\u6e38\u620f\u670d\u52a1\u5668\uff0c\u800c\u5728\u4f60\u5bb6\u91cc\u7684 NAT \u7c7b\u578b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn"],"_links":{"self":[{"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":1,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions\/135"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=\/wp\/v2\/media\/134"}],"wp:attachment":[{"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fzc0.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}