From owner-freebsd-hackers Thu Jan 16 13:50:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA15472 for hackers-outgoing; Thu, 16 Jan 1997 13:50:33 -0800 (PST) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA15466 for ; Thu, 16 Jan 1997 13:50:29 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id NAA15833; Thu, 16 Jan 1997 13:49:41 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma015831; Thu Jan 16 13:49:30 1997 Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id NAA26627; Thu, 16 Jan 1997 13:49:30 -0800 (PST) From: Archie Cobbs Message-Id: <199701162149.NAA26627@bubba.whistle.com> Subject: Re: FreeBSD as an ISDN Router In-Reply-To: <199701160445.EAA09303@awfulhak.demon.co.uk> from Brian Somers at "Jan 16, 97 04:45:08 am" To: brian@awfulhak.demon.co.uk (Brian Somers) Date: Thu, 16 Jan 1997 13:49:29 -0800 (PST) Cc: jkh@time.cdrom.com, archie@whistle.com, julian@whistle.com, danny@panda.hilink.com.au, ejs@bfd.com, freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I'm happy to (and would prefer to) make the alias stuff use divert sockets... > but what are they ? and would people be happy with the alias code at this > level ? They allow you to add ipfw "divert" rules like this: 1000 ipfw divert 1025 ip from any to 192.168.1.0/24 When a packet matches this divert rule, it pops out of the divert socket bound to port 1025. You can also write a packet to a divert socket, which injects it back into the kernel routing process. There's a man page... divert(4). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com