From owner-freebsd-pf@FreeBSD.ORG Tue Oct 30 16:13:23 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18FFC16A417; Tue, 30 Oct 2007 16:13:23 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from bavaria.utcluj.ro (unknown [IPv6:2001:b30:5000:2:20e:cff:fe4b:ca01]) by mx1.freebsd.org (Postfix) with ESMTP id 65FAA13C4A8; Tue, 30 Oct 2007 16:13:22 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from localhost (localhost [127.0.0.1]) by bavaria.utcluj.ro (Postfix) with ESMTP id 4B4D750884; Tue, 30 Oct 2007 18:13:21 +0200 (EET) X-Virus-Scanned: by the daemon playing with your mail on local.mail.utcluj.ro Received: from bavaria.utcluj.ro ([127.0.0.1]) by localhost (bavaria.utcluj.ro [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bgsdvBI0Et8F; Tue, 30 Oct 2007 18:13:15 +0200 (EET) Received: from [172.27.2.200] (c7.campus.utcluj.ro [193.226.6.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bavaria.utcluj.ro (Postfix) with ESMTP id 31F3D5083F; Tue, 30 Oct 2007 18:13:15 +0200 (EET) Message-ID: <4727581A.5040602@net.utcluj.ro> Date: Tue, 30 Oct 2007 18:13:14 +0200 From: Cristian KLEIN User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: =?UTF-8?B?RXJtYWwgTHXDp2k=?= References: <9a542da30710161409o4732a77bybdf4ba35d7491bb@mail.gmail.com> <200710171043.08126.max@love2party.net> <9a542da30710211232v4d3c930fg8ea778a12f3f16cb@mail.gmail.com> <9a542da30710280617t11e668e2o4d122998192f71c@mail.gmail.com> <20071028095802.A61999@xorpc.icir.org> <9a542da30710281013q642b5aa8k33c7836ee064242e@mail.gmail.com> <9a542da30710281311n7f8a6f29me02da90941d96ae5@mail.gmail.com> In-Reply-To: <9a542da30710281311n7f8a6f29me02da90941d96ae5@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org, freebsd-pf@freebsd.org Subject: Re: Fwd: [PATCH] PF+dummynet X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 16:13:23 -0000 Ermal Luçi wrote: > Ok thanks to remko@ for hosting it! > > You can find it here: > http://people.freebsd.org/~remko/patches/dummynet_pf.tar.gz > > Please test and give feedback. I am really interested in your patch and hope that I will soon have time to test it. Meanwhile, I would like to ask you how dummynet interacts with the pf keep state function. Ideally, one should be able to send uplink / downlink traffic to different pipes. For example, dnpipe 10 config bw 4Mbit mask src-ip 0x000000ff queue 10 dnpipe 11 config bw 4Mbit mask dst-ip 0x000000ff queue 10 pass in from $if_int proto tcp from any to any port 80 keep state dnpipe (up 10, down 11) should limit HTTP traffic for each host, to 4Mbps. Could you please tell me how this works? > >>> It gives full dummynet support in pf.conf syntax and removes dummynet >>> depndency to ipfw. >>> >>> You can configure a pipe/queue using the same ipfw syntax the only >>> difference is that i call those 'dnpipe'/'dnqueue' respectivley. >>> GRED/RED isn't currently finished but that is a pfctl addition so not >>> difficult. >>> >>> For dummynet i preserve ipfw style statistics so tools of ipfw can be >>> used here to. >>> >>> Since this is PF i preserved ALTQ priotitizing of ACK, meaning on ALTQ you do >>> pass in quick proto tcp from any to any flags S/SA queue(pri, que) >>> >>> You can do the same with dummynet queues only, since for pipes it >>> doesn't make much sense since they simulate a link. So yuo can do >>> >>> dnpipe 10 bandwidth 100Kbit >>> dnqueue 10 dnpipe 10 queue 100 >>> dnqueue 20 dnpipe 10 queue 20 >>> >>> pass in quick proto tcp from any to any flags S/SA dnqueue(10, 20) >>> >>> >>> Please test and give feedback. >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"