Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2003 19:22:33 +0200
From:      =?iso-8859-1?Q?Sten_Daniel_S=F8rsdal?= <sten.daniel.sorsdal@wan.no>
To:        "Jason Kocol" <mrkocol@cv.org>, <freebsd-ipfw@freebsd.org>
Subject:   RE: ipfw + dummynet: bandwidth limiting not working
Message-ID:  <0AF1BBDF1218F14E9B4CCE414744E70F1F3D40@exchange.wanglobal.net>

next in thread | raw e-mail | index | archive | help
> I am running FreeBSD 4.8 STABLE and am trying to use dummynet=20
> with ipfw to
> limit bandwidth on my DSL connection.  I have added the rules=20
> for dummynet
> to my existing firewall rules in rc.firewall (which are=20
> pretty open as you
> can see) in the last two lines below:
>=20
> ipfw -f flush
> ipfw add divert natd all from any to any via vx0
> ipfw add pass all from any to any
> ipfw pipe 1 config bw 128K
> ipfw add pipe 1 tcp from x.x.x.x to any
>=20
> (x.x.x.x being my public IP address, and vx0 in line 2 being=20
> the interface
> for this address)
>=20
> By those last two lines I would expect the outbound/inbound=20
> traffic to be
> limited to 128Kbps, yet I am still able to transfer data at my normal
> broadband speeds (1.5Mb/768Kb).
>=20
> Anyone have any idea why this is not working the way I'd expect it to?
>=20

Remove the line that says 'ipfw add pass all from any to any' and it =
should work.

- Sten



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