From owner-freebsd-questions Mon Mar 24 15:39: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 242A037B401 for ; Mon, 24 Mar 2003 15:39:03 -0800 (PST) Received: from blacklamb.mykitchentable.net (207-173-231-121.bras01.elk.ca.frontiernet.net [207.173.231.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2DFD43FA3 for ; Mon, 24 Mar 2003 15:38:59 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id B7D65EE559 for ; Mon, 24 Mar 2003 15:38:56 -0800 (PST) Message-ID: <002701c2f25e$89e59f90$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: "FreeBSD Questions" Subject: Help With Dummynet Config Date: Mon, 24 Mar 2003 15:38:19 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to setup dummynet for my home network. I have an 384/128kbps ADSL connection to the Internet. What I want to do is give priority to a 100kbps video stream when it's running over other traffic. The video stream comes from 192.168.1.3:8080 on my internal network. I setup the following rules on my firewall: # Begin Configure pipe & queues to allow video stream priority # Flush before we define $fwcmd -f queue flush $fwcmd -f pipe flush $fwcmd pipe 1 config queue 64Kbyte $fwcmd queue 1 config pipe 1 weight 90 queue 56KByte $fwcmd queue 2 config pipe 1 weight 10 queue 8Kbyte $fwcmd add queue 1 ip from 192.168.1.3 8080 to any $fwcmd add queue 2 ip from not 192.168.1.3 8080 to any Now this seems to work as I don't get any errors when the rules load. I also notice that I match packets when connecting to the video stream with the first "add queue" rule. However other packets do not match the second "add queue" rule and I don't understand why. I expect that every packet crossing the firewall that is not part of the video stream to be added to queue 2. What am I missing? I would also appreciate any suggestions on tuning the queue size for my purpose as I really don't have any understanding other than the defaults are probably too large for my slow ADSL link. Thanks for the help, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message