{"id":9076,"date":"2024-08-05T23:21:27","date_gmt":"2024-08-05T15:21:27","guid":{"rendered":"https:\/\/white-night.club\/?p=9076"},"modified":"2024-08-16T08:55:32","modified_gmt":"2024-08-16T00:55:32","slug":"study34","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2024\/08\/05\/study34\/","title":{"rendered":"\u90a3\u4e9b\u8ba1\u7f51\u534f\u8bae"},"content":{"rendered":"\n<p>\u603b\u7ed3\u4e0b\u5728\u8ba1\u7f51\u4e2d\u5e38\u89c1\u7684\u534f\u8bae\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-72e4fc60a5b17c6f9eee34be30dcb508\">\n<p>TCP<\/p>\n<cite><em>\u4f20\u8f93\u63a7\u5236\u534f\u8bae<\/em><\/cite><\/blockquote>\n\n\n\n<p>TCP\uff08Transmission Control Protocol\uff09\uff0c\u53c8\u540d<strong>\u4f20\u8f93\u63a7\u5236\u534f\u8bae<\/strong>\u3002TCP\u63d0\u4f9b<strong>\u9762\u5411\u8fde\u63a5\u7684\u53ef\u9760\u7684\u5b57\u8282\u6d41\u4f20\u8f93<\/strong>\u670d\u52a1\u3002<\/p>\n\n\n\n<p>TCP\u662f\u4f20\u8f93\u5c42\u534f\u8bae\uff0c\u5411\u4e0b\u8c03\u7528\u7f51\u7edc\u5c42\u7684IP\u534f\u8bae\u3002<\/p>\n\n\n\n<p>TCP\u7684\u8fd0\u884c\u8fc7\u7a0b\u5206\u4e3a\u5efa\u7acb\u8fde\u63a5\uff08<strong>\u4e09\u6b21\u63e1\u624b<\/strong>\uff09\u548c\u65ad\u5f00\u8fde\u63a5\uff08<strong>\u56db\u6b21\u6325\u624b<\/strong>\uff09\u3002<\/p>\n\n\n\n<p>\u5efa\u7acbTCP\u8fde\u63a5\u53ef\u5206\u4e3a\u4e09\u6b65\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001<strong>SYN<\/strong>\uff08<strong>Synchronize Sequence Numbers<\/strong>\uff0c\u540c\u6b65\u5e8f\u5217\u7f16\u53f7\uff09\u5305\uff0c\u8fd9\u8868\u793a\u8be5\u5305\u7684\u6807\u5fd7\u4f4d\u4e3aSYN\uff0c\u4ee3\u8868<strong>\u8bf7\u6c42\u5efa\u7acb\u8fde\u63a5<\/strong>\u3002\u968f\u540e\u5ba2\u6237\u7aef\u8fdb\u5165<strong>SYN-SENT<\/strong>\u72b6\u6001\u5e76\u7b49\u5f85\u670d\u52a1\u5668\u786e\u8ba4\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u5668\u6536\u5230\u5e76\u786e\u8ba4<strong>SYN<\/strong>\u5305\uff0c\u5411\u5ba2\u6237\u7aef\u53d1\u9001<strong>SYN+ACK<\/strong>\u5305\uff0c\u968f\u540e\u670d\u52a1\u5668\u8fdb\u5165<strong>SYN-RECV<\/strong>\u72b6\u6001\u3002<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u6536\u5230<strong>SYN+ACK<\/strong>\u5305\uff0c\u6700\u540e\u5411\u670d\u52a1\u5668\u53d1\u9001<strong>ACK<\/strong>\u5305\u5e76\u8fdb\u5165<strong>ESTABLISHED<\/strong>\u72b6\u6001\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u5668\u6536\u5230ACK\u5305\uff0c\u8fdb\u5165<strong>ESTABLISHED<\/strong>\u72b6\u6001\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e09\u6b21\u63e1\u624b\u7684\u672c\u8d28\u5c31\u662f\u786e\u8ba4\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5404\u81ea\u7684\u6570\u636e<strong>\u63a5\u53d7<\/strong>\u3001<strong>\u53d1\u9001<\/strong>\u529f\u80fd\u6b63\u5e38\u3002\u7b2c\u4e00\u6b21\u63e1\u624b\u786e\u8ba4\u5ba2\u6237\u7aef\u53d1\u9001\u6570\u636e\u6b63\u5e38\uff0c\u7b2c\u4e8c\u6b21\u63e1\u624b\u786e\u8ba4\u670d\u52a1\u5668\u63a5\u6536\u3001\u53d1\u9001\u6570\u636e\u6b63\u5e38\u3002\u7b2c\u4e09\u6b21\u63e1\u624b\u786e\u8ba4\u5ba2\u6237\u7aef\u63a5\u6536\u6570\u636e\u6b63\u5e38\u3002<\/p>\n\n\n\n<p>\u65ad\u5f00TCP\u8fde\u63a5\u53ef\u5206\u4e3a\u56db\u6b65\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5ba2\u6237\u7aef\u6536\u5230\u7ec8\u6b62\u8fde\u63a5\u7684\u4fe1\u53f7\uff0c\u5411\u670d\u52a1\u5668\u53d1\u9001<strong>FIN<\/strong>\u6bb5\uff0c\u8868\u793a\u5ba2\u6237\u7aef\u4e0d\u518d\u5411\u670d\u52a1\u5668\u4f20\u8f93\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u5668\u6536\u5230FIN\u6bb5\uff0c\u5411\u5ba2\u6237\u7aef\u8fd4\u56de<strong>ACK<\/strong>\u6bb5\uff0c\u8868\u793a\u670d\u52a1\u5668\u6536\u5230\u6765\u81ea\u5ba2\u6237\u7aef\u7684<strong>FIN<\/strong>\u6bb5\u3002\u6b64\u65f6\u670d\u52a1\u5668\u4ecd\u53ef\u5411\u5ba2\u6237\u7aef\u4f20\u8f93\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u5668\u5904\u7406\u5b8c\u6240\u6709\u6570\u636e\u540e\uff0c\u5411\u5ba2\u6237\u7aef\u8fd4\u56de<strong>FIN<\/strong>\u6bb5\uff0c\u8868\u793a\u670d\u52a1\u5668\u6ca1\u6709\u66f4\u591a\u53ef\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u7684\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u6536\u5230\u6765\u81ea\u670d\u52a1\u5668\u7684<strong>FIN<\/strong>\u6bb5\uff0c\u5411\u670d\u52a1\u5668\u53d1\u9001<strong>ACK<\/strong>\u3002\u5982\u679c\u670d\u52a1\u5668\u672a\u6536\u5230\u6765\u81ea\u5ba2\u6237\u7aef\u7684<strong>FIN<\/strong>\uff0c\u4f1a\u91cd\u53d1<strong>FIN<\/strong>\u6bb5\u3002\u6240\u4ee5\u5ba2\u6237\u7aef\u4f1a\u57282<strong>MSL<\/strong>\uff08<strong>Maximum Segment LifeTime\uff0c<\/strong>\u62a5\u6587\u6700\u5927\u751f\u6210\u65f6\u95f4\uff09\u540e\uff0c\u624d\u8fdb\u5165<strong>CLOSE<\/strong>\u72b6\u6001\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u5668\u6536\u5230<strong>ACK<\/strong>\uff0c\u8fdb\u5165<strong>CLOSE<\/strong>\u72b6\u6001\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u56db\u6b21\u6325\u624b\u7684\u672c\u8d28\u5c31\u662f\u4e00\u5bf9FIN+ACK\u6bb5\u7684\u4ea4\u6362\u3002\u5728\u67d0\u79cd\u60c5\u51b5\u4e0bTCP\u4e5f\u80fd\u5b9e\u73b0\u4e09\u6b21\u6325\u624b\uff0c\u53ef\u89c1\u672c\u7ad9\u6587\u7ae0<a href=\"https:\/\/white-night.club\/index.php\/2024\/03\/09\/study33\/\">TCP\u662f\u4e09\u6b21\u6325\u624b\u8fd8\u662f\u56db\u6b21\u6325\u624b<\/a><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-fdbf0102853a3b37da6c94da2dab452e\">\n<p>TCP\u5b9e\u4f8b<\/p>\n<cite><em>tcpdump\u6293\u53d6tcp\u5305<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u672c\u6587\u7684\u5b9e\u4f8b\u5927\u591a\u9700\u8981\u865a\u62df\u673a\u8054\u7f51\u3002\u5982\u679c\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u865a\u62df\u673a\u6ca1\u7f51\uff0c\u53ef\u53c2\u8003\u672c\u7ad9\u6587\u7ae0<a href=\"https:\/\/white-night.club\/index.php\/2024\/08\/08\/blog97\/\">Vmware\u865a\u62df\u673a\u65e0\u7f51\u7edc\u7684\u6392\u67e5\u601d\u8def<\/a><\/p>\n\n\n\n<p>\u7528tcpdump\u6293\u53d6tcp\u5305\u7684\u6307\u4ee4\u5982\u4e0b<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tcpdump -i ens33 tcp\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">tcpdump<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-i<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">ens33<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">tcp<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u7b80\u5355\u7684\u5c31\u662f\u76f4\u63a5telnet\u865a\u62df\u673a\uff0c\u56e0\u4e3atelnet\u4f5c\u4e3a\u7528\u4e8e\u8fdc\u7a0b\u8fde\u63a5\u7684\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u5f88\u660e\u663e\u4f1a\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u8c03\u7528tcp\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-12-1024x453.png\" alt=\"\" class=\"wp-image-9146\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-12-1024x453.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-12-300x133.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-12-768x340.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-12.png 1453w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u5acc\u7528\u7ec8\u7aef\u770b\u6293\u5305\u7ed3\u679c\u770b\u7684\u773c\u775b\u75bc\uff0c\u8fd8\u53ef\u4ee5\u5c06\u7ed3\u679c\u4fdd\u5b58\u5230pcap\u6587\u4ef6\u4e2d\uff0c\u518d\u7528wireshark\u67e5\u770b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tcpdump -i ens33 tcp -w \/home\/test.pcap\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">tcpdump<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-i<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">ens33<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">tcp<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-w<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/home\/test.pcap<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-13-1024x640.png\" alt=\"\" class=\"wp-image-9147\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-13-1024x640.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-13-300x188.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-13-768x480.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-13.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-be2200b04e6d068eeb937a434a6665c0\">\n<p>IP<\/p>\n<cite><em>\u7f51\u9645\u4e92\u8fde\u534f\u8bae<\/em><\/cite><\/blockquote>\n\n\n\n<p>IP\uff08Internet Protocol\uff09\uff0c\u53c8\u540d<strong>\u7f51\u9645\u4e92\u8fde\u534f\u8bae<\/strong>\u3002IP\u534f\u8bae\u63d0\u4f9bIP\u5730\u5740\u4e0eIP\u5206\u7ec4\u7684\u8f6c\u53d1\u3002<\/p>\n\n\n\n<p>IP\u662f\u7f51\u7edc\u5c42\u534f\u8bae\uff0c\u6ca1\u6709\u5dee\u9519\u63a7\u5236\u673a\u5236\u3002\u63d0\u4f9b\u7684\u662f\u65e0\u8fde\u63a5\uff0c\u4e0d\u53ef\u9760\u7684\u670d\u52a1\u3002<\/p>\n\n\n\n<p>IP\u534f\u8bae\u672c\u8eab\u6ca1\u5565\u597d\u8bb2\u7684\u5b9e\u4f8b\u3002\u968f\u4fbf\u5f00\u4e2a\u7f51\u9875\u6293\u5305\u7136\u540e\u9664\u6389\u524d14\u5b57\u8282\uff0c\u518d\u7167\u7740\u4e0b\u56fe\u5206\u6790\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1013\" height=\"403\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-14.png\" alt=\"\" class=\"wp-image-9155\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-14.png 1013w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-14-300x119.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-14-768x306.png 768w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><figcaption class=\"wp-element-caption\">\u501f\u7528\u7f51\u56fe<\/figcaption><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-dc68d6f928c778ccf1dd77b3cb38946c\">\n<p>ICMP<\/p>\n<cite><em>\u7f51\u9645\u63a7\u5236\u62a5\u6587\u534f\u8bae<\/em><\/cite><\/blockquote>\n\n\n\n<p>ICMP\uff08Internet Control Message Protocol\uff09\uff0c\u53c8\u540d<strong>\u4e92\u8054\u7f51\u63a7\u5236\u62a5\u6587\u534f\u8bae<\/strong>\u3002IP\u534f\u8bae\u672c\u8eab\u5e76\u6ca1\u6709\u5dee\u9519\u62a5\u544a\u548c\u5dee\u9519\u66f4\u6b63\u7684\u673a\u5236\uff0c\u4e5f\u6ca1\u6709\u5224\u65ad\u5176\u4ed6\u4e3b\u673a\u548c\u8def\u7531\u5668\u662f\u5426\u6d3b\u8dc3\u7684\u67e5\u8be2\u673a\u5236\uff0c\u800cICMP\u4fbf\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e24\u4e2a\u95ee\u9898\u800c\u8bbe\u8ba1\u7684\u3002<\/p>\n\n\n\n<p>ICMP\u662f\u7f51\u7edc\u5c42\u534f\u8bae\uff0c\u4f46\u5b83\u7684\u62a5\u6587\u4f1a\u5148\u88ab\u5c01\u88c5\u5230IP\u6570\u636e\u62a5\u4e2d\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u4f20\u8f93\u5230\u6570\u636e\u94fe\u8def\u5c42\u3002<\/p>\n\n\n\n<p>ICMP\u62a5\u6587\u5206\u4e3a\u4e24\u7c7b\uff1a<strong>\u5dee\u9519\u62a5\u544a\u62a5\u6587<\/strong>\u548c<strong>\u67e5\u8be2\u62a5\u6587<\/strong>\u3002<\/p>\n\n\n\n<ul>\n<li>\u5dee\u9519\u62a5\u544a\u62a5\u6587\u7528\u4e8e\u5411\u76ee\u7684\u7aef\u62a5\u544a\u5728\u5904\u7406IP\u6570\u636e\u62a5\u65f6\u78b0\u5230\u7684\u95ee\u9898\u3002ICMP\u53ea\u62a5\u544a\u5dee\u9519\uff0c\u5e76\u4e0d\u66f4\u6b63\u5dee\u9519\u3002<\/li>\n\n\n\n<li>\u67e5\u8be2\u62a5\u6587\u5219\u6210\u5bf9\u51fa\u73b0\uff0c\u7528\u4e8e\u4ece\u4e3b\u673a\u6216\u8def\u7531\u5668\u5f97\u5230\u7279\u5b9a\u7684\u4fe1\u606f\u3002\u6bd4\u5982\u53d1\u73b0\u5b83\u4eec\u7684\u90bb\u5c45\u4e3b\u673a\u6216\u7f51\u7edc\u4e2d\u7684\u8def\u7531\u5668\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-9c22fdd854b56beb41c0ee9d200cf6b6\">\n<p>ICMP\u5b9e\u4f8b<\/p>\n<cite><em>\u6293\u53d6ICMP\u5dee\u9519\u62a5\u544a\u62a5\u6587<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u7528ping\u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u6293\u53d6\u5230\u67e5\u8be2\u62a5\u6587\u3002\u5982\u679c\u60f3\u6293\u5dee\u9519\u62a5\u6587\u7684\u8bdd\u90a3\u5c31\u5f97\u7528traceroute\u3002\u4e0d\u8fc7traceroute\u672c\u8eab\u9ed8\u8ba4\u53d1\u9001\u7684\u662fUDP\uff0c\u800c\u4e0d\u662fICMP\u67e5\u8be2\u62a5\u6587\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u4f7f\u7528\u865a\u62df\u673a\u6293\u53d6traceroute\u7684\u5305\uff0c\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u53ef\u53c2\u8003<a href=\"https:\/\/white-night.club\/index.php\/2024\/08\/16\/blog99\/\">\u63a2\u8ba8traceroute\u4e3a\u4ec0\u4e48\u65e0\u6cd5\u5728NAT\u73af\u5883\u4e2d\u4f7f\u7528<\/a>\u8fd9\u4e00\u7bc7\u6587\u7ae0\u3002<\/p>\n\n\n\n<p>\u6700\u7701\u5fc3\u7684\u662f\u5728\u4f60\u4f7f\u7528\u7684\u4e3b\u673a\u4e0a\u76f4\u63a5\u6293\u5305\uff0c\u800c\u975e\u4f7f\u7528\u865a\u62df\u673a\u3002\u50cf\u5728windows\u4e0a\u53ef\u4ee5\u7528tracert\u3002\u4e0d\u8fc7tracert\u548ctraceroute\u8fd8\u662f\u6709\u70b9\u533a\u522b\u7684\uff0c\u6bd4\u5982tracert\u9ed8\u8ba4\u53d1\u9001ICMP\u67e5\u8be2\u62a5\u6587\u8fd9\u79cd\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tracert www.baidu.com\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">tracert<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">www.baidu.com<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u6570\u636e\u62a5\u7ecf\u8fc7\u7684\u8def\u7531\u5668\u4f1a\u5411\u4e3b\u673a\u8fd4\u56de\u5dee\u9519\u62a5\u544a\u62a5\u6587\uff0c\u7c7b\u578b\u4e3a11\uff0c\u4e5f\u5c31\u662f\u65f6\u95f4\u8d85\u65f6\u3002\u8bf4\u660e\u8be5\u6570\u636e\u62a5\u5728\u7ecf\u8fc7\u8be5\u8def\u7531\u5668\u65f6TTL\u53d8\u4e3a0\uff0c\u88ab\u8def\u7531\u5668\u4e22\u5f03\uff0c\u5e76\u5411\u6e90\u5730\u5740\u4e3b\u673a\u53d1\u9001ICMP\u5dee\u9519\u62a5\u544a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"681\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-29.png\" alt=\"\" class=\"wp-image-9226\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-29.png 1020w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-29-300x200.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-29-768x513.png 768w\" sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-da3fa67df2dc3a2cfc733cf7743941a1\">\n<p>DHCP<\/p>\n<cite><em>\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u534f\u8bae<\/em><\/cite><\/blockquote>\n\n\n\n<p>DHCP\uff08Dynamic Host Configuration\uff09\uff0c\u53c8\u540d<strong>\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u534f\u8bae<\/strong>\u3002\u7b80\u5355\u6765\u8bf4DHCP\u88ab\u7528\u4e8e\u5c06IP\u5730\u5740\u5206\u914d\u7ed9\u4e3b\u673a\u548c\u8def\u7531\u5668\u3002DHCP\u7684<strong>\u6e90\u7aef\u53e3\u4e3a68\uff0c\u76ee\u7684\u7aef\u53e3\u5219\u4e3a67<\/strong>\u3002<\/p>\n\n\n\n<p>DHCP\u662f\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u5411\u4e0b\u8c03\u7528\u4f20\u8f93\u5c42\u7684UDP\u534f\u8bae\u3002DHCP\u521b\u5efa\u7684\u62a5\u6587\u4f1a\u88ab\u5c01\u88c5\u5230UDP\u7528\u6237\u6570\u636e\u62a5\u4e2d\u3002<\/p>\n\n\n\n<p>DHCP\u540c\u6837\u662fC\/S\u6a21\u5f0f\u3002DHCP\u8fd0\u884c\u8fc7\u7a0b\u53ef\u5206\u4e3a\u56db\u6b65\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5ba2\u6237\u7aef\u521b\u5efaDHCP <strong>DISCOVER<\/strong>\u62a5\u6587\u3002DISCOVER\u8868\u793a\u201c\u53d1\u73b0\u201d\uff0c\u56e0\u4e3a\u6b64\u65f6\u5ba2\u6237\u7aef\u65e2\u4e0d\u77e5\u9053\u81ea\u5df1\u7684IP\uff0c\u4e5f\u4e0d\u77e5\u9053DHCP\u670d\u52a1\u5668\u7684IP\uff0c\u6240\u4ee5\u8be5\u62a5\u6587\u4f1a\u88ab\u5e7f\u64ad\uff08\u76ee\u7684\u5730\u5740\u4e3a255.255.255.255\uff09\u3002<\/li>\n\n\n\n<li>DHCP\u670d\u52a1\u5668\uff08\u53ef\u80fd\u6709\u591a\u4e2a\uff09\u6536\u5230\u8be5\u62a5\u6587\uff0c\u4ee5DHCP <strong>OFFER<\/strong>\u62a5\u6587\u54cd\u5e94\u3002\u7531\u4e8eDHCP\u670d\u52a1\u5668\u5c1a\u672a\u5c06IP\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\uff0c\u4e0d\u77e5\u9053\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\uff0c\u6240\u4ee5\u8be5\u62a5\u6587\u7684\u76ee\u7684\u5730\u5740\u540c\u6837\u662f255.255.255.255\u3002<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u6536\u5230\u6765\u81ea\u4e00\u4e2a\u6216\u591a\u4e2aDHCP\u670d\u52a1\u5668\u7684\u62a5\u6587\uff0c\u5e76\u9009\u51fa\u5176\u4e2d\u6700\u597d\u7684\u4e00\u4e2a\u3002\u5e76\u4ee5DHCP <strong>REQUEST<\/strong>\u62a5\u6587\u54cd\u5e94\u3002\u7531\u4e8e\u5ba2\u6237\u7aef\u9700\u8981\u544a\u77e5\uff0c\u5b83\u5e76\u6ca1\u6709\u63a5\u53d7\u5176\u4ed6DHCP\u670d\u52a1\u5668\u63d0\u4f9b\u7684IP\uff0c\u6240\u4ee5\u8be5\u62a5\u6587\u7684\u76ee\u7684\u5730\u5740\u4e5f\u662f255.255.255.255\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u5ba2\u6237\u7aef\u9009\u62e9\u7684IP\u6709\u6548\uff0c\u90a3\u4e48\u88ab\u9009\u5b9a\u7684DHCP\u670d\u52a1\u5668\u4ee5DHCP <strong>ACK<\/strong>\u62a5\u6587\u54cd\u5e94\u5ba2\u6237\u7aef\u3002\u5982\u679c\u65e0\u6548\uff08\u6bd4\u5982\u8be5IP\u5728\u6b64\u8fc7\u7a0b\u4e2d\u5df2\u88ab\u5206\u914d\u7ed9\u5176\u4ed6\u4e3b\u673a\uff09\uff0c\u90a3\u4e48\u5219\u4ee5DHPC <strong>NACK<\/strong>\u62a5\u6587\u54cd\u5e94\u3002DHCP <strong>NACK<\/strong>\u62a5\u6587\u7684\u76ee\u7684\u5730\u5740\u4ecd\u7136\u662f255.255.255.255\uff0c\u4f7f\u5f97\u5176\u4ed6DHCP\u670d\u52a1\u5668\u77e5\u9053\u8be5DHCP <strong>REQUEST<\/strong>\u62a5\u6587\u662f\u88ab\u63a5\u53d7\u8fd8\u662f\u88ab\u62d2\u7edd\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-a57349b2c81b7253288931fb898eca7d\">\n<p>DHCP\u5b9e\u4f8b<\/p>\n<cite><em>tcpdump\u6293\u53d6DHCP\u62a5\u6587<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u6b63\u5e38\u6765\u8bf4\u5ba2\u6237\u7aef\u53ea\u4f1a\u5728\u83b7\u53d6IP\u65f6\u53d1\u9001\u62a5\u6587\uff0c\u8fd9\u5c31\u6d89\u53ca\u5230<strong>\u91ca\u653e-\u83b7\u53d6DHCP\u5206\u914d\u7684IP<\/strong>\uff0c\u6240\u4ee5\u6211\u5efa\u8bae\u5728\u672c\u5730\u865a\u62df\u673a\u4e0a\u6267\u884c\u3002\u4e0d\u5efa\u8bae\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u91ca\u653eDHCP\u5206\u914d\u7684IP\uff0c\u56e0\u4e3a\u91ca\u653eIP\u5927\u6982\u7387\u4f1a\u5bfc\u81f4\u8fdc\u7a0b\u8fde\u63a5\u4e2d\u65ad\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u901a\u8fc7dhclient\u91ca\u653eIP<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"dhclient -r\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">dhclient<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-r<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u91ca\u653e\u4e4b\u540e\u9700\u8981\u6253\u5f00\u4e24\u4e2a\u7ec8\u7aef\uff0c\u4e00\u4e2a\u7528\u4e8e\u6293\u5305\uff0c\u4e00\u4e2a\u7528\u4e8e\u83b7\u53d6ip\u3002\u56e0\u4e3adhcp\u7528\u7684\u662fudp\u534f\u8bae\uff0c\u6240\u4ee5\u6293\u5305\u7684\u65f6\u5019\u53ef\u4ee5\u6307\u5b9a\u6293udp\u5305\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tcpdump -i ens33 udp prot 67 or 68 -w \/home\/dhcp.pcap\ndhclient -v #\u83b7\u53d6IP\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">tcpdump<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-i<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">ens33<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">udp<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">prot<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">67<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">or<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">68<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-w<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/home\/dhcp.pcap<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">dhclient<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-v<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #6A9955\">#\u83b7\u53d6IP<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"656\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-15-1024x656.png\" alt=\"\" class=\"wp-image-9170\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-15-1024x656.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-15-300x192.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-15-768x492.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-15.png 1354w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6293\u5b8c\u5305\u5c31\u53ef\u4ee5\u6253\u5f00pcap\u6587\u4ef6\u67e5\u770b\u5185\u5bb9\u4e86\u3002\u53ef\u4ee5\u770b\u5230\u548c\u9884\u671f\u4e00\u6837\uff0c<strong>DISCOVER<\/strong>\u548c<strong>REQUEST<\/strong>\u62a5\u6587\u7684\u76ee\u7684\u5730\u5740\u90fd\u662f\u5e7f\u64ad\u5730\u5740\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-16-1024x640.png\" alt=\"\" class=\"wp-image-9171\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-16-1024x640.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-16-300x188.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-16-768x480.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/08\/image-16.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-5df5afd80369fbd5c8e0f58632e98069\">\n<p>NAT<\/p>\n<cite><em>\u7f51\u7edc\u5730\u5740\u8f6c\u6362<\/em><\/cite><\/blockquote>\n\n\n\n<p>NAT\uff08Network Address Translation\uff09\uff0c\u53c8\u540d<strong>\u7f51\u7edc\u5730\u5740\u8f6c\u6362<\/strong>\u3002NAT\u88ab\u7528\u4e8e\u63d0\u4f9b\u79c1\u6709\u5730\u5740\u548c\u901a\u7528\u5730\u5740\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/p>\n\n\n\n<p>NAT\u8def\u7531\u5668\u901a\u8fc7\u8f6c\u6362\u8868\u6765\u5b9e\u73b0\u5730\u5740\u8f6c\u6362\uff0c\u8f6c\u6362\u8868\u4e00\u822c\u901a\u8fc7IP\u548c\u7aef\u53e3\u6765\u8868\u793a\u79c1\u6709\u7f51\u7edc\u5185\u7684\u4e3b\u673a\uff0c\u6bd4\u5982\u5728\u79c1\u6709\u7f51\u7edc192.168.31.1\uff0c\u5168\u5c40\u5730\u5740200.200.200.123\u4e2d\uff1a<\/p>\n\n\n\n<ul>\n<li>200.200.200.123:1234 \u53ef\u80fd\u4ee3\u8868\u7684\u662f\u79c1\u6709\u5730\u5740\u4e3a 192.168.31.4\u7684\u4e3b\u673a<\/li>\n\n\n\n<li>200.200.200.123:1235 \u53ef\u80fd\u4ee3\u8868\u7684\u662f\u79c1\u6709\u5730\u5740\u4e3a 192.168.31.5\u7684\u4e3b\u673a<\/li>\n\n\n\n<li>&#8230;&#8230;<\/li>\n<\/ul>\n\n\n\n<p>NAT\u4e5f\u6ca1\u6709\u4ec0\u4e48\u597d\u8bb2\u7684\u5b9e\u4f8b\uff0c\u8fc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TCP\/UDP\/IP\/ICMP\/DHCP\/NAT<\/p>\n","protected":false},"author":1,"featured_media":9146,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[26,64],"tags":[77],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/9076"}],"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=9076"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/9076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/9146"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=9076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=9076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=9076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}