Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2016 15:57:53 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Paul Stuffins <freebsd@ravexdata.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Software for bandwidth management
Message-ID:  <alpine.BSF.2.20.1601041551450.65744@mail.fig.ol.no>
In-Reply-To: <CAO-kBwf5Y8=0pZkEEVRpndK8NEdKXkt2pxS4yA%2B0L5pU9VFbgw@mail.gmail.com>
References:  <CAO-kBwf5Y8=0pZkEEVRpndK8NEdKXkt2pxS4yA%2B0L5pU9VFbgw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Jan 2016 14:39-0000, Paul Stuffins wrote:

> Afternoon Everyone,
> 
> I have a spare desktop lying around here that I want to turn into a basic
> bandwidth monitor, along with various other things including website
> filtering.
> 
> I have seen https://www.untangle.com, which I believe is based on FreeBSD,
> but I am not keen on paying the $50 a month for a license, is there any
> software that anyone can recommend to me?
> 
> My needs, to start with, are basically to monitor what devices are
> connected, and how much each device transfers on a hourly/daily/monthly
> basis, and potentially apply limits to each device.

A partial solution could be your spare desktop acting as a bridge(4) 
using two NICs, and sysutils/darkstat as the monitoring software.

If you can't or don't want to pass traffic back and forth through the 
spare desktop, try port mirroring (Cisco SPAN port/monitor session), 
"ifconfig em1 up monitor", and sysutils/darkstat.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Mon Jan  4 16:11:56 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 504EBA61A66
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Mon,  4 Jan 2016 16:11:56 +0000 (UTC)
 (envelope-from juan@inti.gob.ar)
Received: from sbg-out.inti.gob.ar (sbg-out.inti.gob.ar [200.10.161.69])
 by mx1.freebsd.org (Postfix) with ESMTP id E59D51C0C
 for <freebsd-questions@freebsd.org>; Mon,  4 Jan 2016 16:11:55 +0000 (UTC)
 (envelope-from juan@inti.gob.ar)
X-AuditID: c80aa145-f79586d000001bfa-3a-568a963d7c2c
Received: from [200.10.161.55] (jb.inti.gob.ar [200.10.161.55])
 (using TLS with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (Client did not present a certificate)
 by sbg-out.inti.gob.ar (SMTP_INTI) with SMTP id C4.05.07162.D369A865;
 Mon,  4 Jan 2016 12:56:45 -0300 (ART)
Subject: Re: Software for bandwidth management
To: freebsd-questions@freebsd.org
References: <CAO-kBwf5Y8=0pZkEEVRpndK8NEdKXkt2pxS4yA+0L5pU9VFbgw@mail.gmail.com>
From: Juan Bernhard <juan@inti.gob.ar>
Message-ID: <568A9658.9010508@inti.gob.ar>
Date: Mon, 4 Jan 2016 12:57:12 -0300
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.5.0
MIME-Version: 1.0
In-Reply-To: <CAO-kBwf5Y8=0pZkEEVRpndK8NEdKXkt2pxS4yA+0L5pU9VFbgw@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42I5wbXQXNd2WleYwcsbYhYvv25icWD0mPFp
 PksAYxSXTUpqTmZZapG+XQJXxscpEgUb+Cq2NuxnbmA8xt3FyMkhIWAi8e/NYRYIW0ziwr31
 bF2MXBxCApOYJDa0zWIGSQgL6Elcb/vPBGKLCChKnDnTyApiCwkESHx908EGYrMJqEl8PXMK
 LM4roCUxd18DO4jNIqAi8fD0D6AaDg5RgRiJpoPMECWCEidnPgHbyykQKDF741ew8cwCthJ3
 5u5mhrDlJZq3zmaewMg3C0nLLCRls5CULWBkXsUoXJyUrptfWqIHDKFMvfT8JL3Eok2MkFBy
 3cG4d536IUYBDkYlHt4NfR1hQqyJZcWVuYcYJTiYlUR4C4q6woR4UxIrq1KL8uOLSnNSiw8x
 SnOwKInzfv4uFCokkJ5YkpqdmlqQWgSTZeLglGpgnHojRKDZN03bLf9T57l5NpzbOG5d+nNA
 SGl7Y/WtrU+jV95oNGNeYHXqwmk3YQ/d5YejzvmvYmf4Z3FBJTbnzY5fHvYRhVJ7V7bZnbjC
 /fLObl1X7+tJvziX3NRae2n70xy+a6lsG9S6POec+cVke0E31GlF2IMbIbff/xWMzVlakbFE
 dufan0osxRmJhlrMRcWJALAYvhohAgAA
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Jan 2016 16:11:56 -0000


El 04/01/2016 a las 11:39 a.m., Paul Stuffins escribió:
> Afternoon Everyone,
>
> I have a spare desktop lying around here that I want to turn into a basic
> bandwidth monitor, along with various other things including website
> filtering.

If you mean to filter http and https by url, you will have to use a 
proxy, and acl filtering. I would recommend use an old desktop to do 
this. This will became the bottleneck of your network.

>
> I have seen https://www.untangle.com, which I believe is based on FreeBSD,
> but I am not keen on paying the $50 a month for a license, is there any
> software that anyone can recommend to me?
>
> My needs, to start with, are basically to monitor what devices are
> connected, and how much each device transfers on a hourly/daily/monthly
> basis, and potentially apply limits to each device.

If you just want to know bandwith usage for each IP address on your 
network, you cold do 2 things:
1) Use a port mirror in your router switch port and redirect this 
traffic to a dedicated interface in your freebsd server and log all 
using net-mgmt/ipfm
2) Configure your router to log traffic to your freebsd server using 
netflow, then configure net-mgmt/nfdump to save and show statistics onf 
the server side.

If you decide to use a port mirror and collect all traffic, you can also 
use net/httpry to log all http urls accesed from your network, but it 
will not work with https, you cant see the encrypted url unless you have 
a non transparent proxy.

I hope this helps you.

Saludos, Juan
>
> Many Thanks
> Paul
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1601041551450.65744>