From owner-freebsd-net@FreeBSD.ORG Wed Feb 4 10:31:16 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEC0116A4CE for ; Wed, 4 Feb 2004 10:31:16 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 172E743D77 for ; Wed, 4 Feb 2004 10:31:15 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc13) with ESMTP id <20040204183106015007k8c2e>; Wed, 4 Feb 2004 18:31:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA02056; Wed, 4 Feb 2004 10:31:05 -0800 (PST) Date: Wed, 4 Feb 2004 10:31:04 -0800 (PST) From: Julian Elischer To: Dominik Lupinski In-Reply-To: <20040204084239.GA9033@errol.blah> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Vladimir B. Grebenschikov" cc: freebsd-net Subject: Re: Changing TOS of forwarded packets? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 18:31:17 -0000 On Wed, 4 Feb 2004, Dominik Lupinski wrote: > On Wed, Feb 04, 2004 at 11:04:52AM +0300, Vladimir B. Grebenschikov wrote: > > ? ??, 04.02.2004, ? 03:17, Julian Elischer ?????: > > > > here's a suggestion.. > > > I have not done this but it might work: > > > > I have tried such scheme (second, with two divert sockets, tee not > > necessary). It works, only thing you should care about - packet should > > not enter to this chain twice or kernel will panic. > > Thanks, both of you, for the input. Seems like I found the proper way for > dealing with ip packets in the stack. (Yes, I also think that tee node was > redundant in the second example). yeah the tee node was a cut-n-paste error :-) > > > ps: > > change action for ipfw2 will be funny enough, like: > > ipfw add X change iptos congestion .... > > ipfw add Y change src-ip 1.1.1.1 ... > > may be it is not bad feature for ipfw2 ? > > At least it's high time to have such thing natively in FreeBSD... > > -- > "...they build you up only to tear you down." >