LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-16-2004, 11:52 AM   #1
bazagee
LQ Newbie
 
Registered: Feb 2004
Location: Frozen North
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Smile Ntop with 2 nic's on Debian + basic questions!


Hi all,

Newbie to Linux, I have (had) a working Debian Ntop setup and want to add another Nic to monitor a DMZ segment. I only want to put the DMZ Nic into promiscuous mode without an ip address (to make it more "hopefully" secure).

I installed two identical nics (3Com 905x). I entered: auto eth1 into the interfaces file with no other info (ip address, network address or gateway). I added the eth1 to the ntop -i config file and restarted the server (I know I probably didn't have to but I couldn't get the restart command to work :-) ).

I no longer get a webpage with this setup. Do I have to re-compile the Kernel for these nic's you think? I can get out on eth0 but now I'm getting a dns error on my ntop page (port 3000). The name of the machine resolves. Its probably something very simple but to a new linux user like me everything is a bit of a mountain to climb at the moment :-)
Oh, I tried using make-kpkg kernel_image but its complaining that I'm not in the top level source directory. Which directory would I need to be in for an alpha version.

Can someone point be in the right direction with my errorous ways?
 
Old 02-19-2004, 07:33 PM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Re: Ntop with 2 nic's on Debian + basic questions!

Hi,

Quote:
Originally posted by bazagee
Hi all,

Newbie to Linux, I have (had) a working Debian Ntop setup and want to add another Nic to monitor a DMZ segment. I only want to put the DMZ Nic into promiscuous mode without an ip address (to make it more "hopefully" secure).

I installed two identical nics (3Com 905x). I entered: auto eth1 into the interfaces file with no other info (ip address, network address or gateway). I added the eth1 to the ntop -i config file and restarted the server (I know I probably didn't have to but I couldn't get the restart command to work :-) ).


if you put an "auto" for your nic in /etc/network/devices it can happen that an installed dhcp-client is getting an ip-address/subnet from your dhcp server. If this happens it is possible that you have two nics on the same subnet which isn't really nice ...

So set another ip and another subnet for this device (f.e. 10.1.1.1./24). I hope this works. The descirption of your problem isn't that "big" so that i can't figure out exactly what's going on Also check your routing settings...

Quote:
I no longer get a webpage with this setup. Do I have to re-compile the Kernel for these nic's you think? I can get out on eth0 but now I'm getting a dns error on my ntop page (port 3000). The name of the machine resolves. Its probably something very simple but to a new linux user like me everything is a bit of a mountain to climb at the moment :-)
Oh, I tried using make-kpkg kernel_image but its complaining that I'm not in the top level source directory. Which directory would I need to be in for an alpha version.

Can someone point be in the right direction with my errorous ways?
The "normal" TLDirectory of a Linux tree should be /usr/src/linux if you're in it do a make-kpkg kernel_image and everything should work fine

cu
 
Old 02-19-2004, 09:56 PM   #3
bazagee
LQ Newbie
 
Registered: Feb 2004
Location: Frozen North
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Got it

Thanks Stony for the reply. After a little guidence and a couple of hours tinkering I found out that the problem was one of the NIC's. It just wouldn't come up. I swapped it out for another 3Com and away we went.

As it turns out you can just have > auto eth1 with no IP address and Ntop picks it up without any fuss. Seems the dns error I was getting from my web page we a missing dependency for Ntop. So a quick re-install got me back on track.

Now it off to do battle with and other Debian box and RRD Tool and Cacti. Yee Haw!

Thanks again for the post.
Cheers
 
  


Reply



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
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
nOOb, switching from slackware to debian (some basic questions) drawhla Debian 5 08-30-2004 06:32 PM
Setting up two nics with ntop in Debian bazagee Linux - Networking 0 02-13-2004 03:40 PM
Bad NIC's speeds running Debian! comawhite Linux - Networking 0 12-29-2003 04:42 PM
ntop general questions Cpare Linux - Networking 0 12-14-2001 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:28 AM.

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