Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 1999 12:50:34 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        mwade@cdc.net (Mike Wade)
Cc:        mistwolf@ethereal.net, freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject:   Re: Rate limiting
Message-ID:  <199908221050.MAA05168@labinfo.iet.unipi.it>
In-Reply-To: <Pine.GSO.4.10.9908220840460.2326-100000@server1> from "Mike Wade" at Aug 22, 99 08:45:42 am

next in thread | previous in thread | raw e-mail | index | archive | help
> Look into dummynet (part of ipfw now, man dummynet) and the ALTQ package
> (http://www.csl.sony.co.jp/person/kjc/programs.html) for FreeBSD.
> 
> Example usage of dummynet to simulate a 128k ISDN link on <your ip>: 
> 
> ipfw pipe 1 config bw 128Kbit/s
> ipfw add 1000 pipe 1 ip from <your ip> to any in recv <your interface>
> ipfw add 1001 pipe 1 ip from any to <your ip> out xmit <your interface>

nitpicking... but isn't isdn full duplex ? If so you should rather use
two pipes

    ipfw pipe 1 config bw 128Kbit/s queue 30Kbytes
    ipfw pipe 2 config bw 128Kbit/s queue 30Kbytes
    ipfw add 1000 pipe 1 ip from <your ip> to any in recv <your interface>
    ipfw add 1001 pipe 2 ip from any to <your ip> out xmit <your interface>

	cheers
	luigi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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