head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.44 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.42 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.40 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.38 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.36 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.34 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.32 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.30 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.28 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.26 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.24 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.22 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.20 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.18 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.16 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.14 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.12 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.10 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.8 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.6 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.4 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.2 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.5.0.2 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.4 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.3 netbsd-1-4-PATCH001:1.3 netbsd-1-4-RELEASE:1.3 netbsd-1-3-PATCH003:1.1; locks; strict; comment @# @; 1.6 date 2005.01.06.11.52.35; author adam; state dead; branches; next 1.5; 1.5 date 2004.10.03.20.51.23; author wiz; state Exp; branches; next 1.4; 1.4 date 2000.09.19.20.00.04; author agc; state dead; branches; next 1.3; 1.3 date 98.10.13.03.46.08; author kim; state Exp; branches; next 1.2; 1.2 date 98.10.11.20.27.04; author kim; state Exp; branches; next 1.1; 1.1 date 98.08.07.22.42.30; author kim; state Exp; branches; next ; desc @@ 1.6 log @ntop is a network traffic probe that shows the network usage, similar to what the popular top Unix command does. ntop is based on libpcap and it has been written in a portable way in order to virtually run on every Unix platform and on Win32 as well. ntop users can use a web browser (e.g. netscape) to navigate through ntop (that acts as a web server) traffic information and get a dump of the network status. In the latter case, ntop can be seen as a simple RMON-like agent with an embedded web interface. The use of: - a web interface - limited configuration and administration via the web interface - reduced CPU and memory usage (they vary according to network size and traffic) make ntop easy to use and suitable for monitoring various kind of networks. @ text @$NetBSD: patch-ad,v 1.5 2004/10/03 20:51:23 wiz Exp $ --- ntop.8.orig 1999-04-13 10:20:11.000000000 +0200 +++ ntop.8 @@@@ -19,8 +19,6 @@@@ ntop \- display top network users .IR "IP protocols to monitor" ] .RB [ -i .IR interface ] -.RB [ -w -.IR port ] .RB [ -d ] .RB [ -m .IR "local subnet" ] @@@@ -34,12 +32,7 @@@@ ntop \- display top network users shows the current network usage. It displays a list of hosts that are currently using the network and reports information concerning the (IP and non-IP) traffic generated by each host. -.B ntop -can be started either in a terminal window (interactive mode) or in -web mode. In the latter case, a web browser is needed to use the -program. The traffic is sorted according to the host and the protocol. Whenever -.B ntop -is started in web mode (-w flag), multiple remote users can access the traffic information. See below for more information. +The traffic is sorted according to the host and the protocol. .PP .SH "COMMAND\-LINE OPTIONS" .It -r @@@@ -77,28 +70,10 @@@@ Specifies the network interface used by . .It -w -Starts -.B ntop -in web mode. Users can attach their web browsers to the specified port and browse -traffic information remotely. Supposing to start -.B ntop -at the port 3000 (ntop -w 3000), the URL to access is -http://hostname:3000/. The file ~/.ntop specifies the HTTP -user/password of those people who are allowed to access ntop. If the -~/.ntop file is missing no security will be used hence everyone can -access traffic information. A simple .ntop file is the following: -. -# -# .ntop File format -# -# user/pw -# -# -luca linux -. -Please note that an HTTP server is NOT -needed in order to use the program in interactive mode. -. +Is disabled in this version of ntop for security reasons. +See +.B http://www.securityfocus.com/advisories/2520 +for details. .It -d This flag (it has to be used with -w) causes ntop to become a daemon, i.e. it is started in background and detached from the terminal. @@@@ -185,12 +160,6 @@@@ three columns are toggled. Please note that these columns represent either the traffic sent or received, according to the the way the list is sorted (see previous command). - -.SH "WEB VIEWS (Web mode)" -While -.B ntop -is running in web mode (-w flag), multiple users can access the traffic information using conventional web browsers. The main HTML page, is divided is two frames. The left frame allows users to select the traffic view that will be displayed in the right frame. Available sections are: sort traffic by data sent, sort traffic by data received, traffic statistics, active hosts list, remote to local (i.e. inside the subnet defined for the network board from which the program is currently sniffing) IP traffic, local to remote IP traffic, local to local IP traffic, list of active TCP sessions, IP protocol distribution statistics, IP protocol usage, IP traffic matrix. - . .SH "FIELD DESCRIPTIONS (Interactive mode)" .B ntop @@@@ -247,4 +216,4 @@@@ at ftp://ftp.ee.lbl.gov/libpcap.tar.Z. . . .SH AUTHOR -Please send bug reports to the ntop mailing list . ntop's author is Luca Deri . \ No newline at end of file +Please send bug reports to the ntop mailing list . ntop's author is Luca Deri . @ 1.5 log @Document that -w is disabled, and remove most other documentation about it. Addresses PR 27078. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Install the binary for this package as mode 550, and disable the -w option, to avoid any compromises due to reported buffer overflow exploits, reported in ntop<=1.0 remote-root-shell http://www.securityfocus.com/advisories/2520 Also, upgrade to 1.1 on the distribution site, as the old distfile is no longer there, and 1.1 incorporates all the old patches in the pkgsrc version bar one minor one (passing CPPFLAGS into Makefile.in for the build environment). @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 1998/10/13 03:46:08 kim Exp $ d3 27 a29 3 --- configure.in.orig Thu Sep 24 11:41:22 1998 +++ configure.in Mon Oct 12 22:42:57 1998 @@@@ -18,7 +18,7 @@@@ d31 27 a57 1 AC_LBL_C_INIT(V_CCOPT, V_INCLS) d59 22 a80 18 -AC_CHECK_HEADERS(fcntl.h malloc.h memory.h ncurses.h curses.h sys/select.h netinet/if_ether.h netinet/in_systm.h stdarg.h) +AC_CHECK_HEADERS(fcntl.h malloc.h memory.h ncurses.h curses.h sys/select.h netinet/if_ether.h netinet/in_systm.h stdarg.h gnuc.h ethertype.h) AC_HEADER_TIME AC_REPLACE_FUNCS(vfprintf) @@@@ -60,9 +60,9 @@@@ ;; esac -if test -f /dev/bpf0 ; then - V_GROUP=bpf -fi +#if test -f /dev/bpf0 ; then +# V_GROUP=bpf +#fi AC_MSG_CHECKING(if ether_header uses ether_addr structs) AC_CACHE_VAL(ac_cv_ether_header_has_ea, @ 1.3 log @Our includes , so I shouldn't include it separately. Avoid using a configure check. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated ntop to 1.0 @ text @d4 1 a4 1 +++ configure.in Sun Oct 11 16:11:08 1998 d10 1 a10 1 +AC_CHECK_HEADERS(fcntl.h malloc.h memory.h ncurses.h curses.h sys/select.h netinet/if_ether.h netinet/in_systm.h stdarg.h gnuc.h) @ 1.1 log @Adding ntop, "network top", v0.4 @ text @d3 2 a4 2 --- configure.in.orig Thu Jul 30 06:09:44 1998 +++ configure.in Fri Aug 7 18:16:15 1998 d9 2 a10 2 -AC_CHECK_HEADERS(fcntl.h malloc.h memory.h) +AC_CHECK_HEADERS(fcntl.h malloc.h memory.h ncurses.h curses.h) d14 1 a14 10 @@@@ -27,6 +27,8 @@@@ AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) +AC_CHECK_LIB(ncurses, main) + V_GROUP=0 case "$target_os" in @@@@ -47,19 +49,19 @@@@ d25 2 a26 16 AC_LBL_CHECK_TYPE(int32_t, int) AC_LBL_CHECK_TYPE(u_int32_t, u_int) AC_LBL_DEVEL(V_CCOPT) -if test -r lbl/gnuc.h ; then - rm -f gnuc.h - ln -s lbl/gnuc.h gnuc.h -fi +#if test -r lbl/gnuc.h ; then +# rm -f gnuc.h +# ln -s lbl/gnuc.h gnuc.h +#fi AC_SUBST(V_CCOPT) AC_SUBST(V_GROUP) @