I have found that sniffing one side of a tap is somewhat useful. I placed a network tap on the inside interface of a firewall and placed the ntop machine on one of the two tap ports. The Data Sent table was populated with nothing but local addresses and the Data Received table was populated with addresses that traversed the firewall from the internet. It was useful to tell which internal machine was sending out the most data. When I switched ports, I could tell which internal machine was receiving the most traffic. Unfortunately nTop doesn't like to run this way for too long. The problem exists because nTop is only sniffing one side, it can't see the full handshaking of the TCP connection. TCP connections rarely get completely closed and nTop eats up extra memory tracking the half-closed connections.
Currently I am running both tap ports into a little 4 port hub and I'm sniffing the hub. It provides a good picture and I get all the information I would normally get from a mirrored switch port, without the fear of the sniffer transmitting any data. Unfortunately the tables arn't as clear and I'm having problems using the -m <subnet> feature. I can recommend both methods depending on what exactly you are looking for. Justin Mitzimberg Information Security Analyst Yamanouchi Consumer, Inc. [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:13 AM To: [EMAIL PROTECTED] Subject: Ntop digest, Vol 1 #259 - 4 msgs Send Ntop mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://listmanager.unipi.it/mailman/listinfo/ntop or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Ntop digest..." Today's Topics: 1. NTop with network tap (aka Y splitter) (Subhendu Ghosh) 2. RE: Newly installed ntop not working... (Burton M. Strauss III) 3. Re: building problem (Javier Colter) 4. Interface keaves promiscuous mode (Haberla, Christoph) --__--__-- Message: 1 Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy Date: Thu, 31 Jan 2002 14:48:05 -0500 (EST) From: Subhendu Ghosh <[EMAIL PROTECTED]> To: NTOP List <[EMAIL PROTECTED]> Subject: [Ntop] NTop with network tap (aka Y splitter) Reply-To: [EMAIL PROTECTED] Has anyone run Ntop with network tap that brings the data into two network cards - each showing traffic in a single direction? Any pointers on usage? -stia Subhendu --__--__-- Message: 2 Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy From: "Burton M. Strauss III" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [Ntop] Newly installed ntop not working... Date: Thu, 31 Jan 2002 21:32:40 -0600 Reply-To: [EMAIL PROTECTED] Chris Picton has the same problem - when I was tracing it before Luca's patch, I found two distinct paths into getHostInfo(), which would come from different devices - I think that's the problem, but haven't had time to dig in to it. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Switenky, Shawn Sent: Thursday, January 31, 2002 12:36 PM To: [EMAIL PROTECTED] Subject: [Ntop] Newly installed ntop not working... Thanks for your help, Burton. I grabbed the latest build and installed it. I have a very similar problem: [root@dhcp1 bin]# ./ntop -P /var/ntop Wait please: ntop is coming up... 31/Jan/2002 16:57:19 Initializing IP services... 31/Jan/2002 16:57:19 Initializing GDBM... 31/Jan/2002 16:57:19 Initializing network devices... 31/Jan/2002 16:57:19 ntop v.2.0.1 MT [i586-pc-linux-gnu] (01/31/02 03:52:49 PM build) 31/Jan/2002 16:57:19 Listening on [eth0] 31/Jan/2002 16:57:19 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> 31/Jan/2002 16:57:19 Get the freshest ntop from http://www.ntop.org/ 31/Jan/2002 16:57:19 Initializing... 31/Jan/2002 16:57:19 Loading plugins (if any)... 31/Jan/2002 16:57:19 WARNING: Unable to find the plugins/ directory. 31/Jan/2002 16:57:19 WARNING: For security reasons it is STRONGLY recommended to 31/Jan/2002 16:57:19 WARNING: run ntop as unprivileged user by using the -u option! 31/Jan/2002 16:57:19 Resetting traffic statistics... 31/Jan/2002 16:57:21 Started thread (1026) for network packet analyser. 31/Jan/2002 16:57:21 Started thread (2051) for host traffic statistics. 31/Jan/2002 16:57:21 Started thread (3076) for throughput update. 31/Jan/2002 16:57:21 Started thread (4101) for DNS address resolution. 31/Jan/2002 16:57:21 Started thread (5126) for address purge. 31/Jan/2002 16:57:21 Initializing plugins (if any)... 31/Jan/2002 16:57:21 Waiting for HTTP connections on port 3000... 31/Jan/2002 16:57:21 Sniffying... 31/Jan/2002 16:57:21 Started thread (7176) for network packet sniffing on eth0. 31/Jan/2002 16:57:21 Extending hash: [old=32, new=48][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=48, new=72][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=72, new=108][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=108, new=162][devId=0] 31/Jan/2002 16:57:24 Extending hash: [old=162, new=242][devId=0] 31/Jan/2002 16:57:29 Extending hash: [old=242, new=362][devId=0] 31/Jan/2002 16:57:42 Extending hash: [old=362, new=542][devId=0] Segmentation fault Now I'm going to include the results of make install. I had some problems, and perhaps I have not built something that I need to make this work. [root@dhcp1 ntop]# make install Making install in . make[1]: Entering directory `/root/ntop/ntop-current/ntop' make[2]: Entering directory `/root/ntop/ntop-current/ntop' /bin/sh ./mkinstalldirs /usr/local/lib /bin/sh ./libtool --mode=install /usr/bin/install -c libntop.la /usr/local/lib/libntop.la /usr/bin/install -c .libs/libntop.lai /usr/local/lib/libntop.la /usr/bin/install -c .libs/libntop.a /usr/local/lib/libntop.a ranlib /usr/local/lib/libntop.a chmod 644 /usr/local/lib/libntop.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ./libtool --mode=install /usr/bin/install -c libntopreport.la /usr/local/lib/libntopreport.la /usr/bin/install -c .libs/libntopreport.lai /usr/local/lib/libntopreport.la /usr/bin/install -c .libs/libntopreport.a /usr/local/lib/libntopreport.a ranlib /usr/local/lib/libntopreport.a chmod 644 /usr/local/lib/libntopreport.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ./mkinstalldirs /usr/local/bin /bin/sh ./libtool --mode=install /usr/bin/install -c ntop /usr/local/bin/ntop /usr/bin/install -c ntop /usr/local/bin/ntop /bin/sh ./mkinstalldirs /usr/local/bin /usr/bin/install -c ntop-config /usr/local/bin/ntop-config make install-man1 install-man8 make[3]: Entering directory `/root/ntop/ntop-current/ntop' /bin/sh ./mkinstalldirs /usr/local/man/man1 /usr/bin/install -c -m 644 ./intop/intop.1 /usr/local/man/man1/intop/intop.1 /bin/sh ./mkinstalldirs /usr/local/man/man8 /usr/bin/install -c -m 644 ./ntop.8 /usr/local/man/man8/ntop.8 make[3]: Leaving directory `/root/ntop/ntop-current/ntop' make[2]: Leaving directory `/root/ntop/ntop-current/ntop' make[1]: Leaving directory `/root/ntop/ntop-current/ntop' Making install in plugins make[1]: Entering directory `/root/ntop/ntop-current/ntop/plugins' Making install in . make[2]: Entering directory `/root/ntop/ntop-current/ntop/plugins' cc -bundle -flat_namespace -undefined suppress -o .libs/libicmpPlugin.so icmpPlugin.o cc: suppress: No such file or directory make[2]: *** [.libs/libicmpPlugin.so] Error 1 make[2]: Leaving directory `/root/ntop/ntop-current/ntop/plugins' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/root/ntop/ntop-current/ntop/plugins' make: *** [install-recursive] Error 1 The .libs directory is in the plugins directory. But there is no file libicmpPlugin.so I'm running a Linux Mandrake release 7.1 (helium) Kernel 2.2.15-4mdk on an i586 P166. It's a simple little Dell Dimension desktop with one ethernet. Shawn Switenky Telesat -----Original Message----- Download and build the latest source. (Check the archives for the history of the "-M" bug) -----Burton -----Original Message----- From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>]On Behalf Of Switenky, Shawn Sent: Wednesday, January 30, 2002 3:11 PM To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Subject: [Ntop] Newly installed ntop not working... I'm having some grief getting ntop to work. I've installed it ok, I think. When I run it, I get the following... [root@dhcp1 <mailto:root@dhcp1> bin]# ./ntop Wait please: ntop is coming up... 30/Jan/2002 20:33:28 Initializing IP services... 30/Jan/2002 20:33:28 Initializing GDBM... 30/Jan/2002 20:33:28 Database '/usr/local/var/ntop/dnsCache.db' open failed: File open error 30/Jan/2002 20:33:28 Possible solution: please use '-P <directory>' So, so I point it to a directory that I think makes sense, and I get farther: [root@dhcp1 <mailto:root@dhcp1> bin]# ./ntop -P /usr/local/share Wait please: ntop is coming up... 30/Jan/2002 20:33:41 Initializing IP services... 30/Jan/2002 20:33:41 Initializing GDBM... 30/Jan/2002 20:33:42 Initializing network devices... 30/Jan/2002 20:33:42 ntop v.2.0.0 MT [i586-pc-linux-gnu] (01/30/02 07:30:43 PM build) 30/Jan/2002 20:33:42 Listening on [eth0] 30/Jan/2002 20:33:42 Copyright 1998-2001 by Luca Deri <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 30/Jan/2002 20:33:42 Get the freshest ntop from <http://www.ntop.org/> 30/Jan/2002 20:33:42 Initializing... 30/Jan/2002 20:33:42 Loading plugins (if any)... 30/Jan/2002 20:33:42 WARNING: Unable to find the plugins/ directory. 30/Jan/2002 20:33:42 WARNING: For security reasons it is STRONGLY recommended to 30/Jan/2002 20:33:42 WARNING: run ntop as unprivileged user by using the -u option! 30/Jan/2002 20:33:42 Resetting traffic statistics... 30/Jan/2002 20:33:43 Started thread (1026) for network packet analyser. 30/Jan/2002 20:33:43 Started thread (2051) for host traffic statistics. 30/Jan/2002 20:33:43 Started thread (3076) for throughput update. 30/Jan/2002 20:33:43 Started thread (4101) for idle hosts detection. 30/Jan/2002 20:33:43 Started thread (5126) for idle TCP sessions detection. 30/Jan/2002 20:33:43 Started thread (6151) for DNS address resolution. 30/Jan/2002 20:33:43 Started thread (7176) for address purge. 30/Jan/2002 20:33:43 Initializing plugins (if any)... 30/Jan/2002 20:33:43 Waiting for HTTP connections on port 3000... 30/Jan/2002 20:33:43 Sniffying... 30/Jan/2002 20:33:43 Started thread (9226) for network packet sniffing on eth0. 30/Jan/2002 20:33:44 Extending hash: [old=32, new=48] 30/Jan/2002 20:33:44 Extending hash: [old=48, new=72] 30/Jan/2002 20:33:44 Extending hash: [old=72, new=108] 30/Jan/2002 20:33:44 Extending hash: [old=108, new=162] 30/Jan/2002 20:33:45 Extending hash: [old=162, new=242] 30/Jan/2002 20:33:50 Extending hash: [old=242, new=362] 30/Jan/2002 20:33:51 Extending TCP hash [new size: 64] 30/Jan/2002 20:34:01 Extending TCP hash [new size: 128] 30/Jan/2002 20:34:04 Extending hash: [old=362, new=542] 30/Jan/2002 20:34:32 Extending TCP hash [new size: 256] Segmentation fault [root@dhcp1 <mailto:root@dhcp1> bin]# In the time before the seg fault, I can browse the web page and see that it is gathering traffic. None of the graphic objects in the page display properly, but all the text and tables seem to present meaningful data. Does anyone know what I can do to resolve my seg fault problem or my graphic object problem? Shawn Switenky Telesat _______________________________________________ Ntop mailing list [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <http://listmanager.unipi.it/mailman/listinfo/ntop> _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop --__--__-- Message: 3 Date: Fri, 01 Feb 2002 00:46:34 -0300 From: Javier Colter <[EMAIL PROTECTED]> Organization: UOL-Sinectis To: [EMAIL PROTECTED] Subject: Re: [Ntop] building problem Reply-To: [EMAIL PROTECTED] This is a cryptographically signed message in MIME format. --------------msEE03149930596C1A86E7597C Content-Type: multipart/alternative; boundary="------------8F40544E01C7825BA4869529" --------------8F40544E01C7825BA4869529 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Burton M. Strauss III" wrote: > Check the list - there are postings by Guillaume about partial installs. > Looks like you are missing the images that should be in > /usr/share/ntop/html/statsicons Oh thanks again, i'll check it. -- ------------------------------------------------------------------------ Javier Colter --------------8F40544E01C7825BA4869529 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> "Burton M. Strauss III" wrote: <blockquote TYPE=CITE>Check the list - there are postings by Guillaume about partial installs. <br>Looks like you are missing the images that should be in <br>/usr/share/ntop/html/statsicons</blockquote> Oh thanks again, i'll check it. <br>-- <hr>Javier Colter <br> </html> --------------8F40544E01C7825BA4869529-- --------------msEE03149930596C1A86E7597C Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIH4AYJKoZIhvcNAQcCoIIH0TCCB80CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC BbMwggKCMIIB66ADAgECAgMEc/4wDQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNVBAYTAlpBMRUw EwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhh d3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwg RnJlZW1haWwgUlNBIDIwMDAuOC4zMDAeFw0wMTAzMjMxOTA1Mjda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FKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcNAQEBBQAE gYAVdd+8ldajhrz3NGLEJnvpyaQpDetos1+lMICJ/lBw+gzafC6xmVWj4dVkijb6IQ7fEgle tf5BVI8cC3OJuE0P4rZLAWdaiE9zxYz9otFCGat3kiorIeogZwqKs5+Ay2du2cYJ/DGuNd9x xELXL5FIopYctsOvpPqD79shu61PIA== --------------msEE03149930596C1A86E7597C-- --__--__-- Message: 4 Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy From: "Haberla, Christoph" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Date: Fri, 1 Feb 2002 11:33:03 +0100 Subject: [Ntop] Interface keaves promiscuous mode Reply-To: [EMAIL PROTECTED] Hello all, I encountered a problem with ntop-2.0 on a SuSE 7.1 Linux Box. Everything works fine, ntop collects data, but when I view any page (http://xyz.ddd:3000) the interface leaves promiscuous mode an ntop doesn't collect data anymore. If I put the interface manually in promiscuous mode again, ntop resumes collecting data (without restarting ntop). Any suggestions will be welcome, Regards, Chr. Haberla ------------------------------------- Streck Transport GmbH / IT Blankreutestr. 6 79108 Freiburg Tel.: +49 761 1305-157 Fax : +49 761 1305-159 ------------------------------------- --__--__-- _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop End of Ntop Digest _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop
