From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 01:29:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D71A11065672 for ; Fri, 9 Apr 2010 01:29:41 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 6B82A8FC12 for ; Fri, 9 Apr 2010 01:29:41 +0000 (UTC) Received: by bwz8 with SMTP id 8so711467bwz.3 for ; Thu, 08 Apr 2010 18:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=3os//S1ozh+B0YpOsq929BZkGn//GfzFY8bZ8jWSgI4=; b=HDiu5IqU2XzKEYnswmFprM7WvUhDCysV+PCkKgJmMmB/P3VwWOwt71atJt98u3cwjK rBuEGjfXsw17FDTEelOf9cj7zp0hGMFmiKkjCrH3sl16YxrfpDKefMePJgBQCEEMq7S9 kOvTDzrVvPqUSvRl2zmgZlcz63pr/LiapzpDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uaP3rbHGX/xrbuPmqssTwzf/TonqP8U9bweqTYXpPCMH9CB/xmXPuDmozM52k0ORhK M1Dc9dEZvfAEHUWg0Dvs+pLbilwrUu1ZTIivORUpkFKEiqjCWlNJR/2tm903n5sVr5IM RDdq1sBZlvhmExNH13WivZ2hatMaskp4s11Q0= MIME-Version: 1.0 Received: by 10.204.102.7 with HTTP; Thu, 8 Apr 2010 18:29:40 -0700 (PDT) Date: Fri, 9 Apr 2010 04:29:40 +0300 Received: by 10.204.157.17 with SMTP id z17mr1089188bkw.25.1270776580131; Thu, 08 Apr 2010 18:29:40 -0700 (PDT) Message-ID: From: Dan Naumov To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: bandwidth throttling? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 01:29:41 -0000 Hello folks I have a 8.0 system that has 2 IPs: ifconfig em1 em1: flags=8843 metric 0 mtu 1500 options=19b ether 00:25:90:01:32:93 inet 192.168.1.126 netmask 0xffffff00 broadcast 192.168.1.255 inet 192.168.1.127 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (1000baseT ) status: active The .126 is used by the host for various obvious things and I have a jail on the same machine running off the .127 IP. Is there a quick and easy way to have the jail host throttle bandwidth usage of everything going to and out of the .127 jail? I don't really need anything fancy, I just want to set hard limits for the entire jail globally, like "don't use more than 500KB/s downstream and more than 150KB/s upstream". What would be the best way around doing this? My understanding is that to do this with PF, I would need ALTQ meaning I have to use a custom kernel and that IPFW with dummynet should have similar functionality but should also work with GENERIC? Thanks! - Sincerely, Dan Naumov