Re: OpenBSD 5.5 set prio 3 and interface shaping

2014-08-23 Thread Paul B. Henson

 On Aug 22, 2014, at 7:15 PM, Kevin Gerrard ke...@txwre.com wrote:
 
 I realize that this May seem like a dumb question for one of the developers.

There's not much traffic on this pf list. You might have better luck asking on 
the openbsd misc list, there are a lot more people subscribed to that one. 

Did you look at the section labeled queuing in the pf man page? Assuming your 
outbound interface is em0, then:

queue std on em0 bandwidth 25M

should limit your outbound traffic to no more than 25M, as long as all outbound 
traffic is assigned to the std queue or one of its children. 



Re: OpenBSD 5.5 set prio 3 and interface shaping

2014-08-23 Thread Kevin Gerrard
Thank You,

I will see this afternoon, and I appreciate your reply.

Can't believe it would be that simple and I missed it. I even have both pf
books. Pre 4.6 and post 4.6


Again thank you very much and will read.

Kevin Gerrard



--
View this message in context: 
http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shaping-tp253916p254343.html
Sent from the openbsd - packet filter mailing list archive at Nabble.com.


Re: OpenBSD 5.5 set prio 3 and interface shaping

2014-08-23 Thread Stuart Henderson
On 2014/08/22 19:15, Kevin Gerrard wrote:
 I realize that this May seem like a dumb question for one of the developers.
 I didn't expect a detailed message or exact answer. I have spent much time
 reading different ideas and by doing so learned much more while on this
 path. I have not posted on here except a time or two. I have ordered cd's
 (which I never received)

That is a pity, did you report it to the CD seller?

  and donated money. Not a lot but it was what I
 could. But I'll be damned if I do again. I will keep mouth shut and read to
 learn here but will not be in support whether it be money or help for others
 in the future as my knowledge grows. If I knew a private way to send this
 post and to whom I would have
 
 Not blaming anyone. Didn't expect the elite brains to answer but no one else
 answered either? Not mad or upset and if someone wants to flame at me go
 ahead I will survive. One way or another I will be a contribution to the
 open source programs. I hope it would be in the technology and ideas one day
 but if not I'm sure the money would not hurt. Love the bsd operating system
 and will learn it if by only reading then so be it. Do not count me out in
 this industry. 
 
 My apologies for not having the education of words and protocol, but like I
 said I have a drive and love this stuff.
 
 
 
 
 
 --
 View this message in context: 
 http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shaping-tp253916p254323.html
 Sent from the openbsd - packet filter mailing list archive at Nabble.com.

The PF mailing list isn't one of the main OpenBSD lists and isn't
as widely read. This fact may be masked by your choice of nabble.com's
mailing listweb gateway - see http://www.openbsd.org/mail.html for
the list of lists.

Going back to your original question

.. That being said we were wanting to use something to do nothing but
.. limit em0 to 25Mbits and then we would set prio to whatever we need on
.. the rest of the rules.

Here is a possible config to simply limit the traffic:

queue internet on em0 bandwidth 25Mb max 25Mb
queue std parent internet bandwidth 25Mb default

The new queues do not support set prio, you would need to handle
priority traffic with additional queues to reserve bandwidth - (using
min) - if high priority traffic is not using that bandwidth at a
particular time, other traffic has a chance to use it instead
(up to their max limit).