I think you should flame him... It will be interesting to see what he has to
offer in the way of code patches.
Of course, there already is a solution to the IP/MAC address issue in the
baseline code, but he's too egotistical and/or obnoxious and/or whatever to
bother...
Quoting from the docs/FAQ file:
Q. I don't understand -j | --border-sniffer-mode
A. Welcome to the club <grin />
Quoting from Luca's comment:
"-j is used when you are starting ntop on a mirrored interface where you
cannot trust MAC addresses."
ntop uses MAC addresses for many things to differentiate among machines.
IP addresses and names can mean many things, but hardware addresses are
supposed to be unique. This is usually true, but gets hairy when you
introduce a switch into the network which is also copying all of the
packets it sees to a monitoring port.
Understand how a switch works: In short, a switch monitors the network it
sees
and knows which mac address(es) are on which ports. When it received a
packet,
it forwards it to only that port. Broadcasts are forwarded to all ports.
So an ntop instance, sniffer, whatever only sees a fraction of the
traffic.
In many managed switches, there is an option for a "repeater" or
"monitoring"
or "spanned" port, which receives all traffic, so that network monitoring
can
be performed there.
However, When the switch sends out packets on the monitoring port, it
must
rewrite them to be valid Ethernet packets with a valid (i.e. the
switch's)
MAC address and ntop gets confused.
Note that:
1. -j usually requires you to specify the local network (-m) as a
mirrored
interface might have a wrong/ip-less/privare IP address.
2. -j disables some features as TCP session tracking etc.
In future versions -j will disappear and it will be replaced with more
flags
for better controlling all these options.
With multiple switches in a hierarchy, you have to place the ntop
instance
or instances carefully, depending upon what you want to monitor.
For example, most lans have a switch in each area with it's uplink
connected
to a backbone switch. Servers and gateways are then placed off one or
more
backbone ports. This keeps departmental traffic isolated from each
other,
while making enterprise wide and inter-department traffic feasible. ntop
would have to be monitoring the backbone switch, but you would need to be
aware of what ntop is NOT seeing and place additional monitors.
For example, you could place additional ntop instances in the
departments,
using the netflow or sFlow plugins to receive flow information from them
which wouldn't be visible to the backbone instance. (I'll note that I
haven't
actually tried this, myself. -----Burton)
Q. When I run with -j | --border-sniffer-mode, there are different menus.
A. Yes.
The menus are just html files. There is a set for regular mode and a
j_xxx.html set for border sniffer mode. Why? Because there are things
that simply don't work in border-sniffer-mode, so why let the user
request those pages.
Q. OK, but it changed after 2.1.2 (i.e. in 2.1.50) what are the NEW
parameters?
A. There were four new parameters introduced when -j | --border-sniffer-mode
was removed. Whether the old parameter really did all the same things as
the new ones is irrelevant and left to code-archiologists. What matters
is what the new ones are and what they do!
They are:
-b | --disable-decoders
This flag disables protocol decoders. Use it for better performance
or if you feel ntop has problems handling these protocols in your
environment.
This switch disables code in a number of places throughout ntop, code
which analyzes specific protocols, but can place additional load on the
host. This switch could be used to run ntop on low-end CPUs or where
ntop is acting as a collector (netFlow or sFlow) and the GUI is not
required.
Disabled is the analysis of:
DNS Sniffing - where ntop captures DNS information from other hosts'
requests to reduce the # of DNS requests ntop must -
itself - make.
NetBIOS \
NetWare \
AppleTalk -- resource intensive protocol analysis of less
bootp/dhcp / common protocols.
OSI /
http (80) - Request success/failure counting on port 80 and other
analysis, including "Virtual Host".
ftp passive session tracking.
"Wrong Port" monitoring for: http, ftp and smtp (used with the
-q | --create-suspicious-packets option to dump "suspicious"
packets to an analysis file) With this option, ntop checks
the payload for each new connection, looking for text usually
present in http, ftp or smtp requests. If these are not on
the
"normal" ports (http's 80, ntop's 3000 or squid's 3128, ftp's
21 or smtp's 25) (or there is a non-ftp or smtp request on the
standard ports), the packet is logged.
-g | --track-local-hosts
Use this flag to tell ntop that you care only about local hosts (use
-m | -- local-subnets to specify local nets). This flag is useful when
ntop sees many hosts (e.g. border gateway) but only the local ones need
to be tracked.
This switch disables code in a number of places throughout ntop, code
which allows ntop to track "foreign" hosts (that is ones not local
according to the IP address(es) of ntop's interfaces or set
pseudo-local
by -m | -- local-subnets).
Basically, ntop doesn't bother to do DNS resolution on these addresses
and, for purposes of various counts, uses the "other" bucket instead of
creating a unique hash table bucket for the specific host.
This switch could be used to run ntop on low-end CPUs or where ntop is
acting as a collector (netFlow or sFlow) and the GUI is not required.
-o | --no-mac
Specifies that ntop should not trust MAC addresses but just IP
addresses.
This option is useful whenever ntop is started on an interface where
MAC
(Media Access Controller - the low-level Ethernet address) addresses
can
not really be trusted (e.g. port/VLAN mirror in Switched Ethernet
environments).
Certain processing is performed differently:
Hash search is via IP not MAC
Certain capabilities are disabled:
Analysis of bootp/dhcp requests
localRoutersList.html report
Wrong net mask log message and flag
Analysis of non-tcp/udp protocols like NetWare and Spanning Tree
Router listing on Host Detailed report.
Traffic Matrix report
(Note that this list is subject to change as we learn more about
protocols
that do/do not depend on the MAC address)
See also -z | --disable-sessions
-z | --disable-sessions
This flag disables tcp session tracking. Use it for better performance
or
when you don't really need the tracking of sessions.
Also, in situations where the MAC addresses can not be trusted, ntop
may
- or may not - be able to accurately track tcp sessions. There is no
easy
way to tell, so this switch puts control back into the users' hands.
In versions after 2.0 up to & including 2.1.2, the -j
| --border-sniffer-mode
flag (predecessor of -o | --no-mac) always turned this off. Many users
wanted
to try turning session tracking back on, and did via code patches with
mixed
results.
Suggested usage: If you enable -o | --no-mac, try running ntop with
sessions enabled. If the data looks reasonable, congratulations - your
network allows session tracking. If the data does not look reasonable,
then you will also need to disable session tracking with this switch.
(Added 21Aug2002 - BMS)
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ian
Firla
Sent: Tuesday, October 15, 2002 5:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Why NTOP is gay
Hrmn. Not to flame you here but if you're ranting on a public discussion
list regarding an open source programme and are bragging about having
altered the sexual orientation of the software in question, couldn't you
at least post your solution?
It sounds like you've hit a problem in the software that others may
experience.
Ian
On Tue, 2002-10-15 at 08:29, [EMAIL PROTECTED] wrote:
> I don't know what you're on about but i dont even touch the web side of
it. All
> i want is something where it emails you the stats of each IP. I've ran
into
> endless troubles regarding ntop but, i know that the database side of
things is
> still in development so i can live with that. But when I found out that it
logs
> on mac address rather than IPs, i had to do a lot of changing. Usually i
> wouldnt bother, and just try the next logging program but i had done a lot
of
> script work on it and didnt want to let it go to waste, as well as
changing it
> so that it emails you stats based on username rather than ip/mac address.
And
> now ive finished, apart from one small problem which ill fix up tomorrow.
I'm
> rather happy with ntop but theres also a lot of things that could be
> changed/fixed which i might look into when ive got time.
>
> Quoting Firsto Lasto <[EMAIL PROTECTED]>:
>
> >
> > You are wrong - ntop _used to be_ an IP stats program. Now it is a
> > "show
> > pretty things on web pages" program.
> >
> > You see, `top` is a console based app, and `ntop` was perfect as a
> > console
> > based app as well - html support is neat, as a way to summarize the
> > results
> > and make them available to non-logged in users, but the core program
> > _should
> > be_ a console program.
> >
> > I thought whats his name was kidding when he told me that `intop` is not
> >
> > supported and may or may not even work - but he wasn't. It's true.
> >
> > So, all you people rag on MS and other big companies for feature creep
> > and
> > going from useful programs to crappy, confusing bloatware ... well wake
> > up,
> > you're in the same spot. You have sacrificed the core functionality
> > completely in order to oooh and aaah at pretty little pictures in a web
> >
> > browser.
> >
> > Nice work!
> >
> >
> >
> > >
> > >Is this done on purpose? I don't see what the point of that is, seeing
> > that
> > >it's an IP stats program. Sure, if it showed you the MAC address
> > instead of
> > >the
> > >IPs, this would be fine. It also says in the docs that it logs like
> > tcpdump
> > >does, but tcpdump logs propper IP addresses. Someone could just log on
> > with
> > >an
> > >IP and change it straight away, and noone would ever know. Anyway, I've
> >
> > >worked
> > >my way around it and modified my scripts so that it not only shows the
> >
> > >right IP
> > >address, but it also shows the USER it is comming from.
> > >
> > >
> > > > Actually, ntop is pretty straight, albeit not narrow.
> > > >
> > > > The reason ntop logs it as the old IP is that it's the same host
> > since
> > > > ntop uses the MAC address. Assuming you can read, as well as
> > being
> > > > cute, it's discussed in the docs/FAQ file.
> > > >
> > > > -----Burton
> > > >
> > > >
> > > > ---------- Original Message ----------------------------------
> > > > From: [EMAIL PROTECTED]
> > > > Reply-To: [EMAIL PROTECTED]
> > > > Date: Tue, 15 Oct 2002 10:18:16 +1000 (EST)
> > > >
> > > > >Because when a machine changes IP address, it continues logging
> > from
> > > > the old IP
> > > > >address that the machine originally had.
> > >_______________________________________________
> > >Ntop mailing list
> > >[EMAIL PROTECTED]
> > >http://listgateway.unipi.it/mailman/listinfo/ntop
> >
> >
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> > _______________________________________________
> > Ntop mailing list
> > [EMAIL PROTECTED]
> > http://listgateway.unipi.it/mailman/listinfo/ntop
> >
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
--
Dr Ian Firla
Robert Graves Trust | "A partial count of the software
available
St John's College, Oxford | in just one noncommerical Linux system
OX1 3JP - +44-(0)7855-310565 | would have cost about $1.9 billion to
develop
http://www.robertgraves.org | ... the way Microsoft does it" Bruce
Perens
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop