I'm pretty sure it's NOT an Ntop problem.  But I'm not sure that's going to
help you.

The behavior is perfectly understandable.  In promiscuous mode, Ntop sees
everything.  When the card drops back to normal mode, Ntop only sees traffic
to/from that one machine.  If you manually flip it back (ifconfig eth0
promisc), then it starts seeing all traffic again.

But there isn't anything in Ntop that's fancy - all Ntop uses is the
standard pcap library (http://www.tcpdump.org) - see initialize.c ~ line
913:

 pcap_open_live(myGlobals.device[i].name,
                         myGlobals.enablePacketDecoding == 0 ? 68 :
DEFAULT_SNAPLEN, 1, 100 /* ms */, ebuf);

That is, pcap_open_live(char *device, int snaplen, int promisc, int to_ms,
char *ebuf)

I think the ISA card is a problem - I tried using a 3c509b also and couldn't
get it to work.  It SAYS it's in promiscuous mode, (this was for snort) but
spifft...  So I switched to a PCI card also.

There are repeated reports across a lot of pcap derived products (tcpdump,
ethereal, the network card drivers themselves) about various problems with
promiscuous mode.  Stuff like this:

http://www.ultraviolet.org/mail-archives/snort-users.2001/0609.html

I have seen the same thing on some machines.
Some nic's do not switch to promisc mode properly.

I changed the snort startup script. I added extra
command after snort invocation:
  ifconfig eth0 promisc
that works.

There are also some daemons that scan the system and boot interfaces out of
promiscous mode, to protect against sniffers being installed - I don't know
if you have one of those running?

<etc/>

But there isn't a pattern that I can see - it's not one particular card or
anything.  Best advice is to do the following:

1. Check for a daemon or cron which resets promiscuous mode

2a. For grins, try it without the -E switch

2b. Try another piece of software - tcpdump or snort - and see if they run
ok.  If they fail the same way, well... then it's not Ntop

3. Try another card - there are perfectly good, cheap ($10-20) PCI cards out
there which you can use as long as you aren't trying to monitor a gigabit
ethernet.

4. Upgrade the kernel and/or network drivers (you don't say which version is
running, there are updates for some drivers available at
http://www.scyld.com/network/ (at least check if there are updates with a
later kernel)


-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Haberla, Christoph
Sent: Friday, February 01, 2002 8:52 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [Ntop] Interface keaves promiscuous mode


Hello community,

please excuse me, I am new to this mailing list.
Our configuration is as follows:

Pentium I-233, 128MB of RAM, running SuSE Linux 7.1 (kernel 2.4.0-4GB,
standard, which comes withe the distribution)
I've built ntop from source (ntop-2.0-src.tgz from www.ntop.org) using
gcc-2.95.2 and glibc-2.2-7
My networking card is a DEC Tulip dc21x4x PCI (I've also tried a 3com 3c509
ISA-Card), and I want
to mirror a LAN with about 30 Machines connected to a 10Mb/s Synoptics Hub.
The command line, I start ntop is:

/usr/local/bin/ntop -d -E -i eth0 -w 3000 -P /var/lib/ntop_eth0 -p
$NTOPD_LIST

where $NTOPD_LIST is:
FTP=ftp|ftp-data,HTTP=http|www|https,HTTP-Proxy=8080,DNS=name|domain,Telnet=
telnet|login,NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=pop-2|pop-3|kp
op|smtp|imap|imap2,SNMP=snmp|snmp-trap,NEWS=nntp,X11=6000-6010,SSH=ssh,Ica=i
ca|icabrowser

By the way, this command line works fine in an older Linux-Box we are using.

Sorry for any inconvenience and thanks for any suggestions.

Christoph



<snip>

> 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,

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to