Date: Wed, 20 Aug 2008 16:26:37 +0300 From: Oleksandr Samoylyk <oleksandr@samoylyk.sumy.ua> To: Erik Danielsson <eridan911@gmail.com> Cc: freebsd-pf@freebsd.org Subject: Re: Limiting bandwidth Message-ID: <48AC1B8D.6000903@samoylyk.sumy.ua> In-Reply-To: <c66fe0350808200556m1c331936v3cfaea441176e455@mail.gmail.com> References: <c66fe0350808200556m1c331936v3cfaea441176e455@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Erik Danielsson wrote: > Hello, > > I'm using PF together with ALTQ, but my need of limiting bandwidth has > changed. I need to be able to limit the bandwidth from/to a certain IP > range, but only once a specific amount of data has been transferred from/to > that IP range. At midnight I want the counter to be reset, and everything > should start over. > > For example, I want to allow, let's say 10 GiB from e.g 192.168.0.1/24, and > once the 10GiB limit has been reached, I want to limit the bandwidth to xx > kbits/s until midnight. > > Any ideas how to accomplish this, can it be done using PF and ALTQ? > Probably by means of external scripts which regenerate pf rules as cron jobs? :) -- Oleksandr Samoylyk OVS-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AC1B8D.6000903>