LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2006, 03:10 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
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 ?
 
Old 08-09-2006, 11:56 PM   #2
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
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.
 
Old 08-10-2006, 07:13 AM   #3
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
Iam going to do that and report results
 
Old 08-10-2006, 07:19 AM   #4
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
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 !!
 
Old 08-10-2006, 08:02 AM   #5
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
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
 
Old 08-10-2006, 10:28 AM   #6
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
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.
 
Old 08-10-2006, 12:19 PM   #7
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
nTop, port 0 traffic - help I am under attack! waffe Linux - Security 1 12-09-2005 07:53 AM
How do i change the exim4 port? ultramancool Linux - Software 1 03-23-2005 10:19 PM
Ntop with 2 nic's on Debian + basic questions! bazagee Debian 2 02-19-2004 09:56 PM
Setting up two nics with ntop in Debian bazagee Linux - Networking 0 02-13-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration