From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 10:00:08 2004 Return-Path: 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 522C916A4CF for ; Tue, 30 Mar 2004 10:00:08 -0800 (PST) Received: from deluge.umist.ac.uk (deluge.umist.ac.uk [130.88.120.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8FED43D41 for ; Tue, 30 Mar 2004 10:00:06 -0800 (PST) (envelope-from lewiz@fajita.org) Received: from lh014.halls.umist.ac.uk ([130.88.163.14] helo=infidel.fajita.org) by deluge.umist.ac.uk with esmtp (Exim 4.24) id 1B8NWw-0006CR-0e for questions@freebsd.org; Tue, 30 Mar 2004 19:00:06 +0100 Received: from black.fajita.org (black.fajita.org [192.168.0.13]) by infidel.fajita.org (8.12.10/8.12.10) with ESMTP id i2UI01kU075026 for ; Tue, 30 Mar 2004 19:00:01 +0100 (BST) (envelope-from lewiz@fajita.org) Received: (from lewiz@localhost) by black.fajita.org (8.12.10/8.12.10/Submit) id i2UI00ol028481 for questions@freebsd.org; Tue, 30 Mar 2004 19:00:00 +0100 (BST) (envelope-from lewiz) Date: Tue, 30 Mar 2004 19:00:00 +0100 From: Lewis Thompson To: FreeBSD-questions Message-ID: <20040330180000.GA70985@lewiz.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline X-GPG-Fingerprint: 90A4 939E 3847 A3E4 8103 2A48 22DA B428 542F ED3F X-GPG-Info: http://www.lewiz.org/~lewiz/pgpkey / horowitz.surfnet.nl User-Agent: Mutt/1.5.6i X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-MailScanner-From: lewiz@fajita.org Subject: Ordering of dummynet and natd. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 18:00:08 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Can anybody help me out with ipfw rules to do dummynet shaping before packets hit natd for translation. 192.168.0.4 should be able to upload at just 100KB/s. The default gateway and natd is done on 192.168.0.1 where I have the following rules: pipe 1 ip from 192.168.0.4 to any via xl1 divert 8668 ip from any to any via xl1 allow ip from any to any pipe 1 just limits the bandwidth to 10KB/s. pipe 1 is before divert because if I put it after then natd has already translated the address so I cannot shape the bandwidth as I want. Am I wrong in thinking I can use pipes like this? -lewiz. --=20 I was so much older then, I'm younger than that now. --Bob Dylan, 1964. ------------------------------------------------------------------------ -| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |- --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAabWgItq0KFQv7T8RAg/RAKDOQeA7h71zcvolaNWzrcxX/qvZHACguqHB aho3f4/fyOh+e07/1wpGKdw= =edJI -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--