1. 程式人生 > >nDPI的安裝與測試

nDPI的安裝與測試

目錄

官方Quick Start

nDPI 的 github

簡介

  • nDPI是一個開源的基於 OpenDPI 的 DPI 庫,目前由 ntop在維護
  • nDPI 提供以下功能:
    • 應用層協議檢測
    • 加密流量檢測
    • 子協議檢測
  • 可以檢測的內容包括:
    • 某個 IP 的:包個數、位元數、流總數、nDPI的吞吐量
    • 源目的埠號
    • 每個協議的:包個數、位元數、流個數
    • 一些測量的統計資訊

nDPI的環境依賴項安裝

  • GNU autotools/libtool
$ sudo apt install autotools
$ sudo apt install libtool
  • gawk
$ sudo apt install gawk
  • gcc
$ sudo apt install gcc
  • 一些依賴集
$ sudo apt install build-essential

nDPI 安裝

$ git clone https://github.com/ntop/nDPI.git
$ cd <nDPI source code directory>
$ ./autogen.sh
$ ./configure
$ make
$ cd example
$ make

nDPI測試

  • 通過 ifconfig 檢視網絡卡裝置資訊,選擇其中的網絡卡 ens33

  • 執行測試 nDPIReader ,引數 -i 表示指定網絡卡號,-s 指定測試時間
  • 本測試中 測試網絡卡 ens33, 測量 10 秒鐘

  • 測試結果如下: