Discussion:
OpenBSD 5.5 set prio 3 and interface shaping
Kevin Gerrard
2014-08-18 02:22:53 UTC
Permalink
The new rules for prioritizing traffic seem to be very simple to do. In my
case we have fiber that we pay for but has a burstable speed. We do not want
to use the burstable speeds due to the overcharging that AT&T charges to do
it. Our fiber pipe that we pay for is 25Mbits at a tower. We have burstable
up to 100Mbits. By having it set up this way we can make a call and bump it
up easier than letting AT&T due their normal route of installing another
fiber right beside the one we already have and wasting all our time. 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. If we graph it or see it maxing out then we make a call and see how
long it takes our beloved (sarcasm) AT&T to turn it up. I have been reading
and learning, I have not seen anything to limit an interface in 5.5. Is this
something to do without to much ado or is it something coming later?
Thanks for the brief direction to go,
Kevin Gerrard



--
View this message in context: http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shaping-tp253916.html
Sent from the openbsd - packet filter mailing list archive at Nabble.com.
Kevin Gerrard
2014-08-23 03:19:08 UTC
Permalink
I am glad that the post above is screened. It does not need to go public. The
proper people will see it and can delete them both if they wish. Again I am
not mad or a hater yet do feel that there is a learning curve for even
searching the forum. I do read the man pages and do not understand them. I
do keep reading because I gain a bit each time. I understand some of them
and will keep reading them if for no other reason than to learn. It just
seems that there is not a middle class to help the poor here. Only the rich
( knowledgable). The middle class should step up and help the poor but for
some reason it doesn't seem to happen. No reply needed, just read them and
take the post for what you think it is worth. Then do what you wish with the
post.

Kevin



--
View this message in context: http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shaping-tp253916p254325.html
Sent from the openbsd - packet filter mailing list archive at Nabble.com.
Kevin Gerrard
2014-08-23 02:15:36 UTC
Permalink
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) 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.
Paul B. Henson
2014-08-23 06:46:21 UTC
Permalink
Post by Kevin Gerrard
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.
Kevin Gerrard
2014-08-23 15:26:49 UTC
Permalink
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.
Stuart Henderson
2014-08-23 10:16:56 UTC
Permalink
Post by Kevin Gerrard
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?
Post by Kevin Gerrard
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 list<>web 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).
Kevin Gerrard
2014-08-23 20:32:57 UTC
Permalink
My many thanks for all the info. I didn't realize that this forum was
different from the mailing list of bsd. I receive all the mailing list
emails even though I don't understand most of them. I will handle that
situation better and it was my fault for posting the wrong place. The CD's
are nothing to worry about. I will just give it as a donation and download
one for replication. Report it was not really an issue, a bit of a rant
maybe and would have been better off left unsaid.



Thank you for your help. I will play with it here in a bit and see what
happens.



Kevin



From: Stuart Henderson [via OpenBSD]
[mailto:ml-node+***@n7.nabble.com]
Sent: Saturday, August 23, 2014 3:05 PM
To: Kevin Gerrard
Subject: Re: OpenBSD 5.5 set prio 3 and interface shaping
Post by Kevin Gerrard
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?
Post by Kevin Gerrard
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.
--
http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shapi
ng-tp253916p254323.html
Post by Kevin Gerrard
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 list<>web 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).



_____

If you reply to this email, your message will be added to the discussion
below:

http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shapi
ng-tp253916p254354.html

To unsubscribe from OpenBSD 5.5 set prio 3 and interface shaping, click here
<http://openbsd.7691.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscrib
e_by_code&node=253916&code=a2V2aW5AdHh3cmUuY29tfDI1MzkxNnwtMjIzNjkyNzk4> .

<http://openbsd.7691.n7.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNa
mespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.No
deNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_ema
ils%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4745 / Virus Database: 4007/8085 - Release Date: 08/23/14





--
View this message in context: http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shaping-tp253916p254355.html
Sent from the openbsd - packet filter mailing list archive at Nabble.com.
Kevin Gerrard
2014-08-24 19:13:57 UTC
Permalink
Thank you again for the direction. I still do not have it correct but I have
a clue why. I am also starting to grasp the pf.conf man page much better. I
just wanted to reply back in here out of respect for Mr. Henderson for the
direction and to let him know that I am in much better shape now than I was.
For all hyperactive peeps like myself here is some advice. Learn the man
page language and the format they use. This will help in understanding
what we are reading.



I will continue to play with it at night. I do not ask questions until
locked up severely. When I grasp a few concepts better I will ask on the
mailing list instead of here. I did not realize that is where I should have
replied in the beginning due to more participation.



I read all the misc emails I receive. One day I will grasp all of it much
better. My nature don't let me sleep much and I actually enjoy doing this.



Thanks again for your reply Mr. Henderson and look forward to one day being
an asset and not a liability.



"High Five"



Kevin Gerrard



From: Stuart Henderson [via OpenBSD]
[mailto:ml-node+***@n7.nabble.com]
Sent: Saturday, August 23, 2014 3:05 PM
To: Kevin Gerrard
Subject: Re: OpenBSD 5.5 set prio 3 and interface shaping
Post by Kevin Gerrard
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?
Post by Kevin Gerrard
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.
--
http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shapi
ng-tp253916p254323.html
Post by Kevin Gerrard
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 list<>web 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).



_____

If you reply to this email, your message will be added to the discussion
below:

http://openbsd.7691.n7.nabble.com/OpenBSD-5-5-set-prio-3-and-interface-shapi
ng-tp253916p254354.html

To unsubscribe from OpenBSD 5.5 set prio 3 and interface shaping, click here
<http://openbsd.7691.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscrib
e_by_code&node=253916&code=a2V2aW5AdHh3cmUuY29tfDI1MzkxNnwtMjIzNjkyNzk4> .

<http://openbsd.7691.n7.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNa
mespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.No
deNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_ema
ils%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4745 / Virus Database: 4007/8085 - Release Date: 08/23/14





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