Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2008 17:35:49 +0200
From:      Michal Buchtik <buchtajz@borsice.net>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: Limiting client bandwidth with PF
Message-ID:  <1216827349.1598.4.camel@manwe.buchtikov.borsice.sfn>
In-Reply-To: <8dfae1c10807230603o1060aa69jc9ccf2e4bc66f275@mail.gmail.com>
References:  <8dfae1c10807230603o1060aa69jc9ccf2e4bc66f275@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Walter Venable píše v st 23. 07. 2008 v 16:03 +0300:
> First things first, limit them to 128Kbps, but that isn't even working, as
> clients are still maxing at 3Mbps:
> 
> $ cat /etc/pf.conf
> int_if="rl0"
> ext_if="nfe0"
> int_net="192.168.2.0/24"
> 
> altq on $ext_if hfsc bandwidth 3Mb queue { clients }
> queue clients bandwidth 128Kb hfsc ( default rio )
> pass in quick log on $int_if proto tcp from $int_net to any \
>  flags S/SA keep state queue clients
> 
You can limit only OUTGOING traffic (from router point of view). So
change the line to:

 altq on $int_if hfsc bandwidth 3Mb queue { clients }


Michal




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1216827349.1598.4.camel>