Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

FreeBSD

How to install BandwidthD in FreeBSD?

BandwidthB

About BandwidthD:

BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address’s utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.

 

Installing BandwidthD:

# cd /usr/ports/net-mgmt/bandwidthd/
# make install clean

BandwidthD Configuration:

# cd /usr/local/bandwidthd/etc
# cp bandwidthd.conf-dist bandwidthd.conf
# ee bandwidthd.conf
…………….
subnet 10.0.0.0/8
subnet 172.16.0.0/16
subnet 192.168.0.0/24
dev “re0”                     
………….

Starting BandwidthD:

# /usr/local/bandwidthd/bandwidthd

Path of Virtual Directory (Bandwidthd)
# ls /usr/local/bandwidthd/htdocs/index.html

Virtual Directory configuration in httpd.conf

# ee /usr/local/etc/apache22/httpd.conf

 

……..Alias /bandwidthd “/usr/local/bandwidthd/htdocs/”
 
   Order Allow,Deny
   Allow from 111.68.98.160/255.255.255.224
 
…………

1
<br />
1
 

Restart Apache (I assume the Apache is running smooth)

# /usr/local/etc/rc.d/apache22 restart

 

Run Bnadwidth at Boot time:

To start bandwidthd at boot time, use /usr/local/etc/rc.d/ directory as follows:

# cp etc/rc.d/bandwidthd.sh.sample /usr/local/etc/rc.d/bandwidthd.sh

 

 

Browser and write

Enjoy and don’t forget to comment.

 

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest