Well that's a fine kettle of fish, one tiny little fact to leave off...

Without an IP address on the interface, how is ntop able to determine the
local addresses?

Now it does work (I've run that way for months), but the local/remote
determination may not be what you want.

The only way to tell ntop what's local is via -m, which makes them pseudo
local!  And there are some subtle differences in the code - you'll have to
grep for things, mostly in pbuf.c also hash.c and a few other places...

The basic tests are subnetPseudoLocalHost(xx) and subnetLocalHost(xx) from
#define s in ntop.h

The flags to look for are

#define SUBNET_LOCALHOST_FLAG
and
#define SUBNET_PSEUDO_LOCALHOST_FLAG

Please post your findings...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Nicola
Sent: Tuesday, May 14, 2002 4:15 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] -m option for local subnets


I forgot to mention NTOP is monitoring on an interface that is in
promiscuous mode which has no IP address.  I can't see why this should
affect it but I was wondering if that has any known problems like this one
where the -m option isn't working.

Thanks,
Chris

-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: May 9, 2002 5:03 PM
To: [EMAIL PROTECTED]
Cc: Chris Nicola
Subject: RE: [Ntop] -m option for local subnets


1st, check the log like I asked and see if it's parsing your entries
correctly.
2nd, try 2.0.99 - IIRC there were bugs in the -m stuff that were fixed.
3rd, You're going to have to read the code to figure out the nitty-gritty of
how it handles pseudoLocal.

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Nicola
Sent: Thursday, May 09, 2002 6:44 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] -m option for local subnets


It is 2.0.1 and that is exactly what I am trying to do.  They are not
actually local to the machine because it is monitoring in promiscuous mode.
They are however the IP's that are used to represent my network to the
internet.  I want to make it list them as local so that the monitoring
statistics make sense but I can't seem to get this to work.  I went through
the mailing list archives and someone else had exactly the same problem but
no one posted a solution.  Does the line look correct though or could I have
made an error?

Thanks,
Chris


-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: May 9, 2002 4:44 PM
To: [EMAIL PROTECTED]
Cc: Chris Nicola
Subject: RE: [Ntop] -m option for local subnets

You didn't say which version... there are differences between 2.0 and
2.0.99...

Anyway, the -m identifies other subnets (besides your local interface) that
are treated as "pseudo local", i.e. local for most purposes.

Parsing is in handleLocalAddresses() in util.c - check the log for messages.
You may want to enable --trace-level 3 (-t 3) to see more of them...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Nicola
Sent: Thursday, May 09, 2002 6:13 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] -m option for local subnets


I am trying to set the local subnets for ntop but it is ignoring my -m
command.

The command I am using to run ntop is
/usr/local/bin/ntop -u nobody -i eth2 -p /usr/share/ntop/protocols.list -m
???.??.??.64/26 -S2

I am just putting question marks to hide my IP subnets in this case just
imagine that they have been replaces with the correct starting address (-1
of course).
So what gives?  The addresses in that range are still showing as remote.  Am
I doing something wrong?

Thanks,
Chris
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

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

Reply via email to