The default list is hardcoded in the app look for addDefaultProtocols() in
ntop.c

void addDefaultProtocols(void) {
  handleProtocolList("FTP",      "ftp|ftp-data|");
  handleProtocolList("HTTP",     "http|www|https|3128|"); /* 3128 is HTTP
cache */
  handleProtocolList("DNS",      "name|domain|");
  handleProtocolList("Telnet",   "telnet|login|");
  handleProtocolList("NBios-IP", "netbios-ns|netbios-dgm|netbios-ssn|");
  handleProtocolList("Mail",     "pop-2|pop-3|pop3|kpop|smtp|imap|imap2|");
  handleProtocolList("DHCP/BOOTP", "67-68|");
  handleProtocolList("SNMP",     "snmp|snmp-trap|");
  handleProtocolList("NNTP",     "nntp|");
  handleProtocolList("NFS",      "mount|pcnfs|bwnfs|nfsd|nfsd-status|");
  handleProtocolList("X11",      "6000-6010|");
  /* 22 == ssh (just to make sure the port is defined) */
  handleProtocolList("SSH",      "22|");
  /* Peer-to-Peer Protocols */
  handleProtocolList("Gnutella", "6346|6347|6348|");
  handleProtocolList("Morpheus", "1214|");
  handleProtocolList("WinMX",    "6699|7730|");
  handleProtocolList("Audiogalaxy",    "41000-41900|");
  /* handleProtocolList("Napster",  "8888|8875|"); */
}

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Nicola
Sent: Thursday, May 09, 2002 4:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Additional protocols (was NTOP Configuration
Questions)


Alright sounds like a plan.  I am doing it now.  I am assuming I have to
reset ntop in order to make the changes.  BTW what defines NTOPs default
protocol list?  Right now I am running it without the -p option at all.

Thanks,
Chris

-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: May 9, 2002 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] Additional protocols (was NTOP Configuration Questions)

Mike is right.  If you add protocols to /etc/services, you can refer to them
by name on the -p parameter (file).  Here is the current protocols.list that
I run with:

[bstrauss@tigger ntop-current]$ cat /usr/share/ntop/protocol.list
! tFTP=tftp
AOL IM=5190
DHCP/BOOTP=bootps|bootpc
DNS=domain
File Transfer=ftp|ftp-data
Mail (POP/IMAP)=pop2|pop3|pop3s|imap|imap3|imaps
Mail (SMTP)=25
NetBIOS=netbios|netbios-dgm|netbios-ssn
News (nntp)=nntp
PPTP=1723
SMB=microsoft-ds
SNMP=snmp|snmptrap
Secure Shell (sftp)=sftp
Secure Shell (ssh)=ssh
Time (ntp)=ntp
WINS replication=42
Web (NTop)=3000
Web (Squid cache)=3128
Web=http|https

So, for example, traffic on port 5190 is reported as "AOL IM" by ntop.

If I were to add that to /etc/services as:

aol            5190/tcp                         # AOL IM

Then I could use

AOL IM=aol

-----Burton




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Michael Baird
Sent: Thursday, May 09, 2002 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] -S option (was NTOP Configuration Questions)


Well, ntop looks at services for naming ports, just add entries in
/etc/services for the "odd ports".

Regards
MIKE

_______________________________________________
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