From owner-freebsd-questions@FreeBSD.ORG Wed Mar 24 11:12:39 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 50FE616A4CF for ; Wed, 24 Mar 2004 11:12:39 -0800 (PST) Received: from deluge.umist.ac.uk (deluge.umist.ac.uk [130.88.120.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E9DF43D58 for ; Wed, 24 Mar 2004 11:12:38 -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 1B6Dnp-0004PQ-1E for questions@freebsd.org; Wed, 24 Mar 2004 19:12:37 +0000 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 i2OJCGYv010605 for ; Wed, 24 Mar 2004 19:12:16 GMT (envelope-from lewiz@fajita.org) Received: (from lewiz@localhost) by black.fajita.org (8.12.11/8.12.11/Submit) id i2OJCb45006944 for questions@freebsd.org; Wed, 24 Mar 2004 19:12:37 GMT (envelope-from lewiz) Date: Wed, 24 Mar 2004 19:12:37 +0000 From: Lewis Thompson To: FreeBSD-questions Message-ID: <20040324191236.GA5833@lewiz.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" 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 Subject: natd + DUMMYNET ordering. 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: Wed, 24 Mar 2004 19:12:39 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm trying to set up some traffic shaping using IPFW2 and DUMMYNET. I also use natd and I'm a little stumped as to where to put my pipes so that they will work as I expect. ipfw add pipe 1 all from 192.168.0.4 to any via xl1 ipfw add divert natd all from any to any via xl1 ipfw add pipe 1 all from 192.168.0.4 to any via xl1 ipfw pipe 1 config bw 100KB/s ipfw add pass all from any to any What I want is to able to shape traffic (incoming and outgoing) based on the internal destination/source. Hence I've put pipe 1 before natd so traffic going out will be matched. The same rule is repeated after natd so incoming traffic will be matched. However, this plain doesn't work and I'm a little stumped. Can anybody point out how to get this sort of stuff working right? -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 |- --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYd2kItq0KFQv7T8RAt7VAJ9xbV08hx0FzVXETaW6OEjZBqKZwACgzMfK MSk6t9kTaeju1+foVAeZji4= =/2Wj -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--