{"id":15284,"date":"2025-04-18T21:52:34","date_gmt":"2025-04-18T13:52:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/15284.html"},"modified":"2025-04-18T21:52:34","modified_gmt":"2025-04-18T13:52:34","slug":"%e3%80%90linux%e3%80%91%e3%80%90%e7%bd%91%e7%bb%9c%e3%80%91%e4%b8%8d%e5%90%8c%e5%ad%90%e7%bd%91%e4%b8%8b%e7%9a%84%e5%ae%a2%e6%88%b7%e7%ab%af%e5%92%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%80%9a%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/15284.html","title":{"rendered":"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f"},"content":{"rendered":"<h2>\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f<\/h2>\n<p>\u90a3\u4e48&#xff0c;\u5728 NAT \u73af\u5883\u4e0b&#xff0c;\u5e94\u8be5\u5982\u4f55\u8ba9\u5185\u7f51\u8bbe\u5907\u505a\u4e3a\u670d\u52a1\u5668&#xff0c;\u4f7f\u5185\u7f51\u8bbe\u5907\u88ab\u5916\u90e8\u8fde\u63a5&#xff1f;<\/p>\n<h3>1 \u591a\u62e8<\/h3>\n<p>\u90e8\u5206\u8fd0\u8425\u5546&#xff0c;\u652f\u6301\u5728\u591a\u4e2a\u8bbe\u5907\u4e0a&#xff0c;\u901a\u8fc7 PPPoE \u767b\u5f55\u540c\u4e00\u4e2a\u5bbd\u5e26\u8d26\u53f7\u3002\u6bcf\u4e2a\u8bbe\u5907\u90fd\u80fd\u83b7\u53d6\u5230\u4e00\u4e2a\u72ec\u7acb\u7684\u516c\u7f51 IP4\u3002 \u5982\u679c\u60f3\u8ba9\u6e38\u620f\u4e3b\u673a\u7b49\u8bbe\u5907\u83b7\u53d6\u72ec\u7acb\u7684\u516c\u7f51 IP&#xff0c;\u4f9b\u5916\u90e8\u8fde\u63a5&#xff0c;\u53ef\u4ee5\u5728\u5149\u732b\u4e4b\u540e\u8fde\u63a5\u4ea4\u6362\u673a\u3002\u6e38\u620f\u4e3b\u673a\u8fde\u63a5\u4ea4\u6362\u673a&#xff0c;\u76f4\u63a5\u8fdb\u884c PPPoE \u62e8\u53f7\u3002\u65e0\u7ebf\u8def\u7531\u5668\u4e5f\u8fde\u63a5\u4ea4\u6362\u673a&#xff0c;\u5bb6\u4e2d\u7684\u5176\u4ed6\u7f51\u7edc\u8bbe\u5907\u7ecf\u8fc7\u65e0\u7ebf\u8def\u7531\u5668\u8bbf\u95ee Internet\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135232-6802592026952.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u591a\u62e8\u7684\u5c40\u9650\u6027&#xff1a;<\/h4>\n<li>\u4ec5\u90e8\u5206\u8fd0\u8425\u5546\u652f\u6301\u591a\u62e8<\/li>\n<li>\u4e00\u4e9b\u8fd0\u8425\u5546\u5df2\u4e0d\u518d\u4e3a\u7528\u6237\u5206\u914d\u516c\u7f51 IP&#xff0c;\u5373\u4f7f\u901a\u8fc7\u591a\u62e8&#xff0c;\u4e5f\u83b7\u53d6\u4e0d\u5230\u516c\u7f51 IP<\/li>\n<li>\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u4e0d\u518d\u652f\u6301 PPPoE\u3002\u4f8b\u5982Xbox 360 \u652f\u6301 PPPoE&#xff0c;\u4f46 Xbox One \u4e4b\u540e\u7684\u7248\u672c\u5df2\u4e0d\u518d\u652f\u6301<\/li>\n<li>\u8bbe\u5907\u76f4\u63a5\u83b7\u53d6\u516c\u7f51IP&#xff0c;\u66b4\u9732\u5728\u516c\u7f51\u4e0a&#xff0c;\u5b89\u5168\u6027\u8f83\u5dee\u3002\u53ef\u80fd\u9700\u8981\u5355\u72ec\u8bbe\u7f6e\u9632\u706b\u5899<\/li>\n<li>\u9700\u8981\u989d\u5916\u8d2d\u4e70\u4ea4\u6362\u673a&#xff0c;\u8fde\u63a5\u5728\u5149\u732b\u548c\u8def\u7531\u5668\u4e4b\u95f4\u3002\u4f1a\u6539\u53d8\u5bb6\u5ead\u7f51\u7edc\u62d3\u6251&#xff0c;\u64cd\u4f5c\u6bd4\u8f83\u590d\u6742<\/li>\n<p>\u6240\u4ee5&#xff0c;\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u592a\u5e38\u7528\u3002<\/p>\n<h3>2 \u7aef\u53e3\u8f6c\u53d1\u3001DMZ<\/h3>\n<p>\u4e0a\u6587\u4e2d\u4ecb\u7ecd\u7684 NAT&#xff0c;\u8def\u7531\u5668\u4f1a\u6839\u636e\u5185\u7f51\u8bbe\u5907\u53d1\u51fa\u7684\u62a5\u6587&#xff0c;\u81ea\u52a8\u5f62\u6210 NAT \u8868\u9879\u3002\u5b9e\u9645\u4e0a&#xff0c;\u7528\u6237\u8fd8\u53ef\u4ee5\u5728\u8def\u7531\u5668\u4e0a\u624b\u52a8\u914d\u7f6e\u7aef\u53e3\u6620\u5c04\u5173\u7cfb&#xff0c;\u8ba9\u5185\u7f51\u8bbe\u5907\u53ef\u88ab\u5916\u90e8\u8bbf\u95ee\u3002<\/p>\n<p>\u5176\u4e2d&#xff0c;DMZ \u529f\u80fd&#xff0c;\u53ef\u4ee5\u6307\u5b9a\u4e00\u53f0\u5185\u7f51\u8bbe\u5907\u4e3a DMZ \u4e3b\u673a\u3002\u5230\u8fbe\u8def\u7531\u5668\u4e0a\u7684\u62a5\u6587&#xff0c;\u5982\u679c\u6ca1\u6709\u5339\u914d NAT \u8868\u9879&#xff0c;\u5c31\u4f1a\u8f6c\u53d1\u5230 DMZ \u4e3b\u673a\u3002\u4ece\u800c\u4f7f DMZ \u4e3b\u673a\u53ef\u88ab\u5916\u90e8\u8bbf\u95ee\u3002<\/p>\n<p>DMZ \u529f\u80fd\u80fd\u8ba9\u4e00\u53f0\u5185\u7f51\u8bbe\u5907\u4e0a\u7684\u6240\u6709\u7aef\u53e3&#xff0c;\u90fd\u80fd\u88ab\u516c\u7f51\u8bbf\u95ee\u3002\u4f46\u8fd9\u6837\u505a\u4e5f\u5f71\u54cd\u4e86\u5185\u7f51\u8bbe\u5907\u7684\u5b89\u5168\u6027&#xff0c;\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u9700\u8981&#xff0c;\u4e0d\u5efa\u8bae\u6253\u5f00\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<p>\u800c \u7aef\u53e3\u8f6c\u53d1 \u529f\u80fd&#xff0c;\u53ef\u4ee5\u624b\u52a8\u8bbe\u7f6e\u7aef\u53e3\u6620\u5c04\u5173\u7cfb&#xff0c;\u8ba9\u6307\u5b9a\u5185\u7f51\u8bbe\u5907\u7684\u6307\u5b9a\u7aef\u53e3&#xff0c;\u80fd\u591f\u88ab\u516c\u7f51\u8bbf\u95ee&#xff1a;<\/p>\n<h3>3 UPnP IGD\u3001NAT-PMP<\/h3>\n<p>\u4e0a\u6587\u4e2d\u7684\u7aef\u53e3\u8f6c\u53d1\u529f\u80fd&#xff0c;\u9700\u8981\u624b\u52a8\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\u89c4\u5219&#xff0c;\u64cd\u4f5c\u8d77\u6765\u6bd4\u8f83\u9ebb\u70e6\u3002\u800c UPnP IGD \u548c NAT-PMP \u534f\u8bae&#xff0c;\u5219\u80fd\u5b9e\u73b0\u81ea\u52a8\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\u89c4\u5219\u3002<\/p>\n<p>UPnP IGD&#xff08;\u4e92\u8054\u7f51\u7f51\u5173\u8bbe\u5907\u534f\u8bae&#xff09;\u548c NAT-PMP&#xff08;NAT \u7aef\u53e3\u6620\u5c04\u534f\u8bae&#xff09;\u5206\u522b\u7531\u5fae\u8f6f\u548c Apple \u63d0\u51fa&#xff0c;\u529f\u80fd\u7c7b\u4f3c&#xff0c;\u90fd\u53ef\u4ee5\u8ba9\u5e94\u7528\u7a0b\u5e8f\u544a\u8bc9\u8def\u7531\u5668\u9700\u8981\u6253\u5f00\u7684\u7aef\u53e3&#xff0c;\u8ba9\u8def\u7531\u5668\u81ea\u52a8\u8bbe\u7f6e\u7aef\u53e3\u8f6c\u53d1\u89c4\u5219\u3002<\/p>\n<p>UPnP IGD \u548c NAT-PMP \u7684\u5de5\u4f5c&#xff0c;\u9700\u8981\u5e94\u7528\u7a0b\u5e8f\u548c\u8def\u7531\u5668\u7684\u914d\u5408\u3002\u9996\u5148\u9700\u8981\u5728\u8def\u7531\u5668\u4e0a\u6253\u5f00 UPnP \u6216 NAT-PMP \u529f\u80fd&#xff1a;<\/p>\n<p>\u8fd8\u9700\u8981\u4f7f\u7528\u652f\u6301\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u76ee\u524d eMule\u3001BitTorrent \u7b49\u5e38\u89c1\u7684 P2P \u6587\u4ef6\u5171\u4eab\u5de5\u5177&#xff0c;\u4ee5\u53ca Synology DiskStation \u7b49 NAS \u8bbe\u5907&#xff0c;\u4ee5\u53ca Xbox \u7b49\u6e38\u620f\u4e3b\u673a&#xff0c;\u90fd\u5df2\u7ecf\u652f\u6301\u76f8\u5173\u534f\u8bae&#xff1a;<\/p>\n<h3>4 \u5149\u732b\u6539\u4e3a\u6865\u63a5\u6a21\u5f0f&#xff0c;\u4f7f\u7528\u8def\u7531\u5668\u62e8\u53f7<\/h3>\n<p>\u5b89\u88c5\u5bbd\u5e26\u65f6&#xff0c;\u8fd0\u8425\u5546\u9644\u9001\u7684\u5149\u732b&#xff0c;\u4e00\u822c\u4f1a\u9ed8\u8ba4\u6253\u5f00\u8def\u7531\u529f\u80fd\u3002\u8fd9\u65f6\u5149\u732b\u540c\u65f6\u80fd\u4f5c\u4e3a\u8def\u7531\u5668\u4f7f\u7528\u3002<\/p>\n<p>\u4f46\u5149\u732b\u7684\u529f\u80fd\u548c\u6027\u80fd\u6709\u9650&#xff0c;\u4e00\u90e8\u5206\u578b\u53f7\u7684\u5149\u732b\u4e0d\u652f\u6301 UPnP IGD \u7b49\u534f\u8bae&#xff0c;\u6216\u8005\u4e0d\u80fd\u624b\u52a8\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\u89c4\u5219\u3002<\/p>\n<p>\u6240\u4ee5&#xff0c;\u53ef\u4ee5\u8003\u8651\u5c06\u5149\u732b\u4fee\u6539\u4e3a\u6865\u63a5\u6a21\u5f0f&#xff0c;\u901a\u8fc7\u81ea\u5df1\u7684\u65e0\u7ebf\u8def\u7531\u5668\u62e8\u53f7&#xff0c;\u5145\u5206\u5229\u7528\u8def\u7531\u5668\u4e0a\u7aef\u53e3\u8f6c\u53d1\u3001UPnP IGD\u3001DMZ \u7b49\u529f\u80fd\u3002<\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff0c;\u5149\u732b\u6539\u6865\u63a5&#xff0c;\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u62e8\u6253\u8fd0\u8425\u5546\u7684\u7535\u8111&#xff0c;\u8ba9\u8fd0\u8425\u5546\u8fdc\u7a0b\u4e0b\u53d1\u914d\u7f6e\u3002\u4e5f\u53ef\u4ee5\u767b\u5f55\u5149\u732b\u7684\u7ba1\u7406\u9875\u9762&#xff0c;\u81ea\u884c\u8fdb\u884c\u4fee\u6539&#xff0c;\u5177\u4f53\u9700\u8981\u4e0a\u7f51\u641c\u7d22\u8fd0\u8425\u5546\u540d\u548c\u5149\u732b\u578b\u53f7\u6765\u67e5\u627e\u6559\u7a0b\u3002<\/p>\n<h3>5 \u5411\u8fd0\u8425\u5546\u7533\u8bf7\u83b7\u53d6\u516c\u7f51 IP<\/h3>\n<p>\u7531\u4e8e IPv4 \u5730\u5740\u8d44\u6e90\u4e0d\u8db3&#xff0c;\u4e0d\u5c11\u8fd0\u8425\u5546\u5df2\u7ecf\u4e0d\u518d\u5206\u914d\u516c\u7f51 IP\u3002<\/p>\n<p>\u4f46\u662f&#xff0c;\u7531\u4e8e IPv4 \u5730\u5740\u8d44\u6e90\u672c\u8eab\u5df2\u7ecf\u4e0d\u8db3&#xff0c;\u4e0d\u4e00\u5b9a\u80fd\u591f\u6210\u529f\u7533\u8bf7\u5230\u516c\u7f51 IP\u3002\u53e6\u5916&#xff0c;\u62e5\u6709\u516c\u7f51 IP&#xff0c;\u5bb6\u4e2d\u7684\u8def\u7531\u5668\u80fd\u76f4\u63a5\u88ab\u516c\u7f51\u8bbf\u95ee&#xff0c;\u5982\u679c\u6ca1\u6709\u914d\u7f6e\u597d&#xff0c;\u53ef\u80fd\u4f1a\u5e26\u6765\u66f4\u591a\u5b89\u5168\u95ee\u9898\u3002\u6240\u4ee5&#xff0c;\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u9700\u8981&#xff0c;\u6765\u51b3\u5b9a\u662f\u5426\u7533\u8bf7\u516c\u7f51 IP\u3002<\/p>\n<h3>6 PCP<\/h3>\n<p>\u5bf9\u4e8e\u8fd0\u884c NAT \u7684\u5bb6\u5ead\u8def\u7531\u5668&#xff0c;\u901a\u8fc7 UPnP IGD \u6216 NAT-PMP \u534f\u8bae&#xff0c;\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u7aef\u53e3\u6620\u5c04\u5230\u516c\u7f51\u3002<\/p>\n<p>\u4f46\u662f&#xff0c;\u7531\u4e8e IPv4 \u5730\u5740\u7684\u4e0d\u8db3&#xff0c;\u7535\u4fe1\u8fd0\u8425\u5546\u4e5f\u5f00\u59cb\u4f7f\u7528 NAT&#xff0c;\u4e0d\u518d\u4e3a\u7528\u6237\u5206\u914d\u516c\u7f51 IP\u3002\u90a3\u4e48\u662f\u5426\u6709\u4e00\u79cd\u7c7b\u4f3c UPnP IGD \u6216\u8005 NAT-PMP \u7684\u534f\u8bae&#xff0c;\u8fd0\u884c\u5728\u8fd0\u8425\u5546\u7684\u8def\u7531\u5668\u4e0a&#xff0c;\u80fd\u76f4\u63a5\u5728\u8fd0\u8425\u5546\u8def\u7531\u5668\u4e0a\u521b\u5efa\u7aef\u53e3\u8f6c\u53d1\u89c4\u5219&#xff1f;<\/p>\n<p>PCP \u5c31\u662f\u8fd9\u6837\u4e00\u79cd\u534f\u8bae&#xff1a;<\/p>\n<p>Port Control Protocol (PCP) &#8211; RFC6887 \u8be5\u534f\u8bae\u7531 NAT-PMP \u53d1\u5c55\u800c\u6765&#xff0c;\u8fd0\u884c\u5728\u8fd0\u8425\u5546\u7684\u8def\u7531\u5668\u4e0a\u3002\u7528\u6237\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u901a\u8fc7 PCP \u534f\u8bae&#xff0c;\u7533\u8bf7\u5728\u8fd0\u8425\u5546\u8def\u7531\u5668\u4e0a\u6253\u5f00\u7aef\u53e3\u3002<\/p>\n<p>PCP \u9700\u8981\u8fd0\u8425\u5546\u7684\u914d\u5408&#xff0c;\u9009\u7528\u652f\u6301\u7684\u7f51\u7edc\u8bbe\u5907&#xff0c;\u5e76\u6253\u5f00 PCP \u529f\u80fd&#xff0c;\u624d\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002\u6839\u636e V2EX \u7f51\u53cb\u7684\u6d4b\u8bd5&#xff0c;\u56fd\u5185\u5df2\u6709\u8fd0\u8425\u5546\u652f\u6301\u8be5\u534f\u8bae&#xff0c;\u80fd\u901a\u8fc7 PCP \u4f7f eMule \u83b7\u5f97 High ID&#xff1a;<\/p>\n<p>\u4ecb\u7ecd\u4e00\u4e2a\u53ef\u80fd\u6709\u52a9\u4e8e CGN NAT \u7aef\u53e3\u6620\u5c04\u7684\u5de5\u5177 &#8211; V2EX<\/p>\n<h3>7 \u670d\u52a1\u5668\u4e2d\u8f6c<\/h3>\n<p>\u901a\u8fc7\u7b2c\u4e09\u65b9\u670d\u52a1\u5668\u4e2d\u8f6c\u7684\u65b9\u5f0f&#xff0c;\u8ba9\u5185\u7f51\u8bbe\u5907\u4f9b\u5916\u90e8\u8bbf\u95ee\u3002<\/p>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u867d\u7136\u9700\u8981\u7b2c\u4e09\u65b9\u670d\u52a1\u5668\u7684\u53c2\u4e0e&#xff0c;\u6d6a\u8d39\u8d44\u6e90&#xff0c;\u4f46\u6210\u529f\u7387\u6700\u9ad8&#xff0c;\u6240\u4ee5\u5e94\u7528\u8303\u56f4\u4e5f\u5f88\u666e\u904d\u3002\u4f8b\u5982\u5e38\u89c1\u7684\u6e38\u620f\u52a0\u901f\u5668&#xff0c;\u5c31\u53ef\u4ee5\u901a\u8fc7\u7b2c\u4e09\u65b9\u670d\u52a1\u5668\u4e2d\u8f6c\u7684\u65b9\u5f0f&#xff0c;\u4e3a\u6e38\u620f\u4e3b\u673a\u63d0\u4f9b\u66f4\u9ad8\u7684 NAT \u7c7b\u578b&#xff1a; \u7f51\u6613UU\u52a0\u901f\u76d2 \u4e5f\u6709\u4e0d\u5c11\u5f00\u6e90\u7684\u53cd\u5411\u4ee3\u7406\u5de5\u5177&#xff0c;\u53ef\u4ee5\u642d\u5efa\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a&#xff0c;\u4f7f\u5185\u7f51\u670d\u52a1\u53ef\u5728\u516c\u7f51\u8bbf\u95ee&#xff1a; fatedier\/frp ehang-io\/nps<\/p>\n<p>\u670d\u52a1\u5668\u4e2d\u8f6c\u9700\u8981\u989d\u5916\u7684\u670d\u52a1\u5668&#xff0c;\u4e14\u9700\u8981\u6d88\u8017\u670d\u52a1\u5668\u4e0a\u7684\u6d41\u91cf\u3002\u6240\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u5f80\u5f80\u9700\u8981\u7528\u6237\u989d\u5916\u4ed8\u8d39&#xff0c;\u4f8b\u5982\u8d2d\u4e70\u6e38\u620f\u52a0\u901f\u5668\u4f1a\u5458&#xff0c;\u6216\u8005\u81ea\u884c\u8d2d\u4e70\u865a\u62df\u670d\u52a1\u5668&#xff0c;\u5e76\u5728\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u53cd\u5411\u4ee3\u7406\u5e94\u7528\u3002<\/p>\n<p>\u800c\u5bf9\u4e8e\u5fae\u4fe1\u8bed\u97f3\u3001\u89c6\u9891\u901a\u8bdd\u7b49\u5e94\u7528&#xff0c;\u9ed8\u8ba4\u4e5f\u4f1a\u4f7f\u7528\u5176\u4ed6 NAT \u7a7f\u900f\u6280\u672f&#xff0c;\u6765\u8282\u7701\u5fae\u4fe1\u670d\u52a1\u5668\u7684\u6d41\u91cf\u8d39\u7528&#xff0c;\u964d\u4f4e\u6210\u672c\u3002\u5f53\u5176\u4ed6 NAT \u7a7f\u900f\u65b9\u5f0f\u4e0d\u53ef\u7528\u65f6&#xff0c;\u5219\u91c7\u7528\u670d\u52a1\u5668\u4e2d\u8f6c\u7684\u65b9\u5f0f&#xff0c;\u4fdd\u8bc1\u80fd\u591f\u6b63\u5e38\u901a\u8bdd\u3002<\/p>\n<h3>8 NAT \u6253\u6d1e<\/h3>\n<p>NAT \u6253\u6d1e\u7684\u5de5\u4f5c\u8fc7\u7a0b NAT \u6253\u6d1e&#xff0c;\u5c31\u53ef\u4ee5 \u4f7f\u4e24\u53f0\u5185\u7f51\u8bbe\u5907\u80fd\u591f\u76f4\u63a5\u901a\u4fe1&#xff0c;\u4e0d\u9700\u8981\u7b2c\u4e09\u65b9\u670d\u52a1\u5668\u7684\u4e2d\u8f6c\u3001\u4e0d\u9700\u8981\u5bf9\u8def\u7531\u5668\u8fdb\u884c\u7279\u6b8a\u8bbe\u7f6e\u3001\u4e5f\u4e0d\u9700\u8981\u8fd0\u8425\u5546\u7684\u914d\u7f6e\u3002\u5fae\u4fe1\u8bed\u97f3\u3001\u817e\u8baf\u4f1a\u8bae\u3001Skype \u901a\u4fe1\u7b49\u6d88\u8017\u6d41\u91cf\u8f83\u5927\u7684\u5e94\u7528&#xff0c;\u90fd\u4f1a\u5229\u7528 NAT \u6253\u6d1e\u5b9e\u73b0\u5185\u7f51\u8bbe\u5907\u95f4\u7684\u76f4\u63a5\u901a\u4fe1\u3002<\/p>\n<p>\u6211\u4eec\u4ee5 PC 1\u3001PC 2 \u4e24\u53f0\u4e3b\u673a\u7684\u901a\u4fe1\u4e3a\u4f8b\u3002\u4e24\u53f0\u4e3b\u673a\u5747\u4f4d\u4e8e NAT \u8def\u7531\u5668\u4e4b\u540e&#xff0c;\u5404\u81ea\u7684 IP \u5730\u5740\u90fd\u662f\u5185\u7f51\u5730\u5740&#xff0c;\u65e0\u6cd5\u4e92\u76f8\u901a\u4fe1&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135232-6802592071f8e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 1 \u5728\u4e24\u53f0\u4e3b\u673a\u80fd\u591f\u76f4\u63a5\u901a\u4fe1\u4e4b\u524d&#xff0c;\u9700\u8981\u4e00\u53f0\u7b2c\u4e09\u65b9\u670d\u52a1\u5668&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135232-68025920bb19e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 2 PC 1\u3001PC 2 \u9996\u5148\u9700\u8981\u7ed9\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2a\u62a5\u6587\u3002\u7ecf\u8fc7 NAT \u8def\u7531\u5668\u540e&#xff0c;\u62a5\u6587\u7684\u6e90 IP \u548c\u6e90\u7aef\u53e3\u53f7\u88ab\u8f6c\u6362&#xff0c;\u540c\u65f6\u5728\u8def\u7531\u5668\u4e0a\u5f62\u6210 NAT \u8868\u9879&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135233-680259210dd00.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 3 \u62a5\u6587\u5230\u8fbe\u670d\u52a1\u5668\u540e&#xff0c;\u670d\u52a1\u5668\u8bb0\u5f55\u4e0b PC 1\u3001PC 2 \u4e24\u4fa7\u62a5\u6587\u7684\u6e90 IP \u548c\u6e90\u7aef\u53e3\u53f7&#xff0c;\u4e5f\u5c31\u662f PC 1\u3001PC 2 \u4e24\u4fa7\u7684\u516c\u7f51 IP \u548c\u5916\u90e8\u7aef\u53e3\u53f7\u3002\u7136\u540e&#xff0c;\u670d\u52a1\u5668\u5c06\u4e24\u53f0\u8bbe\u5907\u7684\u516c\u7f51 IP\u3001\u5916\u90e8\u7aef\u53e3\u53f7\u53d1\u9001\u7ed9\u5bf9\u65b9\u3002<\/p>\n<p>4 \u8fd9\u6837&#xff0c;PC 1\u3001PC 2 \u90fd\u80fd\u76f8\u4e92\u77e5\u9053\u5bf9\u65b9\u7684\u516c\u7f51 IP \u548c\u5916\u90e8\u7aef\u53e3\u53f7<\/p>\n<p>5 \u7ecf\u5386\u4e86\u4e0a\u8ff0\u6b65\u9aa4&#xff0c;NAT \u6253\u6d1e\u6210\u529f&#xff0c;\u4e24\u53f0\u8bbe\u5907\u5c31\u53ef\u4ee5\u4e0d\u4f9d\u8d56\u7b2c\u4e09\u65b9\u8def\u7531\u5668&#xff0c;\u76f4\u63a5\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p>\u5f53\u7136&#xff0c;\u4e0a\u8ff0\u8fc7\u7a0b\u53ea\u662f\u4e00\u4e2a\u7b80\u5316\u7684\u63cf\u8ff0&#xff0c;\u4e0d\u5b8c\u5168\u63cf\u8ff0\u3002\u5982\u679c\u60f3\u8981\u8fdb\u4e00\u6b65\u8be6\u7ec6\u4e86\u89e3 NAT \u6253\u6d1e\u7684\u8fc7\u7a0b&#xff0c;\u5efa\u8bae\u53c2\u8003\u6587\u672b\u7684 RFC \u6587\u6863\u94fe\u63a5\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u51fa&#xff0c;NAT \u6253\u6d1e\u53ef\u4ee5\u5728\u65e0\u9700\u8def\u7531\u5668\u7279\u6b8a\u914d\u7f6e\u3001\u65e0\u9700\u8fd0\u8425\u5546\u914d\u5408\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5b9e\u73b0\u4e24\u4e2a\u5185\u7f51\u8bbe\u5907\u7684\u76f8\u4e92\u901a\u4fe1\u3002\u53e6\u5916&#xff0c;\u5bf9\u4e8e\u591a\u5c42 NAT \u7684\u7f51\u7edc\u73af\u5883&#xff08;\u4f8b\u5982\u8fd0\u8425\u5546\u548c\u5bb6\u5ead\u8def\u7531\u5668\u5404\u8fdb\u884c\u4e00\u7ea7 NAT&#xff09;&#xff0c;NAT \u6253\u6d1e\u4e5f\u80fd\u6b63\u5e38\u5904\u7406\u3002<\/p>\n<p>\u8fd9\u4e2aNAT\u6253\u6d1e\u6211\u6709\u5c1d\u8bd5\u5b9e\u73b0 &#xff0c;\u5b8c\u6210\u4e861&#xff0c;2&#xff0c;3&#xff0c;4 \u6b65\u9aa4 \u4f46\u662f5 \u4e24\u53f0\u4e3b\u673a\u8fd8\u662f\u65e0\u6cd5\u4e92\u76f8\u8bbf\u95ee&#xff0c;\u6293\u5305\u53d1\u73b0\u53cc\u65b9\u6570\u636e\u90fd\u53d1\u9001\u51fa\u53bb\u4e86 \u4f46\u662f\u5bf9\u7aef\u6536\u4e0d\u5230&#xff0c;\u6000\u7591\u6211\u8fd9\u8fb9<\/p>\n<li>\u73af\u5883\u4ee5\u53ca\u4e92\u8054\u7f51\u76f4\u63a5\u592a\u8fc7\u590d\u6742 \u8def\u7531\u5668\u8f6c\u53d1\u6216\u8005\u53d1\u9001\u65f6\u8def\u7ebf\u53ef\u80fd\u4e0d\u540c<\/li>\n<li>\u5206\u914d\u7684IP\u548c\u7aef\u53e3\u4e00\u76f4\u5728\u53d8\u5316 \u65e0\u6cd5\u8fdb\u884cping<\/li>\n<li>\u8def\u7531\u8868\u548cNAT\u8868\u6211\u6ca1\u6709\u6743\u9650\u53bb\u4fee\u6539<\/li>\n<li>\u53ef\u80fd\u5b58\u5728\u522b\u7684\u95ee\u9898 \u76ee\u524d\u6682\u65f6\u65e0\u6cd5\u89e3\u51b3&#xff0c;\u4e0b\u4e00\u7bc7\u6587\u7ae0\u5927\u6982\u5199\u4e00\u4e0b\u6211\u7684\u505a\u6cd5 \u5e0c\u671b\u6709\u5927\u4f6c\u6307\u70b9\u4e00\u4e0b<\/li>\n<p>\u6587\u7ae0\u8f6c\u81ea: https:\/\/sspai.com\/post\/68037<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u90a3\u4e48\uff0c\u5728 NAT \u73af\u5883\u4e0b\uff0c\u5e94\u8be5\u5982\u4f55\u8ba9\uff0c\u4f7f\u5185\u7f51\u8bbe\u5907\u88ab\u5916\u90e8\u8fde\u63a5\uff1f_\u7aef\u53e3\u8f6c\u53d1pcp<\/p>\n","protected":false},"author":2,"featured_media":15280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,78],"topic":[],"class_list":["post-15284","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/15284.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u90a3\u4e48\uff0c\u5728 NAT \u73af\u5883\u4e0b\uff0c\u5e94\u8be5\u5982\u4f55\u8ba9\uff0c\u4f7f\u5185\u7f51\u8bbe\u5907\u88ab\u5916\u90e8\u8fde\u63a5\uff1f_\u7aef\u53e3\u8f6c\u53d1pcp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/15284.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T13:52:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135232-6802592026952.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15284.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/15284.html\",\"name\":\"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T13:52:34+00:00\",\"dateModified\":\"2025-04-18T13:52:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/15284.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/15284.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15284.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/15284.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u90a3\u4e48\uff0c\u5728 NAT \u73af\u5883\u4e0b\uff0c\u5e94\u8be5\u5982\u4f55\u8ba9\uff0c\u4f7f\u5185\u7f51\u8bbe\u5907\u88ab\u5916\u90e8\u8fde\u63a5\uff1f_\u7aef\u53e3\u8f6c\u53d1pcp","og_url":"https:\/\/www.wsisp.com\/helps\/15284.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T13:52:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418135232-6802592026952.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/15284.html","url":"https:\/\/www.wsisp.com\/helps\/15284.html","name":"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T13:52:34+00:00","dateModified":"2025-04-18T13:52:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/15284.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/15284.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/15284.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u3011\u3010\u7f51\u7edc\u3011\u4e0d\u540c\u5b50\u7f51\u4e0b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u901a\u4fe1\u5176\u5b83\u65b9\u5f0f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=15284"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15284\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/15280"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=15284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=15284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=15284"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=15284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}