Network Bandwidth & Traffic Monitoring

Go through the steps to install darkstat package on FreeBSD

# cd /usr/ports/net-mgmt/darkstat

# make # make install clean

Enable darkstat at boot time add the following lines to

/etc/rc.conf: darkstat_enable=”YES”

darkstat_interface=”em0″

Change the darkstat_interface to point your network interface Add the following lines to /etc/rc.conf:

darkstat_dir=”/var/run/darkstat”

darkstat_pidname=”darkstat.pid”

darkstat_dropuser=”nobody”

darkstat_flags=””

Now the darkstat installed and configured let’s start it:

# /usr/local/etc/rc.d/darkstat start

To check darkstat daemon status:

# /usr/local/etc/rc.d/darkstat status

By Default it works on 667 port, to check the Network traffic

Here you go

http://localhost:667

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: