# 리눅스 버전 : RHEL5 Cent OS 5.5 2.6.18-194.e15

[설치순서]

1. sourceforge.net 에서 ntop-4.0.1 버전 다운

2. 필요함 라이브러리 & 패키지 다운 & 설치

yum install zlib zlib-devel libpng libpng-devel freetype freetype-devel libart_lgpl libart_lgpl-devel libpcap libpcap-devel libxml2* fontconfig-devel glib2 glib2-devel -y
yum -y install GeoIP GeoIP-devel GeoIP-data perl-Geo-IP

wget http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
tar xvfz pixman-0.10.0.tar.gz
./configure && make && make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

wget http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
tar xvfz cairo-1.6.4.tar.gz
./configure && make && make install

wget http://oss.oetiker.ch/rrdtool/pub/libs/pango-1.17.5.tar.gz
tar xvfz pango-1.17.5.tar.gz
./configure && make && make install

3. wget http://www.monkey.org/~provos/libevent-1.4.12-stable.tar.gz libevent 다운 및 설치

./configure && make && make install

4. wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.2.tar.gz rrdtool 다운 및 설치

./configure --prefix=/usr/local/rrdtool --disable-python --disable-tcl --enable-shared && make && make install

5. ntop-4.0.1 설치 및 실행

./autogen.sh --prefix=/usr/local/ntop
make && make install

설치디렉토리 확인
cd /usr/local/ntop/etc/ntop
ls
GeoIPASNum.dat GeoLiteCity.dat etter.finger.os.gz ntop-cert.pem oui.txt.gz specialMAC.txt.gz
mkdir -p /usr/local/ntop/var/ntop/rrd

useradd -M -c "NTOP USER" -s /bin/false ntop
chown -R ntop.ntop /usr/local/ntop/
/usr/local/ntop/bin/ntop -u ntop -w 3001 -P /usr/local/ntop -r 60 -i eth0
-w : http, -W : https
-r : refresh
-i : 모니터링할 인터페이스
-d : 데몬으로 띄움. 지금은 –d 안 붙임.

ps -ef |grep ntop
ntop 2236 21466 0 14:34 pts/0 00:00:00 /usr/local/ntop/bin/ntop -u ntop -w 3001 -P /usr/local/ntop -r 60 -i eth0
root 2402 2387 0 14:36 pts/1 00:00:00 grep --color ntop

netstat -nlp |grep ntop
tcp 0 0 :::3001 :::* LISTEN 2236/ntop
udp 0 0 0.0.0.0:34641 0.0.0.0:* 2236/ntop

iptables 차단 걸렸을을 경우
iptables -A INPUT -p tcp --sport 1024: -m multiport --dports 3000,3001 -m state --state NEW -j ACCEPT

접속 : http://IP:3001

+ Recent posts