Re: Bandbreitenlimitierung mittels ipfw pipe

From: Oliver Fromme <olli(at)secnetix.de>
Date: Sat, 21 Jun 2003 20:27:20 +0200 (CEST)

Bjoern Engels <bjoern.engels(at)mail.isis.de> wrote:
> ipfw pipe 10 config bw 40kbit/s queue 40
> ipfw pipe 20 config bw 40kbit/s queue 40
>
> ipfw add pipe 10 tcp from any 1-65535 to 192.168.100.2 4662
> ipfw add pipe 20 tcp from 192.168.100.2 4662 to any 1-65535
>
> Die entsprechenden Pakete gehen auch brav in die Pipe rein:
>
> # ipfw show
> 00100 4867 1598497 pipe 10 tcp from any 1-65535 to 192.168.100.2 4662
> 00200 5155 278139 pipe 20 tcp from 192.168.100.2 4662 to any 1-65535
> 65535 13964093 5868602241 allow ip from any to any
>
> Leider schiebt edonkey trotzdem mit voller Geschwindigkeit ins Netz.

Wenn ich Deine Regeln richtig interpretiere, betreffen sie
nur hereinkommende Verbindungen. Für herausgehende bräuch-
test Du noch sowas:

pipe 10 tcp from any 4662 to 192.168.100.2
pipe 20 tcp from 192.168.100.2 to any 4662

(Das 1-65535 kannst Du Dir übrigens sparen.)

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"Clear perl code is better than unclear awk code; but NOTHING
comes close to unclear perl code"  (taken from comp.lang.awk FAQ)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 21 Jun 2003 - 20:27:23 CEST

search this site