linux tcpdump抓包

來源:互聯網
上載者:User

標籤:輸出   port   個數   資料包   地址   不顯示   系統時間   目標   主機   

  1. tcpdump 預設抓取第一個網卡的所有資料包
  2. tcpdump -i eth0 指定網卡
  3. tcpdump host 10.10.10.10 指定主機名稱或ip地址
  4. tcpdump host 10.10.10.1 and 10.10.10.2 兩個主機之間的通訊
  5. tcpdump host 10.10.10.1 and not 10.10.10.2 只抓取1的所有通訊,除了和2的通訊,not可改為!
  6. tcpdump src host 10.10.10.1 源地址為1的資料包
  7. tcpdump dst host 10.10.10.1 目的地址為2的資料包
  8. tcpdump port 8080 and host 10.10.10.1 同時指定主機和port
  9. -w ./catch.cap 產生wireshark抓包檔案
  10. -t 不顯示時間戳記
  11. -c 100 只抓取100個資料包
  12. -s 0 抓包預設抓取長度為68位元組,加上-s 0後可抓取完整包
  13. tcpdump總的的輸出格式為:系統時間 來源主機.連接埠 > 目標主機.連接埠 資料包參數

linux tcpdump抓包

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.