{"id":80306,"date":"2026-03-04T21:41:32","date_gmt":"2026-03-04T13:41:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80306.html"},"modified":"2026-03-04T21:41:32","modified_gmt":"2026-03-04T13:41:32","slug":"linux%e8%bd%af%e4%bb%b6%e7%bc%96%e7%a8%8b%ef%bc%9awireshark%e6%8a%93%e5%8c%85%e5%b7%a5%e5%85%b7%e5%92%8ctcp%e9%80%9a%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80306.html","title":{"rendered":"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1"},"content":{"rendered":"<h3>\u4e00\u3001Wireshark\u6293\u5305\u5de5\u5177\u7684\u4f7f\u7528<\/h3>\n<p>Wireshark\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u534f\u8bae\u5206\u6790\u5668&#xff0c;\u80fd\u591f\u5b9e\u65f6\u6355\u83b7\u7f51\u7edc\u63a5\u53e3\u7684\u6570\u636e\u5305&#xff0c;\u5e76\u8be6\u7ec6\u89e3\u6790\u5404\u5c42\u534f\u8bae\u5934\u90e8&#xff0c;\u5bf9\u4e8e\u7406\u89e3\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u3001\u8c03\u8bd5\u7f51\u7edc\u7a0b\u5e8f\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<h4>1. \u5b89\u88c5\u65b9\u6cd5<\/h4>\n<p>\u5728Ubuntu\u7cfb\u7edf\u4e2d&#xff0c;\u82e5\u7f51\u7edc\u5df2\u8fde\u901a\u4e14apt\u6e90\u914d\u7f6e\u6b63\u786e&#xff0c;\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p>sudo apt-get install wireshark<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5root\u6743\u9650\u542f\u52a8\u624d\u80fd\u6355\u83b7\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u6570\u636e\u5305\u3002<\/p>\n<h4>2. \u542f\u52a8\u4e0e\u57fa\u672c\u64cd\u4f5c<\/h4>\n<ul>\n<li>\n<p>\u542f\u52a8\u547d\u4ee4&#xff1a;sudo wireshark&#xff0c;\u56fe\u5f62\u754c\u9762\u6253\u5f00\u540e\u9009\u62e9\u8981\u76d1\u542c\u7684\u7f51\u5361&#xff08;\u5982ens33&#xff09;&#xff0c;\u70b9\u51fb\u5f00\u59cb\u6355\u83b7\u3002<\/p>\n<\/li>\n<li>\n<p>\u6355\u83b7\u8fc7\u7a0b\u4e2d&#xff0c;\u6240\u6709\u7ecf\u8fc7\u8be5\u7f51\u5361\u7684\u6570\u636e\u5305\u90fd\u4f1a\u88ab\u663e\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>\u901a\u4fe1\u7ed3\u675f\u540e&#xff0c;\u53ef\u505c\u6b62\u6355\u83b7&#xff0c;\u5e76\u5728\u8fc7\u6ee4\u680f\u8f93\u5165\u89c4\u5219\u7b5b\u9009\u611f\u5174\u8da3\u7684\u6570\u636e\u5305\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u5e38\u7528\u8fc7\u6ee4\u89c4\u5219<\/h4>\n<p>\u8fc7\u6ee4\u89c4\u5219\u57fa\u4e8eBPF\u8bed\u6cd5&#xff0c;\u5e38\u7528\u793a\u4f8b&#xff1a;<\/p>\n<ul>\n<li>\n<p>tcp&#xff1a;\u4ec5\u663e\u793aTCP\u534f\u8bae\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>udp&#xff1a;\u4ec5\u663e\u793aUDP\u534f\u8bae\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>udp.port &#061;&#061; 50000&#xff1a;\u663e\u793a\u6e90\u6216\u76ee\u7684\u7aef\u53e3\u4e3a50000\u7684UDP\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>tcp.port &#061;&#061; 50000&#xff1a;\u663e\u793a\u6e90\u6216\u76ee\u7684\u7aef\u53e3\u4e3a50000\u7684TCP\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>ip.addr &#061;&#061; 192.168.0.165&#xff1a;\u663e\u793a\u6e90\u6216\u76ee\u7684IP\u4e3a192.168.0.165\u7684\u5305\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8865\u5145&#xff1a;Wireshark\u652f\u6301\u591a\u79cd\u8868\u8fbe\u5f0f\u7ec4\u5408&#xff0c;\u4f8b\u5982\u00a0tcp.port &#061;&#061; 80 &amp;&amp; ip.src &#061;&#061; 192.168.1.1\u00a0\u53ef\u8fdb\u4e00\u6b65\u7cbe\u786e\u7b5b\u9009\u3002\u638c\u63e1\u8fc7\u6ee4\u89c4\u5219\u80fd\u6781\u5927\u63d0\u9ad8\u5206\u6790\u6548\u7387\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001TCP\u901a\u4fe1\u7f16\u7a0b<\/h3>\n<p>TCP&#xff08;Transmission Control Protocol&#xff09;\u662f\u4e00\u79cd\u9762\u5411\u8fde\u63a5\u7684\u3001\u53ef\u9760\u7684\u4f20\u8f93\u5c42\u534f\u8bae\u3002\u7f16\u7a0b\u65f6\u9700\u4e25\u683c\u9075\u5faa\u5176\u8fde\u63a5\u5efa\u7acb\u3001\u6570\u636e\u4f20\u8f93\u548c\u8fde\u63a5\u91ca\u653e\u7684\u6d41\u7a0b\u3002<\/p>\n<h4>1. TCP\u901a\u4fe1\u7684\u57fa\u672c\u6d41\u7a0b<\/h4>\n<p>\u6839\u636e\u89d2\u8272\u4e0d\u540c&#xff0c;\u5206\u4e3a\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u670d\u52a1\u5668\u7aef\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u521b\u5efa\u5957\u63a5\u5b57&#xff08;socket&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u7ed1\u5b9a\u5730\u5740\u4e0e\u7aef\u53e3&#xff08;bind&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u76d1\u542c&#xff08;listen&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u63a5\u53d7\u8fde\u63a5\u8bf7\u6c42&#xff08;accept&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u63a5\u6536\u6570\u636e&#xff08;recv&#xff09;\u6216\u53d1\u9001\u6570\u636e&#xff08;send&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5173\u95ed\u8fde\u63a5&#xff08;close&#xff09;<\/p>\n<\/li>\n<p>\u5ba2\u6237\u7aef\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u521b\u5efa\u5957\u63a5\u5b57&#xff08;socket&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5411\u670d\u52a1\u5668\u53d1\u8d77\u8fde\u63a5&#xff08;connect&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u53d1\u9001\u6570\u636e&#xff08;send&#xff09;\u6216\u63a5\u6536\u6570\u636e&#xff08;recv&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5173\u95ed\u8fde\u63a5&#xff08;close&#xff09;<\/p>\n<\/li>\n<h4>2. \u5173\u952e\u51fd\u6570\u63a5\u53e3\u8be6\u89e3<\/h4>\n<h5>&#xff08;1&#xff09;socket<\/h5>\n<p>int socket(int domain, int type, int protocol);<\/p>\n<ul>\n<li>\n<p>domain&#xff1a;\u534f\u8bae\u65cf&#xff0c;AF_INET\u8868\u793aIPv4\u3002<\/p>\n<\/li>\n<li>\n<p>type&#xff1a;\u5957\u63a5\u5b57\u7c7b\u578b&#xff0c;SOCK_STREAM\u8868\u793a\u6d41\u5f0f\u5957\u63a5\u5b57&#xff08;TCP&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>protocol&#xff1a;\u901a\u5e38\u4f200&#xff0c;\u81ea\u52a8\u9009\u62e9\u5bf9\u5e94\u534f\u8bae\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd4\u56de\u503c&#xff1a;\u6210\u529f\u8fd4\u56de\u6587\u4ef6\u63cf\u8ff0\u7b26&#xff0c;\u5931\u8d25\u8fd4\u56de-1\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>&#xff08;2&#xff09;bind<\/h5>\n<p>int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);<\/p>\n<ul>\n<li>\n<p>\u5c06\u5957\u63a5\u5b57\u4e0e\u672c\u5730IP\u548c\u7aef\u53e3\u7ed1\u5b9a\u3002\u670d\u52a1\u5668\u7aef\u5fc5\u987b\u8c03\u7528\u6b64\u51fd\u6570&#xff0c;\u5ba2\u6237\u7aef\u901a\u5e38\u4e0d\u9700\u8981&#xff08;\u7cfb\u7edf\u81ea\u52a8\u5206\u914d\u4e34\u65f6\u7aef\u53e3&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>&#xff08;3&#xff09;listen<\/h5>\n<p>int listen(int sockfd, int backlog);<\/p>\n<ul>\n<li>\n<p>\u4f7f\u5957\u63a5\u5b57\u53d8\u4e3a\u88ab\u52a8\u76d1\u542c\u72b6\u6001&#xff0c;\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5\u3002<\/p>\n<\/li>\n<li>\n<p>backlog&#xff1a;\u672a\u5b8c\u6210\u8fde\u63a5\u961f\u5217\u7684\u6700\u5927\u957f\u5ea6&#xff08;\u5373\u5df2\u5b8c\u6210\u4e09\u6b21\u63e1\u624b\u4f46\u672a\u88abaccept\u53d6\u8d70\u7684\u8fde\u63a5\u6570&#043;\u5c1a\u672a\u5b8c\u6210\u63e1\u624b\u7684\u8fde\u63a5\u6570&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>&#xff08;4&#xff09;accept<\/h5>\n<p>int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);<\/p>\n<ul>\n<li>\n<p>\u4ece\u5df2\u5b8c\u6210\u8fde\u63a5\u961f\u5217\u4e2d\u53d6\u51fa\u7b2c\u4e00\u4e2a\u8fde\u63a5&#xff0c;\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5957\u63a5\u5b57\u7528\u4e8e\u4e0e\u8be5\u5ba2\u6237\u7aef\u901a\u4fe1\u3002<\/p>\n<\/li>\n<li>\n<p>addr\u00a0\u548c\u00a0addrlen\u00a0\u7528\u4e8e\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u5730\u5740\u4fe1\u606f&#xff0c;\u82e5\u4e0d\u9700\u8981\u53ef\u4f20NULL\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>&#xff08;5&#xff09;connect<\/h5>\n<p>int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);<\/p>\n<ul>\n<li>\n<p>\u5ba2\u6237\u7aef\u4e3b\u52a8\u5411\u670d\u52a1\u5668\u53d1\u8d77\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u89e6\u53d1\u4e09\u6b21\u63e1\u624b\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>&#xff08;6&#xff09;send\u00a0\u548c\u00a0recv<\/h5>\n<p>ssize_t send(int sockfd, const void *buf, size_t len, int flags);<br \/>\nssize_t recv(int sockfd, void *buf, size_t len, int flags);<\/p>\n<ul>\n<li>\n<p>\u7528\u4e8e\u5df2\u5efa\u7acb\u8fde\u63a5\u7684\u5957\u63a5\u5b57\u4e0a\u53d1\u9001\u6216\u63a5\u6536\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>flags\u4e00\u822c\u8bbe\u4e3a0\u3002<\/p>\n<\/li>\n<li>\n<p>recv\u00a0\u8fd4\u56de0\u8868\u793a\u5bf9\u7aef\u5173\u95ed\u8fde\u63a5&#xff0c;-1\u8868\u793a\u51fa\u9519\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8865\u5145\u8bf4\u660e&#xff1a;TCP\u534f\u8bae\u4e3a\u4fdd\u8bc1\u53ef\u9760\u4f20\u8f93&#xff0c;\u5185\u7f6e\u4e86\u786e\u8ba4\u3001\u91cd\u4f20\u3001\u6d41\u91cf\u63a7\u5236\u7b49\u673a\u5236&#xff0c;\u56e0\u6b64\u7f16\u7a0b\u63a5\u53e3\u76f8\u5bf9\u7b80\u5355&#xff0c;\u4f46\u5e95\u5c42\u5b9e\u73b0\u590d\u6742\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001UDP\u4e0eTCP\u7684\u533a\u522b\u5bf9\u6bd4<\/h3>\n<p>\u57fa\u4e8e\u8bfe\u5802\u7b14\u8bb0\u53ca\u4e2a\u4eba\u7406\u89e3&#xff0c;\u6574\u7406UDP\u4e0eTCP\u7684\u4e3b\u8981\u5dee\u5f02\u5982\u4e0b\u8868&#xff1a;<\/p>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6UDP (User Datagram Protocol)TCP (Transmission Control Protocol)<\/tr>\n<tbody>\n<tr>\n<td>\u8fde\u63a5\u6027<\/td>\n<td>\u65e0\u8fde\u63a5&#xff0c;\u53d1\u9001\u524d\u65e0\u9700\u5efa\u7acb\u8fde\u63a5<\/td>\n<td>\u9762\u5411\u8fde\u63a5&#xff0c;\u9700\u7ecf\u8fc7\u4e09\u6b21\u63e1\u624b\u5efa\u7acb\u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u9760\u6027<\/td>\n<td>\u4e0d\u53ef\u9760&#xff0c;\u53ef\u80fd\u4e22\u5305\u3001\u4e71\u5e8f&#xff0c;\u65e0\u786e\u8ba4\u91cd\u4f20<\/td>\n<td>\u53ef\u9760&#xff0c;\u901a\u8fc7\u786e\u8ba4\u3001\u91cd\u4f20\u3001\u6392\u5e8f\u4fdd\u8bc1\u6570\u636e\u6b63\u786e\u5230\u8fbe<\/td>\n<\/tr>\n<tr>\n<td>\u8d44\u6e90\u5f00\u9500<\/td>\n<td>\u5c0f&#xff0c;\u5305\u5934\u4ec58\u5b57\u8282<\/td>\n<td>\u5927&#xff0c;\u5305\u5934\u81f3\u5c1120\u5b57\u8282&#xff0c;\u4e14\u9700\u7ef4\u62a4\u8fde\u63a5\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u4f20\u8f93\u6548\u7387<\/td>\n<td>\u9ad8&#xff0c;\u65e0\u8fde\u63a5\u5efa\u7acb\u5ef6\u8fdf&#xff0c;\u9002\u5408\u5b9e\u65f6\u5e94\u7528<\/td>\n<td>\u76f8\u5bf9\u8f83\u4f4e&#xff0c;\u6709\u8fde\u63a5\u5efa\u7acb\u548c\u62e5\u585e\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u6d41\u91cf\u63a7\u5236<\/td>\n<td>\u65e0<\/td>\n<td>\u6709\u6ed1\u52a8\u7a97\u53e3\u673a\u5236\u8fdb\u884c\u6d41\u91cf\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u62e5\u585e\u63a7\u5236<\/td>\n<td>\u65e0<\/td>\n<td>\u6709\u6162\u542f\u52a8\u3001\u62e5\u585e\u907f\u514d\u7b49\u7b97\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u8fb9\u754c<\/td>\n<td>\u4fdd\u7559\u6d88\u606f\u8fb9\u754c&#xff0c;\u6bcf\u6b21recvfrom\u5bf9\u5e94\u4e00\u4e2asendto<\/td>\n<td>\u9762\u5411\u5b57\u8282\u6d41&#xff0c;\u65e0\u8fb9\u754c&#xff0c;\u9700\u5e94\u7528\u5c42\u5904\u7406\u5206\u5305<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u89c6\u9891\u76f4\u64ad\u3001DNS\u67e5\u8be2\u3001\u7b80\u5355\u8bf7\u6c42\/\u54cd\u5e94\u7b49\u5b9e\u65f6\u6027\u8981\u6c42\u9ad8\u3001\u5141\u8bb8\u5c11\u91cf\u4e22\u5305\u7684\u5e94\u7528<\/td>\n<td>\u6587\u4ef6\u4f20\u8f93\u3001\u90ae\u4ef6\u3001\u7f51\u9875\u6d4f\u89c8\u7b49\u5bf9\u53ef\u9760\u6027\u8981\u6c42\u9ad8\u7684\u5e94\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8865\u5145&#xff1a;\u7b14\u8bb0\u4e2d\u63d0\u5230\u201cTCP\u5305\u5934\u81f3\u5c11\u536020\u4e2a\u5b57\u8282\u201d&#xff0c;\u5b9e\u9645TCP\u9009\u9879\u5b57\u6bb5\u53ef\u80fd\u4f7f\u5934\u90e8\u6269\u5c55&#xff0c;\u4f46\u6700\u5c0f\u786e\u5b9e\u4e3a20\u5b57\u8282\u3002UDP\u5934\u90e8\u56fa\u5b9a8\u5b57\u8282&#xff0c;\u4f53\u73b0\u4e86\u5176\u8f7b\u91cf\u7ea7\u7279\u70b9\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u4eca\u65e5\u7ec3\u4e60\u601d\u8003<\/h3>\n<p>1.\u7f16\u5199\u6536\u7aef\u548c\u53d1\u7aef\u5229\u7528TCP\u5b9e\u73b0\u53d1\u9001\u4e00\u4e2a\u6587\u4ef6<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368a276e2.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368a6bfb0.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368ab0ba1.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368ae4df4.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134131-69a8368b3920f.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001Wireshark\u6293\u5305\u5de5\u5177\u7684\u4f7f\u7528Wireshark\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u534f\u8bae\u5206\u6790\u5668&#xff0c;\u80fd\u591f\u5b9e\u65f6\u6355\u83b7\u7f51\u7edc\u63a5\u53e3\u7684\u6570\u636e\u5305&#xff0c;\u5e76\u8be6\u7ec6\u89e3\u6790\u5404\u5c42\u534f\u8bae\u5934\u90e8&#xff0c;\u5bf9\u4e8e\u7406\u89e3\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u3001\u8c03\u8bd5\u7f51\u7edc\u7a0b\u5e8f\u975e\u5e38\u6709\u5e2e\u52a9\u30021. \u5b89\u88c5\u65b9\u6cd5\u5728Ubuntu\u7cfb\u7edf\u4e2d&#xff0c;\u82e5\u7f51\u7edc\u5df2\u8fde\u901a\u4e14apt\u6e90\u914d\u7f6e\u6b63\u786e&#xff0c;\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;sudo apt-get install wireshark\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5root\u6743\u9650\u542f\u52a8\u624d\u80fd\u6355\u83b7\u6240<\/p>\n","protected":false},"author":2,"featured_media":80301,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,205,2570],"topic":[],"class_list":["post-80306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-tcp-ip","tag-wireshark"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \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\/80306.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001Wireshark\u6293\u5305\u5de5\u5177\u7684\u4f7f\u7528Wireshark\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u534f\u8bae\u5206\u6790\u5668&#xff0c;\u80fd\u591f\u5b9e\u65f6\u6355\u83b7\u7f51\u7edc\u63a5\u53e3\u7684\u6570\u636e\u5305&#xff0c;\u5e76\u8be6\u7ec6\u89e3\u6790\u5404\u5c42\u534f\u8bae\u5934\u90e8&#xff0c;\u5bf9\u4e8e\u7406\u89e3\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u3001\u8c03\u8bd5\u7f51\u7edc\u7a0b\u5e8f\u975e\u5e38\u6709\u5e2e\u52a9\u30021. \u5b89\u88c5\u65b9\u6cd5\u5728Ubuntu\u7cfb\u7edf\u4e2d&#xff0c;\u82e5\u7f51\u7edc\u5df2\u8fde\u901a\u4e14apt\u6e90\u914d\u7f6e\u6b63\u786e&#xff0c;\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;sudo apt-get install wireshark\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5root\u6743\u9650\u542f\u52a8\u624d\u80fd\u6355\u83b7\u6240\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80306.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-04T13:41:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368a276e2.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\/80306.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80306.html\",\"name\":\"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-04T13:41:32+00:00\",\"dateModified\":\"2026-03-04T13:41:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80306.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80306.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80306.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1\"}]},{\"@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":"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \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\/80306.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001Wireshark\u6293\u5305\u5de5\u5177\u7684\u4f7f\u7528Wireshark\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u534f\u8bae\u5206\u6790\u5668&#xff0c;\u80fd\u591f\u5b9e\u65f6\u6355\u83b7\u7f51\u7edc\u63a5\u53e3\u7684\u6570\u636e\u5305&#xff0c;\u5e76\u8be6\u7ec6\u89e3\u6790\u5404\u5c42\u534f\u8bae\u5934\u90e8&#xff0c;\u5bf9\u4e8e\u7406\u89e3\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u3001\u8c03\u8bd5\u7f51\u7edc\u7a0b\u5e8f\u975e\u5e38\u6709\u5e2e\u52a9\u30021. \u5b89\u88c5\u65b9\u6cd5\u5728Ubuntu\u7cfb\u7edf\u4e2d&#xff0c;\u82e5\u7f51\u7edc\u5df2\u8fde\u901a\u4e14apt\u6e90\u914d\u7f6e\u6b63\u786e&#xff0c;\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;sudo apt-get install wireshark\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5root\u6743\u9650\u542f\u52a8\u624d\u80fd\u6355\u83b7\u6240","og_url":"https:\/\/www.wsisp.com\/helps\/80306.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-04T13:41:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260304134130-69a8368a276e2.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\/80306.html","url":"https:\/\/www.wsisp.com\/helps\/80306.html","name":"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-04T13:41:32+00:00","dateModified":"2026-03-04T13:41:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80306.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80306.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80306.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8f6f\u4ef6\u7f16\u7a0b\uff1awireshark\u6293\u5305\u5de5\u5177\u548cTCP\u901a\u4fe1"}]},{"@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\/80306","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=80306"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/80301"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80306"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}