A.trafshow --loading較輕
cd /usr/ports/net/trafshow
make install clean
rehash  不行就reboot
指令為
trafshow -i 網卡名稱(lnc0)
         -ni 網卡名稱(lnc0)
B.ntop --loading較重
cd  /usr/ports/net/ntop/
make install clean
rehash
ntop -A --設定管理者的密碼,預設帳號是admin
ee /usr/local/etc/rc.d/ntop.sh        //修改ntop.sh內容如下
###Network interface(s) to be monitored;
###may be blank, or comma-separated list
interfaces=' '           //預設值
interfaces='vr0'         //更改後(改成您想要監聽的網路介面)
###[IP:]port for serving HTTP; set to '0' to disable
http_port='3000'         //預設值(http聽的port)
http_port='5678'         //更改後(改成您想要聽的http port)
###[IP:]port for serving HTTPS; set to '0' to disable
###The certificate is /usr/local/etc/ntop/ntop-cert.pem
https_port='3001'        //預設值(https聽的port)
https_port='8765'        //更改後(改成您想要監聽的https port)
cd /usr/local/etc/rc.d              //切換路徑
chmod 755 ntop.sh                   //讓ntop能開機自行啟動
/usr/local/etc/rc.d/ntop.sh start   //啟動ntop(成功訊息如下)
arrow
arrow
    全站熱搜

    brucebin 發表在 痞客邦 留言(0) 人氣()