{"id":11315,"date":"2024-12-19T16:02:58","date_gmt":"2024-12-19T21:02:58","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11315"},"modified":"2025-01-01T16:10:23","modified_gmt":"2025-01-01T21:10:23","slug":"wireshark-capture-of-source-and-dest-pairs","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11315","title":{"rendered":"Wireshark Capture of Source and Dest Pairs"},"content":{"rendered":"\n<p>I was trying to use nethogs with a -t switch to see what is causing the large quantity of traffic that gets bucketed as &#8220;unknown TCP&#8221;. But the display jumped around a lot &#8211; I think because they&#8217;re attempting to increment the sums at the top of the &#8220;page&#8221; rather than just stream information to STDOUT. Figured I could more readily see what I wanted to see using Wireshark. Or, more accurately, tshark. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntshark -i any -f &quot;not port 22&quot; -Y &quot;tcp or udp&quot; -T fields -e ip.src -e tcp.srcport -e udp.srcport -e ip.dst -e tcp.dstport -e udp.dstport | tee \/path\/tonetcap.cap\n\n<\/pre><\/div>\n\n\n<p>Yields:<\/p>\n\n\n\n<p>10.5.5.90 56572 10.5.5.91 3306<br>10.5.5.90 56572 10.5.5.91 3306<br>10.5.5.91 3306 10.5.5.90 56572<br>10.5.5.91 3306 10.5.5.90 56572<br>10.5.5.90 56572 10.5.5.91 3306<br>10.5.5.90 56572 10.5.5.91 3306<br>10.5.5.90 56572 10.5.5.91 3306<br>10.5.5.75 38552 10.5.5.85 443<br>10.5.5.75 38552 10.5.5.85 443<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.75 443 40.97.205.53 12160<br>10.5.5.61 51389 255.255.255.255 6667<br>10.5.5.61 51389 255.255.255.255 6667<br>10.5.5.61 51389 255.255.255.255 6667<br>10.5.5.61 51389 255.255.255.255 6667<br>10.5.5.61 51389 255.255.255.255 6667<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to use nethogs with a -t switch to see what is causing the large quantity of traffic that gets bucketed as &#8220;unknown TCP&#8221;. But the display jumped around a lot &#8211; I think because they&#8217;re attempting to increment the sums at the top of the &#8220;page&#8221; rather than just stream information to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[2072,1338,1337],"class_list":["post-11315","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-nethogs","tag-tshark","tag-wireshark"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11315"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11315\/revisions"}],"predecessor-version":[{"id":11316,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11315\/revisions\/11316"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}