Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 19:00:00 +0100
From:      Lewis Thompson <lewiz@fajita.org>
To:        FreeBSD-questions <questions@freebsd.org>
Subject:   Ordering of dummynet and natd.
Message-ID:  <20040330180000.GA70985@lewiz.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330180000.GA70985>