From owner-freebsd-ipfw@FreeBSD.ORG Tue Jun 12 23:10:36 2007 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6D1616A46C for ; Tue, 12 Jun 2007 23:10:36 +0000 (UTC) (envelope-from 0shady0recs0@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.freebsd.org (Postfix) with ESMTP id 75F2213C4BA for ; Tue, 12 Jun 2007 23:10:36 +0000 (UTC) (envelope-from 0shady0recs0@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so12513wra for ; Tue, 12 Jun 2007 16:10:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=LpZniuUfBmNt9jp0sI74h4Sey8WSDvTiAfYZ77lpqszBMDPOb9bFzQqHpD9Qnsd9BIZi+xFsFDahdfGS0kFHNKbl1QZ9BteE5il9cKhhykJWIUN9kZ6bqsAVc6XHKmdZHrRQqm3vDGpJaXXuxiQLSUEWG1I8umEctgenAkN7mpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Ew36oYbVZHqpBHOU11250kvXvOvCAiu/PuQQg7+FhCWl222/XKNQDCh84RvukDftEB7yo4vMy3u0TQMJO/WdZHp2SGHmcQqgiDsxoFETfb9npzNWflKsL/5T0ST1U3JPfp49W0+H/Vm/bS3OtbTiHErd4wXFZqESUNETaiVf8iQ= Received: by 10.100.3.20 with SMTP id 20mr4426147anc.1181689835860; Tue, 12 Jun 2007 16:10:35 -0700 (PDT) Received: by 10.100.91.12 with HTTP; Tue, 12 Jun 2007 16:10:35 -0700 (PDT) Message-ID: <937e203f0706121610p51fb4a10r265c82bb8858468e@mail.gmail.com> Date: Wed, 13 Jun 2007 01:10:35 +0200 From: "Lubomir Georgiev" <0shady0recs0@gmail.com> To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ipfw, pipes, queues, weights and managing an Internet connection X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 23:10:37 -0000 First of all thanks for your response and your desire to help me out! Second, since I'm going to be making changes to your ruleset in order to match it to my needs could you please comment it a little because I'm relatively new to ipfw+dummynet and some of the lines seem *really* strange to me... I'm talking about the - iptos,proto,tcpflags, lowdelay and iplen commands. They don't make any sence to me and I couldn't find anything about the in the man pages... Maybe I'm just stupid? Would you please explain if you have the time.... I'd really appreciate it... > #define IF_EXT rl0 > #define IF_INT rl1 > #define IF_GIF gif0 > > /* traffic shaping - 512 kbps / 3072 kbps */ > > /* outgoing */ > pipe 1 config queue 1500bytes bw 498000bit/s > > queue 10 config pipe 1 weight 1 mask all > queue 11 config pipe 1 weight 5 mask all > queue 12 config pipe 1 weight 10 mask all > queue 13 config pipe 1 weight 50 mask all > > add 65001 queue 13 out iptos lowdelay iplen 0-250 xmit IF_EXT > add 65002 queue 13 out proto udp src-port 12334 xmit IF_EXT > add 65003 queue 13 out proto udp iplen 0-250 xmit IF_EXT > add 65004 queue 12 out proto udp xmit IF_EXT > add 65005 queue 12 out proto icmp xmit IF_EXT > add 65006 queue 12 out proto tcp tcpflags ack iplen 0-80 xmit IF_EXT > add 65007 queue 11 out proto tcp iplen 0-300 xmit IF_EXT > add 65008 queue 11 out proto tcp src-port 80,88 xmit IF_EXT > add 65009 queue 10 out proto tcp dst-port rsync xmit IF_EXT > add 65010 queue 10 out proto tcp xmit IF_EXT > add 65011 queue 11 out proto ipv6 iplen 0-300 xmit IF_EXT > add 65012 queue 10 out proto ipv6 xmit IF_EXT > add 65013 queue 11 out proto ospf xmit IF_EXT > add 65014 queue 11 log out frag xmit IF_EXT > add 65015 queue 11 out xmit IF_EXT > add 65019 pass out > > /* incoming */ > pipe 2 config queue 4500bytes bw 3300Kbit/s > > queue 20 config pipe 2 weight 1 mask all > queue 21 config pipe 2 weight 5 mask all > queue 22 config pipe 2 weight 10 mask all > queue 23 config pipe 2 weight 50 mask all > > add 65101 queue 23 iptos lowdelay iplen 0-250 recv IF_EXT > add 65102 queue 23 proto udp src-port 12334 recv IF_EXT > add 65103 queue 22 proto udp iplen 0-250 recv IF_EXT > add 65103 queue 22 proto udp recv IF_EXT > add 65104 queue 22 proto icmp recv IF_EXT > add 65105 queue 22 proto tcp tcpflags ack iplen 0-80 recv IF_EXT > add 65106 queue 21 proto tcp iplen 0-300 recv IF_EXT > add 65107 queue 20 proto tcp dst-port rsync recv IF_EXT > add 65108 queue 20 proto tcp recv IF_EXT > add 65109 queue 21 proto ipv6 iplen 0-300 recv IF_EXT > add 65110 queue 20 proto ipv6 recv IF_EXT > add 65111 queue 21 proto ospf recv IF_EXT > add 65112 queue 21 log frag recv IF_EXT > add 65113 queue 21 in recv IF_EXT > add 65119 pass in > > > Mark > -- mEsS wItH tHe bEsT dIE liKe tHe rESt