From owner-freebsd-hackers Thu May 24 6:33:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout06.sul.t-online.de (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id 21F3D37B422 for ; Thu, 24 May 2001 06:33:07 -0700 (PDT) (envelope-from bfischer@Techfak.Uni-Bielefeld.DE) Received: from fwd05.sul.t-online.de by mailout06.sul.t-online.de with smtp id 152vEf-0005q5-06; Thu, 24 May 2001 15:33:05 +0200 Received: from frolic.no-support.loc (520094253176-0001@[217.80.108.138]) by fmrl05.sul.t-online.com with esmtp id 152vFL-1r9dpZC; Thu, 24 May 2001 15:33:47 +0200 Received: (from bjoern@localhost) by frolic.no-support.loc (8.11.3/8.9.3) id f4ODUmf02816; Thu, 24 May 2001 15:30:48 +0200 (CEST) (envelope-from bjoern) From: Bjoern Fischer Date: Thu, 24 May 2001 15:30:48 +0200 To: Urban Olsson Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: modified FreeBSD gateway Message-ID: <20010524153047.A2589@frolic.no-support.loc> References: <778DFE9B4E3BD111A74E08002BA3DC0D03DA5225@trab-hermes.haninge.trab.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: <778DFE9B4E3BD111A74E08002BA3DC0D03DA5225@trab-hermes.haninge.trab.se>; from Urban.E.Olsson@telia.se on Thu, May 24, 2001 at 01:35:34PM +0200 X-Sender: 520094253176-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Urban, > I have a question regarding modification of a FreeBSD gateway (the Intern= et > gateway for a LAN). What I want to do is to have the gateway pick up the > packets, modify the IP-header and resend the packet onto the network. This > is a little bit like a NAT but I want to be able to do it differently and= on > my own terms. I guess that this means that I would be forced to rewrite t= he > gateway source-code so it behaves as I want it to. You can do this entirely in userspace. All you need is a divert socket. See the manpage divert(4). Bj=F6rn Fischer --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message