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 ? |
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.
|
Iam going to do that and report results
|
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 !! |
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 |
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. |
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. |