Josh said...
> Hey Kurt,
> 
> Have you tried accessing ntop from the local machine?  It 
> sounds like a
> firewall may be getting in the way.  If you aren't GUI'd up on the
> freebsd box, try telnetting to 127.0.0.1 3000 and see if you get a
> response back from it.
> 
> Cheers,
> Josh. 

Not gui'ed up on the local box. I've rebuilt the machine (FreeBSD 5.3
release), after finding that there were some issues with the drives in it.
Sigh. This is a pretty vanilla install from the ports system, with one
exception - to get ntop to run and log to the directories I wanted (I must
have missed something in the docs because I couldn't see how to do it
otherwise), I started with 'ntop -A', copied the 'ntop_pw.db' and
'prefsCache.db' files where I wanted them and the chown'ed them with the
permissions needed.

However, yes - I can telnet from the console but can't remotely. I can ssh
into the box, though. All of the settings and logs below are from my ssh
session.

What's weird is that 'netstat -anf inet' reveals only the following:

----------end output from netstat -anf inet----------
it-freebsd# netstat -anf inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  192.168.15.73.22       192.168.24.51.2972
ESTABLISHED
tcp4       0      0  192.168.15.73.50488    131.114.21.22.80
CLOSE_WAIT
tcp4       0      0  127.0.0.1.25           *.*                    LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
udp4       0      0  *.514                  *.*
----------end output from netstat -anf inet----------

No open ports at 3000.

netstat -anp is just as revealing - it's open for 6, but not for 4. I'm
lacking clue here.

----------end output from netstat -anp tcp----------
it-freebsd# netstat -anp tcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  192.168.15.73.22       192.168.24.51.2972
ESTABLISHED
tcp6       0      0  *.3001                 *.*                    LISTEN
tcp6       0      0  *.3000                 *.*                    LISTEN
tcp4       0      0  192.168.15.73.50488    131.114.21.22.80
CLOSE_WAIT
tcp4       0      0  127.0.0.1.25           *.*                    LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp6       0      0  *.22                   *.*                    LISTEN
----------end output from netstat -anp tcp----------

Here's my output from top:

----------begin output from top-----------
last pid:   582;  load averages:  0.01,  0.02,  0.00
up 0+01:03:55  17:44:42
25 processes:  1 running, 24 sleeping
CPU states:  1.6% user,  0.0% nice,  0.8% system,  0.8% interrupt, 96.9%
idle
Mem: 40M Active, 6192K Inact, 23M Wired, 13M Buf, 928M Free
Swap: 1024M Total, 1024M Free

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
  411 ntop      20    0 50452K 38932K kserel   2:22  0.00%  0.00% ntop
  349 root      96    0  3440K  2668K select   0:00  0.00%  0.00% sendmail
  237 root      96    0  1312K   904K select   0:00  0.00%  0.00% syslogd
  472 root       4    0  6112K  2912K sbwait   0:00  0.00%  0.00% sshd
  475 kurt      96    0  6092K  2968K select   0:00  0.00%  0.00% sshd
  478 root      20    0  2232K  1792K pause    0:00  0.00%  0.00% csh
  365 root       8    0  1356K  1044K nanslp   0:00  0.00%  0.00% cron
  477 kurt       8    0  1600K  1288K wait     0:00  0.00%  0.00% su
  476 kurt       8    0  1692K  1312K wait     0:00  0.00%  0.00% sh
  582 root      96    0  2292K  1584K RUN      0:00  0.00%  0.00% top
  353 smmsp     20    0  3340K  2692K pause    0:00  0.00%  0.00% sendmail
  407 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  406 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  410 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  452 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  408 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  404 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  405 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  409 root       5    0  1280K   952K ttyin    0:00  0.00%  0.00% getty
  343 root      96    0  3360K  2480K select   0:00  0.00%  0.00% sshd
  217 root     114    0   516K   360K select   0:00  0.00%  0.00% devd
  161 root      20    0  1184K   652K pause    0:00  0.00%  0.00% adjkerntz
----------end output from top-----------


Here's my (slightly revised) ntop.sh

----------begin /usr/local/etc/rc.d.ntop.sh-----------
#!/bin/sh

interfaces='xl0'
userid='ntop'
http_port='3000'
https_port='3001'
logdir='/home/ntop/ntop'
additional_args='-U -a -o -P /home/ntop/ntop -m
192.168.16.0/24,192.168.24.0/24,192.168.38.0/24,192.
168.61.0/24'
#----------------------------------------------------------------------

args='-d -L --set-pcap-nonblocking'

[ ! -z $interfaces ] && args="$args -i $interfaces"
[ ! -z $http_port ] && args="$args -w $http_port"
[ ! -z $https_port ] && args="$args -W $https_port"
[ ! -z $logdir ] && args="$args -a ${logdir}/ntop.access.log"
[ ! -z $userid ] && args="$args -u $userid"
[ ! -z "$additional_args" ] && args="$args $additional_args"

case "$1" in
start)
  if [ -d $logdir ]; then
    touch ${logdir}/ntop.access.log
    chown $userid ${logdir}/ntop.access.log
  fi
  if [ -x /usr/local/bin/ntop ]; then
    /usr/local/bin/ntop $args > /dev/null 2>&1 &
    echo -n ' ntop'
  fi
  ;;
stop)
  killall ntop > /dev/null 2>&1 && echo -n ' ntop'
  ;;
*)
  echo "Usage: `basename $0` {start|stop}" >&2
  exit 64
  ;;
esac

exit 0
----------end /usr/local/etc/rc.d.ntop.sh-----------

The startup log:

----------begin from /var/log/messages----------
Nov 24 18:06:35 it-freebsd ntop[645]:   ntop v.3.0 SourceForge .tgz MT (SSL)
Nov 24 18:06:35 it-freebsd ntop[645]:   Configured on Nov 24 2004 16:01:12,
built on Nov 24 2004 16:03:09.
Nov 24 18:06:35 it-freebsd ntop[645]:   Copyright 1998-2004 by Luca Deri
<[EMAIL PROTECTED]>
Nov 24 18:06:35 it-freebsd ntop[645]:   Get the freshest ntop from
http://www.ntop.org/
Nov 24 18:06:35 it-freebsd ntop[645]:   Initializing ntop
Nov 24 18:06:35 it-freebsd kernel: xl0: promiscuous mode enabled
Nov 24 18:06:35 it-freebsd ntop[645]:   **WARNING** Truncated network size
(device xl0) to 1024 hosts (real netmask 255.255.240.0)
Nov 24 18:06:35 it-freebsd ntop[645]:   Checking xl0 for additional devices
Nov 24 18:06:35 it-freebsd ntop[645]:   Resetting traffic statistics for
device xl0
Nov 24 18:06:35 it-freebsd ntop[645]:   DLT: Device 0 [xl0] is 1, mtu 1514,
header 14
Nov 24 18:06:35 it-freebsd ntop[645]:   Initializing gdbm databases
Nov 24 18:06:35 it-freebsd ntop[645]:   Now running as requested user 'ntop'
(1001:1001)
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: Loading MAC address table.
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: Checking for MAC address
table file
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: File
'/usr/local/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: ntop continues ok
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: Checking for MAC address
table file
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: File
'/usr/local/etc/ntop/oui.txt.gz' does not need to be reloaded
Nov 24 18:06:35 it-freebsd ntop[645]:   VENDOR: ntop continues ok
Nov 24 18:06:35 it-freebsd ntop[646]:   INIT: Bye bye: I'm becoming a
daemon...
Nov 24 18:06:35 it-freebsd ntop[645]:   INIT: Parent process is exiting
(this is normal)
Nov 24 18:06:35 it-freebsd ntop[646]:   Now running as a daemon
Nov 24 18:06:35 it-freebsd ntop[646]:   OSFP: Checking for OS fingerprint
table file
Nov 24 18:06:35 it-freebsd ntop[646]:   OSFP: Loading file
'/usr/local/etc/ntop/etter.passive.os.fp.gz'
Nov 24 18:06:35 it-freebsd ntop[646]:   ASN: Checking for Autonomous System
Number table file
Nov 24 18:06:35 it-freebsd ntop[646]:   **WARNING** ASN: Unable to open file
'AS-list.txt'
Nov 24 18:06:35 it-freebsd ntop[646]:   I18N: This instance of ntop does not
support multiple languages
Nov 24 18:06:35 it-freebsd ntop[646]:   IP2CC: Checking for IP address <->
Country Code mapping file
Nov 24 18:06:35 it-freebsd ntop[646]:   IP2CC: Loading file
'/usr/local/etc/ntop/p2c.opt.table.gz'
Nov 24 18:06:36 it-freebsd ntop[646]:   IP2CC: ...found 52395 lines
Nov 24 18:06:36 it-freebsd ntop[646]:   GDVERCHK: Guessing at libgd version
Nov 24 18:06:36 it-freebsd ntop[646]:   GDVERCHK: ... as 2.0.21+
Nov 24 18:06:36 it-freebsd ntop[646]:   Initializing external applications
Nov 24 18:06:36 it-freebsd ntop[646]:   Initializing semaphores, mutexes and
threads
Nov 24 18:06:36 it-freebsd ntop[646]:   NOTE: atfork() handler registered
for mutexes, rc 0
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(134600704) for network packet analyser
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(134601216) for fingerprinting
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(134601728) for idle hosts detection
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(134602240) for DNS address resolution
Nov 24 18:06:36 it-freebsd ntop[646]:   Calling plugin start functions (if
any)
Nov 24 18:06:36 it-freebsd ntop[646]:   Sniffying...
Nov 24 18:06:36 it-freebsd ntop[646]:   INIT: Created pid file
(/home/ntop/ntop/ntop.pid)
Nov 24 18:06:36 it-freebsd ntop[646]:   Listening on [xl0]
Nov 24 18:06:36 it-freebsd ntop[646]:   Now running as requested user 'ntop'
(1001:1001)
Nov 24 18:06:36 it-freebsd ntop[646]:   Loading Plugins
Nov 24 18:06:36 it-freebsd ntop[646]:   Searching for plugins in
/usr/local/lib/ntop/plugins
Nov 24 18:06:36 it-freebsd ntop[646]:   ICMP: Welcome to icmpWatchPlugin.
(C) 1999-2004 by Luca Deri
Nov 24 18:06:36 it-freebsd ntop[646]:   LASTSEEN: Welcome to
LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni
Nov 24 18:06:36 it-freebsd ntop[646]:   NETFLOW: Welcome to NetFlow.(C)
2002-04 by Luca Deri
Nov 24 18:06:36 it-freebsd ntop[646]:   NFS: Welcome to nfsWatchPlugin. (C)
1999-2004 by Luca Deri
Nov 24 18:06:36 it-freebsd ntop[646]:   PDA: Welcome to PDAPlugin. (C)
2001-2004 by L.Deri and W.Brock
Nov 24 18:06:36 it-freebsd ntop[646]:   RRD: Welcome to rrdPlugin. (C)
2002-04 by Luca Deri.
Nov 24 18:06:36 it-freebsd ntop[646]:   SFLOW: Welcome to sFlowPlugin. (C)
2002-04 by Luca Deri
Nov 24 18:06:36 it-freebsd ntop[646]:   XML: Welcome to xmldump plugin. (C)
2003-2004 by Burton Strauss
Nov 24 18:06:36 it-freebsd ntop[646]:   Calling plugin start functions (if
any)
Nov 24 18:06:36 it-freebsd ntop[646]:   RRD: Welcome to the RRD plugin
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Packet processor thread
running...
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Fingerprint scan thread
running...
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Idle host scan thread
running...
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Address resolution
thread running...
Nov 24 18:06:36 it-freebsd ntop[646]:   CHKVER: Checking current ntop
version at version.ntop.org/version.xml
Nov 24 18:06:36 it-freebsd ntop[646]:   RRD: Mask for new directories is
0700
Nov 24 18:06:36 it-freebsd ntop[646]:   RRD: Mask for new files is 0066
Nov 24 18:06:36 it-freebsd ntop[646]:   RRD: Started thread (140161536) for
data collection.
Nov 24 18:06:36 it-freebsd ntop[646]:   SSL is present but https is
disabled: use -W <https port> for enabling it
Nov 24 18:06:36 it-freebsd ntop[646]:   Note: Reporting device initally set
to 0 [xl0] (merged)
Nov 24 18:06:36 it-freebsd ntop[646]:   INITWEB: Initializing web server
Nov 24 18:06:36 it-freebsd ntop[646]:   INITWEB: Initializing tcp/ip socket
connections for web server
Nov 24 18:06:36 it-freebsd ntop[646]:   INITWEB: Initialized socket, port
3000, address (any)
Nov 24 18:06:36 it-freebsd ntop[646]:   INITWEB: Waiting for HTTP
connections on port 3000
Nov 24 18:06:36 it-freebsd ntop[646]:   INITWEB: Starting web server
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(140162048) for web server
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: Started thread
(140162560) for network packet sniffing on xl0
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: rrd thread (140161536)
started
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: web connections thread
(646) started...
Nov 24 18:06:36 it-freebsd ntop[646]:   Note: SIGPIPE handler set (ignore)
Nov 24 18:06:36 it-freebsd ntop[646]:   WEB: ntop's web server is now
processing requests
Nov 24 18:06:36 it-freebsd ntop[646]:   THREADMGMT: pcap dispatch thread
running...
Nov 24 18:06:37 it-freebsd ntop[646]:   CHKVER: Version file is from
'version.ntop.org'
Nov 24 18:06:37 it-freebsd ntop[646]:   CHKVER: as of date is
'2004-03-22T04:30:00'
Nov 24 18:06:37 it-freebsd ntop[646]:   CHKVER: This version of ntop is the
CURRENT stable version
----------end from /var/log/messages----------


  

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

Reply via email to