I am running Bandwidthd on CentOS 4.4. (http://bandwidthd.sourceforge.net)
Box running Bandwidthd network monitoring tool is behind a Firewall (iptables). My firewall has 3 network cards.
One card has a real ip (live ip). That is eth0 - pls assume it is 1.2.3.4 . Pls assume router is 1.2.3.5.
eth1 is for DMZ. Its ip is 192.168.100.3
eth2 is LAN . its ip is 192.168.101.254. Box running Bandwidthd network monitoring tool is behind this LAN. Its ip is 192.168.101.35 . its gateway is ip address of firewall that is 192.168.101.254. It can go internet. That is the way I have set up my firewall.
But, It can not graph as expected. For examples, if I ping from my pc to router, It does not show ICMP traffic. I downloaded a 38 mb file to my pc. It also does not show in bandwidthd graph.
Why is that?
What is the port that bandwidthd runs on?
Here is my file, Pls have a lokk at it.
[root@netmonitor etc]# cat /etc/bandwidthd.conf
####################################################
# Bandwidthd.conf
#
# Commented out options are here to provide
# documentation and represent defaults
# Subnets to collect statistics on. Traffic that
# matches none of these subnets will be ignored.
# Syntax is either IP Subnet Mask or CIDR
#subnet 10.0.0.0 255.0.0.0
#subnet 192.168.0.0/16
#subnet 172.16.0.0/12
#subnet 203.143.26.128/29
subnet 203.143.26.128 255.255.255.248
subnet 192.168.101.0 255.255.255.0
subnet 192.168.102.0 255.255.255.0
subnet 192.168.100.0 255.255.255.0
subnet 64.5.53.158 255.255.255.255
# Device to listen on
# Bandwidthd listens on the first device it detects
# by default. Run "bandwidthd -l" for a list of
# devices.
#dev "eth0"
dev "eth0"
###################################################
# Options that don't usually get changed
# An interval is 2.5 minutes, this is how many
# intervals to skip before doing a graphing run
skip_intervals 0
#skip_intervals 1
#skip_intervals 3
# Graph cutoff is how many k must be transfered by an
# ip before we bother to graph it
#graph_cutoff 1024
graph_cutoff 1024
#Put interface in promiscuous mode to score to traffic
#that may not be routing through the host machine.
#promiscuous true
promiscuous true
#Log data to cdf file htdocs/log.cdf
#output_cdf false
output_cdf true
#Read back the cdf file on startup
#recover_cdf false
recover_cdf true
#Libpcap format filter string used to control what bandwidthd see's
#Please always include "ip" in the string to avoid strange problems
#filter "ip"
filter "ip"
#Draw Graphs - This default to true to graph the traffic bandwidthd is recording
#Usually set this to false if you only want cdf output or
#you are using the database output option. Bandwidthd will use very little
#ram and cpu if this is set to false.
#graph true
graph true
#Set META REFRESH seconds (default 150, use 0 to disable).
#meta_refresh 150
meta_refresh 150
R u using this pkg ? I used before setting up my firewaal. The I showed graphs. But After the firewall, It can not show trafiic .
Help needed? Soon...
--
Thank you
Indunil Jayasooriya
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos