LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Change NTOP port in Debian (https://www.linuxquestions.org/questions/linux-networking-3/change-ntop-port-in-debian-472057/)

ALInux 08-08-2006 03:10 PM

Change NTOP port in Debian
 
Hi
Iam running ntop as a debian on a Debian Sarge system. I want to change the port so that when the system starts or when I restart the deamon it listens to port 9001. I cant find the configuration file anywhere.

Any suggestions, please ?

jonlake 08-09-2006 11:56 PM

One search I did said that it looks in /usr/etc/ntop for the config file. You could also do an updatedb and then locate ntop | grep etc which might help you find it.

ALInux 08-10-2006 07:13 AM

Iam going to do that and report results

ALInux 08-10-2006 07:19 AM

noccbox:/home/salhidiq# locate ntop | grep etc
/etc/default/ntop
/etc/init.d/ntop
/etc/rc0.d/K20ntop
/etc/rc1.d/K20ntop
/etc/rc2.d/S20ntop
/etc/rc3.d/S20ntop
/etc/rc4.d/S20ntop
/etc/rc5.d/S20ntop
/etc/rc6.d/K20ntop
/etc/logrotate.d/ntop
/etc/logcheck/ignore.d.workstation/ntop
/etc/logcheck/ignore.d.paranoid/ntop
/etc/logcheck/ignore.d.server/ntop
/etc/ntop
/etc/ntop/p2c.opt.table.gz
/etc/ntop/etter.passive.os.fp.gz
/etc/ntop/oui.txt.gz
/etc/ntop/specialMAC.txt.gz
/etc/ntop/AS-list.txt.gz
/etc/ntop/protocol.list
/etc/ntop/ntop-cert.pem


Nothing revealing here...this is really driving me crazy !!

ALInux 08-10-2006 08:02 AM

Apparently, "I might be wrong about this" there is no specific config file to edit..it all depends upon how you start ntop for example in the command below:

ntop -d -u ntop -i eth0,eth1 -w 5555 --w3c

ntop is started as a daemon -d
ntop is started as user ntop -u
ntop is listening to nics eth0 and eth1 -i
ntop is listening to port 5555 -w
ntop is using --w3c this produces a slightly better display

jonlake 08-10-2006 10:28 AM

Ok, then check your rc scripts that start ntop.
/etc/rc2.d/S20ntop
/etc/rc3.d/S20ntop
/etc/rc4.d/S20ntop
/etc/rc5.d/S20ntop

It should loook something like what you posted earlier. Change the port to what you want it to be.

ALInux 08-10-2006 12:19 PM

Might also be a feasible idea, I will check that out and post the results too


All times are GMT -5. The time now is 06:37 AM.