limiting bandwidth at certain times during the day

Ronnel P. Maglasang rmaglasang at infoweapons.com
Sun Nov 23 19:00:57 PST 2008


Current implementation of ALTQ and also PF is not dynamic. You apply changes
(e.g. new Queue parameters), you basically have to flush all the queues 
and reload.
That means, "pfctl -Fall" followed by "pfctl -f new-pf.conf"

You can achieve this by creating a script that will called from cron. Be 
aware of
the effect when flushing all the rules though. That would drop existing VPN
sessions.

I am not sure if there is an on-going project to support dynamic ALTQ/PF.

Reinhold wrote:
> Hi
>
> I was asked to limit the amount of bandwidth being used by our openvpn
> connections during our office hours and then allow full access after
> hours.
>
> In my current set up I'm using pf that does load balancing over 2 adsl
> lines on a FreeBSD 7-STABLE system, I'm using mpd5 for dialing in and
> establish the connections with our ISP.
>
> I'm in the process of implementing HFSC to see if I can improve our
> bandwidth usage, I tried PRIQ but ended up loosing packets and the over
> all performance decreased to a point where I had to disable it.
>
> How can I go about setting up a limit for a certain time period on the
> amount of bandwidth being used by openvpn?
>
> Thanks
> Reinhold
>
> _______________________________________________
> freebsd-pf at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"
>   



More information about the freebsd-pf mailing list