Date: Thu, 24 May 2001 15:30:48 +0200 From: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE> To: Urban Olsson <Urban.E.Olsson@telia.se> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: modified FreeBSD gateway Message-ID: <20010524153047.A2589@frolic.no-support.loc> In-Reply-To: <778DFE9B4E3BD111A74E08002BA3DC0D03DA5225@trab-hermes.haninge.trab.se>; from Urban.E.Olsson@telia.se on Thu, May 24, 2001 at 01:35:34PM %2B0200 References: <778DFE9B4E3BD111A74E08002BA3DC0D03DA5225@trab-hermes.haninge.trab.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010524153047.A2589>