Using an unnumbered interface is very much best practices. I recommend N+1 NICs, where there is one numbered interface to access the ntop web server (internal or DMZ) and the rest are unnumbered interfaces attached to the necessary segments.
That's basically how I run on Tigger and Owl - see below. Note that this is NOT what I would recommend in production. I'm happy to consult with anyone on ntop sensor placement - see http://www.ntopsupport.com/services.html. This scheme is mostly a way to force all traffic over a single pipe (using 802.1q VLANs) so I can test more things and have visibility of it without having to stick 4 NICs in each of two servers. I realize the setup looks a little odd, it has to do with what I could buy for cheap (the 3C16985 cost me $36 on EBay) and also the physical location of hosts. If I had Ci$co gear, I could do it with a span port, although it wouldn't look much different. Key to this is using a TRUE hub (not a class III or switching hub) to basically echo all the traffic to both ntop hosts. The only thing I don't see is the local traffic on each of the switches. +-------+ | Cable | | Modem | +-------+ (((0))) | /A\ | (Red) +-P-+ | | (Yellow) +----------------------------+ | 3c16981 10/100 Switch |--------Workstations (Green) +----------------------------+ || || +------+ | HUB |---------> ntop +------+ || || (Purple = Red+Orange+Yellow+Green) || +----------------------------+ | 3c16985 10/100 Switch |---------Workstations, Servers (Green or Orange) +----------------------------+ | | | | Red Orange Yellow Green (Outside) DMZ1 DMZ2 (Inside) | | (WiFi) | | | | | +----------------------------+ | Firewall | +----------------------------+ (Actually, right now, the CM goes right into the '85 - I'm going to change back to this setup when I pull the 85 to change out the fans) The one thing that I know you can't do with an unnumbered interface is to receive netFlow packets - those are addressed to a specific IP address. I did have some experimental code at one point, but the development sponsorship for the work fell through. Enough to prove it was doable, not enough to do in production, especially as the logistics get ugly, WRT switched Ethernet. If you look in the /etc/init.d/ntop that's part of the RedHat packages (ntop/packages/RedHat/ntop.init), you'll see I have it setup: # To identify an interface to ntop, use the following flags # in /etc/sysconfig/network-scripts/ifcfg-ethx # NTOP="yes" <--- means for ntop to use this interface # NTOPCONFIG="yes" <--- means for ntop to configure this interface # Note that if you give a -i parameter in either /etc/ntop.conf or # the command line, the scan is NOT performed. # However, when it comes to the configuration step, with NTOPCONFIG="yes" # the interface is configured regardless of how the interface list was # specified. The meat is in config_interfaces () I've had problems with the combined syntax and with using ip (iproute2) to set promisc, so I usually do it as two separate commands: ifconfig eth1 promisc ifconfig eth1 up specifically $sudo /sbin/ip link set $eth promisc on 2> /dev/null rc=$? if [ ${rc} = 255 ]; then $sudo /sbin/ifconfig $eth promisc 2> /dev/null fi $sudo /sbin/ip link set $eth up The same file works on Mandrake and Fedora Core - it would not be hard to extend to other Distros. For Gentoo, which has it's own 'shell', my version is in the packages/Gentoo/ directory. Arnt is right, ntop tries to force its way into promisc mode, unless the switch is set. But many versions of libpcap won't let you open the interface EXCEPT as root, so we basically tell people they must start ntop as root. If it works otherwise, great, but that's probably OS and Distro specific and I wouldn't bet it would work on any other machine. The IDS cable looks interesting - the usual problem is reflection, but his method would seem to avoid that. Good find! Now, which one of you is going to write this up and put it in the Wiki? -----Burton _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
