List Info

Thread: ALTQ and bandwidth limiting




ALTQ and bandwidth limiting
country flaguser name
Canada
2008-05-21 20:02:59
Hello All,

Is there a way using PF and ALTQ that I can set a policy to
restrict a
particular host to a maximum network speed?

I would like to simulate low speed connection using pf.

 

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

Re: ALTQ and bandwidth limiting
country flaguser name
United States
2008-05-21 23:29:36
On Wed, May 21, 2008 at 09:02:59PM -0400, Ansar Mohammed
wrote:
> Hello All,
> 
> Is there a way using PF and ALTQ that I can set a
policy to restrict a
> particular host to a maximum network speed?
> 
> I would like to simulate low speed connection using
pf.

I believe ipfw dummynet has the capability you're looking
for.  See the
ipfw manpage, section "TRAFFIC SHAPER".

-- 
| Jeremy Chadwick                                jdc at
parodius.com |
| Parodius Networking                       http://www.parodius.com/
|
| UNIX Systems Administrator                  Mountain View,
CA, USA |
| Making life hard for others since 1977.              PGP:
4BD6C0CB |

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

RE: ALTQ and bandwidth limiting
country flaguser name
Canada
2008-05-22 01:20:09
Ok, I got a bit further. I compiled in ALTQ and I am using
Class Based
Queueing.

Here is a snippet of my pf.conf


altq on le1 cbq bandwidth 100Mb   queue { std, cifs, http }

queue std bandwidth 88.5Mb cbq(default)
queue cifs bandwidth 1500Kb cbq
queue http bandwidth 1Mb cbq


Here is the problem, no matter what value I set for the CBQ
Queue, its at
least 1/4 of the actual configured maximum. So I configured
http for 1Mb,
the max throughput I get is 288Mb. Can anyone explain why?


> -----Original Message-----
> From: Jeremy Chadwick [mailto:koitsuFreeBSD.org]
> Sent: May 22, 2008 12:30 AM
> To: Ansar Mohammed
> Cc: freebsd-pffreebsd.org
> Subject: Re: ALTQ and bandwidth limiting
> 
> On Wed, May 21, 2008 at 09:02:59PM -0400, Ansar
Mohammed wrote:
> > Hello All,
> >
> > Is there a way using PF and ALTQ that I can set a
policy to restrict
> a
> > particular host to a maximum network speed?
> >
> > I would like to simulate low speed connection
using pf.
> 
> I believe ipfw dummynet has the capability you're
looking for.  See the
> ipfw manpage, section "TRAFFIC SHAPER".
> 
> --
> | Jeremy Chadwick                                jdc at
parodius.com |
> | Parodius Networking                       http://www.parodius.com/
|
> | UNIX Systems Administrator                  Mountain
View, CA, USA |
> | Making life hard for others since 1977.             
PGP: 4BD6C0CB |

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

SOLVED: ALTQ and bandwidth limiting
country flaguser name
Canada
2008-05-26 09:20:23
So the problem was that I was running in VMware and the
default adapter that
vmware configures for the VM is le(AMD PCnet). The le driver
did not return
the negotiated connection speed when I ran ifconfig. I
switched the vm
config over to a em (Intel gig) emulation and ifconfig
returned the right
connection speed. altq now works great.



> -----Original Message-----
> From: Ansar Mohammed [mailto:ansarmgmail.com]
> Sent: May 22, 2008 2:20 AM
> To: 'Jeremy Chadwick'
> Cc: 'freebsd-pffreebsd.org'
> Subject: RE: ALTQ and bandwidth limiting
> 
> Ok, I got a bit further. I compiled in ALTQ and I am
using Class Based
> Queueing.
> 
> Here is a snippet of my pf.conf
> 
> 
> altq on le1 cbq bandwidth 100Mb   queue { std, cifs,
http }
> 
> queue std bandwidth 88.5Mb cbq(default)
> queue cifs bandwidth 1500Kb cbq
> queue http bandwidth 1Mb cbq
> 
> 
> Here is the problem, no matter what value I set for the
CBQ Queue, its
> at least 1/4 of the actual configured maximum. So I
configured http for
> 1Mb, the max throughput I get is 288Mb. Can anyone
explain why?
> 
> 
> > -----Original Message-----
> > From: Jeremy Chadwick [mailto:koitsuFreeBSD.org]
> > Sent: May 22, 2008 12:30 AM
> > To: Ansar Mohammed
> > Cc: freebsd-pffreebsd.org
> > Subject: Re: ALTQ and bandwidth limiting
> >
> > On Wed, May 21, 2008 at 09:02:59PM -0400, Ansar
Mohammed wrote:
> > > Hello All,
> > >
> > > Is there a way using PF and ALTQ that I can
set a policy to
> restrict
> > a
> > > particular host to a maximum network speed?
> > >
> > > I would like to simulate low speed connection
using pf.
> >
> > I believe ipfw dummynet has the capability you're
looking for.  See
> the
> > ipfw manpage, section "TRAFFIC SHAPER".
> >
> > --
> > | Jeremy Chadwick                               
jdc at parodius.com
> |
> > | Parodius Networking                       http://www.parodius.com/

> |
> > | UNIX Systems Administrator                 
Mountain View, CA, USA
> |
> > | Making life hard for others since 1977.         
    PGP: 4BD6C0CB
> |

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )