From owner-freebsd-net Fri Apr 5 20:26: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from draco.over-yonder.net (draco.over-yonder.net [198.78.58.61]) by hub.freebsd.org (Postfix) with ESMTP id 9508037B416 for ; Fri, 5 Apr 2002 20:25:55 -0800 (PST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 30D4AFC2; Fri, 5 Apr 2002 22:25:55 -0600 (CST) Date: Fri, 5 Apr 2002 22:25:55 -0600 From: "Matthew D. Fuller" To: Nick Rogness Cc: Alex Rousskov , freebsd-net@FreeBSD.ORG Subject: Re: Forcing packets to the wire Message-ID: <20020405222555.C65380@over-yonder.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5-fullermd.1i In-Reply-To: ; from nick@rogness.net on Fri, Apr 05, 2002 at 06:48:09PM -0600 X-Editor: vi X-OS: FreeBSD Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Apr 05, 2002 at 06:48:09PM -0600 I heard the voice of Nick Rogness, and lo! it spake thus: > On Fri, 5 Apr 2002, Alex Rousskov wrote: > > > > - Is it possible without kernel modifications? How? > > AFAIK, No. Your only 2 possiblities that I could think of would > be to use policy routing or natd. Both will fail in this case. You MIGHT be able to use ipfw divert/pipe rules to somehow shove the packets into a program on their way out, and write a program that would use raw sockets to hand-assemble the IP datagram on the way out; I'm not sure if the kernel would try to outsmart you on that. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Unix Systems Administrator | fullermd@futuresouth.com Specializing in FreeBSD | http://www.over-yonder.net/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message