Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2004 23:48:48 +0100
From:      Jeremie LE HEN <le-hen_j@epita.fr>
To:        tony@saign.com
Cc:        ipfw@freebsd.org
Subject:   Re: bw limit of http downloads?
Message-ID:  <20040104224848.GC537@carpediem.epita.fr>
In-Reply-To: <3466.66.146.166.53.1073250118.squirrel@p3.saignon.net>
References:  <3466.66.146.166.53.1073250118.squirrel@p3.saignon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> I've been toying with the idea of limiting port 80 downloads from my box.
> Seems some people can't be polite, and do it themselves??
> 
> Is their a quick way using a single pipe/queue to restrict port 80 to say
> 128K downloads?

Reading the ipfw(8) manual page would have been a great help...

Supposing your interface to Internet is tun0 :
$ ipfw pipe 1 config bw 128KBytes/s
$ ipfw add pipe 1 tcp from any 80 to any in via tun0

-- 
Jeremie LE HEN aka TtZ/TataZ                          jeremie.le-hen@epita.fr
                                                                 ttz@epita.fr
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



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