From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 03:43:14 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 855B816A4CF; Thu, 16 Sep 2004 03:43:14 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 40992 invoked by uid 1005); 3 Aug 2003 23:24:55 -0000 Delivered-To: max@vampire.homelinux.org Received: (qmail 40989 invoked from network); 3 Aug 2003 23:24:55 -0000 Received: from moutng.kundenserver.de (212.227.126.177) by pd953052f.dip.t-dialin.net with SMTP; 3 Aug 2003 23:24:55 -0000 Received: from [212.227.126.151] (helo=mxng00.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19jT6Y-0001ME-00 for max@vampire.homelinux.org; Mon, 04 Aug 2003 02:21:38 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng00.kundenserver.de with esmtp (Exim 3.35 #1) id 19jT6X-0001fk-00 for max@love2party.net; Mon, 04 Aug 2003 02:21:37 +0200 Received: from turing (localhost [127.0.0.1])ESMTP id 33D7A395156; Sun, 3 Aug 2003 19:26:09 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Sun, 03 Aug 2003 19:26:05 -0500 (EST) Delivered-To: pf4freebsd@freelists.org Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185])ESMTP id 2357F395148 for ; Sun, 3 Aug 2003 19:26:04 -0500 (EST) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19jT6M-0002Sa-00 for pf4freebsd@freelists.org; Mon, 04 Aug 2003 02:21:26 +0200 Received: from [217.83.5.47] (helo=max900) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19jT6M-0000V0-00 for pf4freebsd@freelists.org; Mon, 04 Aug 2003 02:21:26 +0200 Message-ID: <003801c35a1e$877757d0$01000001@max900> From: "Max Laier" To: References: <20030803154630.GB84041@pandemonium.lan.raisdorf.net> MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-archive-position: 62 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: max@love2party.net Precedence: normal X-list: pf4freebsd X-UID: 164 X-Length: 4445 X-Mailman-Approved-At: Thu, 16 Sep 2004 03:55:51 +0000 Subject: [pf4freebsd] Re: pf hack: use scrub rule to set TOS bits X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 03:43:14 -0000 X-Original-Date: Mon, 4 Aug 2003 02:22:46 +0200 X-List-Received-Date: Thu, 16 Sep 2004 03:43:14 -0000 Hallo Hendrik, nette Idee! Aber ich sag's mal lieber gleich explizit: Wir machen keinen "fork" vom OpenBSD Development. Soll heißen, auch wenn Dein Patch einwandfrei läuft wird er nur aufgenommen nachdem er in OpenBSD ist. Ich hoffe das bremst Deinen Enthusiasmus und Ideenreichtum nicht! Wir machen natürlich gerne "Werbung" für gute Ideen, aber wie gesagt wir sind ein Port kein Fork. Keep the good work up! Gruß, Max ----- Original Message ----- From: "Hendrik Scholz" To: Sent: Sunday, August 03, 2003 5:46 PM Subject: [pf4freebsd] pf hack: use scrub rule to set TOS bits > Hi! > > I've got pf 1.59 w/ ALTQ running and now get into the situation > that outgoing packets are queued correctly but I don't have > the chance to configure the opposite side (DSL access concentrator, Cisco > router). > I'm just hacking up pfctl and pf to recognize a rule like this: > > scrub out on $ext_if proto icmp from $internal to any tos 0x10 keep state > or > scrub out on $ext_if proto udp from $internal to any port 4000 tos 0x10 keep state > > This will set the ip_tos bits to 0x10 (if not set otherwise). I still > have to conduct some tests (prolly using nemesis-icmp) to see whether > my upstream routers will return the answer with the same tos bits. > > In case a) the destination host and b) the upstream router both make > their queuing decisions based on the tos bits we might manage to > influence our upstream routers behaviour and finally play Diablo > while doing large downloads. > > Since weather is nice and I have other things to hack on this might > take a few days until it proofs stable. > > Just FYI, Hendrik > > -- > Hendrik Scholz - - http://raisdorf.net/ > > drag me, drop me - treat me like an object > >