Bandwidthd with PostgreSQL [logging double the traffic]
-
The amount of traffic that I see from 2 PFsense (2 sensors) is exactly the double that I'm mesuring.
On phppgadmin seems that I'm indeed getting the double of the necessary information:This is my sensor 1 on PFSense (same for sensor 2, just another sensor name):
# the package manager resyncs. # #################################################### # 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 192.168.1.0/24 # Device to listen on # Bandwidthd listens on the first device it detects # by default. Run "bandwidthd -l" for a list of # devices. dev "hn1" ################################################### # 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 # Graph cutoff is how many k must be transferred by an # ip before we bother to graph it #Put interface in promiscuous mode to score to traffic #that may not be routing through the host machine. promiscuous false #Log data to cdf file htdocs/log.cdf #Read back the cdf file on startup # Standard postgres connect string, just like php, see postgres docs for # details pgsql_connect_string "user = postgres dbname = band password = xx host = 192.168.1.128" # Arbitrary sensor name, I recommend the sensors fully qualified domain # name sensor_id "VPN" #Libpcap format filter string used to control what bandwidthd sees #Please always include "ip" in the string to avoid strange problems #Draw Graphs - This defaults 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 false #Set META REFRESH seconds (default 150, use 0 to disable).
Using PFSense 2.2.3.
But just did a clean install of 2.2.5 with nothing but Bandwidthd and still get the same double amount of log.PS: today a generated cdf files, and it seems to be doubled too:
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.