From owner-freebsd-ipfw@FreeBSD.ORG Wed Jul 6 10:42:49 2005 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 433D516A41C for ; Wed, 6 Jul 2005 10:42:49 +0000 (GMT) (envelope-from vladone@llwb135.servidoresdns.net) Received: from llwb135.servidoresdns.net (llwb135.servidoresdns.net [217.76.137.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE7E143D4C for ; Wed, 6 Jul 2005 10:42:46 +0000 (GMT) (envelope-from vladone@llwb135.servidoresdns.net) Received: from SERVEREL (unknown [81.12.246.122]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by llwb135.servidoresdns.net (Postfix) with ESMTP id E244E24C734 for ; Wed, 6 Jul 2005 12:34:18 +0200 (CEST) Date: Wed, 6 Jul 2005 13:43:04 +0300 From: vladone X-Mailer: The Bat! (v3.0.1.33) Professional X-Priority: 3 (Normal) Message-ID: <163992892.20050706134304@llwb135.servidoresdns.net> To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: can't limit uploading traffic X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vladone List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 10:42:49 -0000 I have this script: #!/bin/sh cmd="/sbin/ipfw -q" #external interface oif="rl0" #internal interface pif="fxp1" down_bw="100kbit/s" up_bw="70kbit/s" #flush rules $cmd flush $cmd pipe flush $cmd pipe 2 config bw $up_bw $cmd queue 1 config pipe 2 weight 20 $cmd add 100 queue 1 ip from any to any in via $pif # divert prin natd $cmd add 10500 divert natd ip from any to any via $oif If I use: $cmd add 100 queue 1 ip from any to any in via $pif, get an limit at half bandwith from total (aproximatively 40kbits/s). If I use: $cmd add 100 queue 1 ip from any to any out xmit $oif, block my traffic throught gateway. If I use: $cmd add 100 queue 1 ip from any to any out via $oif , also block my traffic. How i can resolv this!