From owner-freebsd-net@FreeBSD.ORG Sun Jun 25 13:47:29 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B451216A401 for ; Sun, 25 Jun 2006 13:47:29 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [213.238.47.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id E34A543D62 for ; Sun, 25 Jun 2006 13:47:26 +0000 (GMT) (envelope-from stb@lassitu.de) Received: (from stb@koef.zs64.net) (authenticated) by koef.zs64.net (8.13.7/8.13.7) with ESMTP id k5PDlDC5061473 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sun, 25 Jun 2006 15:47:24 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <449E256C.4080203@gmail.com> References: <449E256C.4080203@gmail.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8AF0E835-D277-4F09-96A0-4A8282B28163@lassitu.de> Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Sun, 25 Jun 2006 15:46:53 +0200 To: Jax X-Mailer: Apple Mail (2.750) Cc: freebsd-net@freebsd.org Subject: Re: Traffic shaping part 2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 13:47:29 -0000 Am 25.06.2006 um 07:55 schrieb Jax: > Anyone can give me a real life example, full ipfw traffic shaping > ruleset or something like that. FWIW, here's the shaping section from my ipfw setup. I'm behind an ADSL2 line, so I don't care about downstream bandwidth, but I do about the upstream. This allows me to run BT at full rate and still have decent ssh interactive and web browsing behaviour. ${fwcmd} pipe 1 config bw 480kbit/s # up prio: TCP ACKs, SSH interactive, etc. ${fwcmd} queue 1 config pipe 1 weight 100 queue 20 mask all # up std: everything else ${fwcmd} queue 2 config pipe 1 weight 50 queue 20 mask all # up bt: bt etc. ${fwcmd} queue 3 config pipe 1 weight 1 queue 20 mask all # favour small TCP packets (ACKs) ${fwcmd} add 200 queue 1 tcp from any to any iplen 1-100 xmit tun0 # ssh ${fwcmd} add 201 queue 1 tcp from any to any 22 iptos lowdelay xmit tun0 # DNS, NTP ${fwcmd} add 202 queue 1 udp from any to any 53, 123 xmit tun0 # BT etc. ${fwcmd} add 210 queue 3 tcp from 192.168.0.0/24 21530-21539 to any xmit tun0 ${fwcmd} add 211 queue 3 tcp from 192.168.0.0/24 6880-6889 to any xmit tun0 ${fwcmd} add 212 queue 3 tcp from 192.168.0.0/24 to any 6880-6889 xmit tun0 # default ${fwcmd} add 220 queue 2 tcp from any to any xmit tun0 -- Stefan Bethke Fon +49 170 346 0140