Date: Mon, 4 Feb 2008 08:36:18 +0200 From: Guntis Bumburs <guntis@rixtel.com> To: freebsd-pf@freebsd.org Subject: Re: altq: dynamic queues Message-ID: <200802040836.18611.guntis@rixtel.com> In-Reply-To: <15260126.post@talk.nabble.com> References: <15260126.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 04 February 2008 01:48:40 cnupm wrote: > > My English is no good, so I tried to describe what I want at this example: > > ### /etc/pf.conf > altq on bge0 bandwidth 10Mb hfsc queue { u1_in, u1_out, u2_in, u2_out...} > anchor users_queues > > block all > anchor users_rules > > ### When user connected - teke parameter $x from DB (for example) and > execute: > echo "queue u1_in bandwidth 1Kb hfsc (upperlimit $xKb)" | pfctl -a > user_queues:u1_in -f - > echo "queue u1_out bandwidth 1Kb hfsc (upperlimit $xKb)" | pfctl -a > user_queues:u1_out -f - > *** ... users_rules... *** > > I know: it doesn't works - it's simplest way (with my English) to explain > what I wont. > How to dynamicly create/delete queues? Hello, It's no possible. You can't define queues in anchors. ANCHORS Besides the main ruleset, pfctl(8) can load rulesets into anchor attach- ment points. An anchor is a container that can hold rules, address tables, and other anchors. -- Best Regards, Guntis Bumburs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802040836.18611.guntis>