From owner-freebsd-stable Tue Oct 24 17:46:51 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.clones.com (unknown [216.70.178.182]) by hub.freebsd.org (Postfix) with ESMTP id 5298937B479 for ; Tue, 24 Oct 2000 17:46:46 -0700 (PDT) Received: from localhost (gross@localhost) by mail.clones.com (8.9.3/8.9.3) with ESMTP id RAA27386; Tue, 24 Oct 2000 17:50:11 -0700 Date: Tue, 24 Oct 2000 17:50:11 -0700 (PDT) From: Glendon Gross To: Ben Klang Cc: FreeBSD STABLE Mailing List Subject: Re: divert() and ipfw In-Reply-To: <20001025003910.90F8F6E2A2B@mx1.FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try options IPDIVERT in the kernel config file. On Tue, 24 Oct 2000, Ben Klang wrote: > Hello all. > First, let me say that I am a complete newbie to FreeBSD. Total use is > under 3 weeks. :) > I am trying to implement NAT on a fresh install of 4.1.1-RELEASE. I used > the ISO to install. > My problem is this: > All the tutorials and documentation I can find say the command line should > be: > ipfw add 10 divert natd all from to any via ex0 > however, its reporting: > > > 00010 divert 8668 ip from any to any via ex0 > ipfw: setsockopt(IP_FW_ADD): Invalid argument > > > I believe I have tracked this problem to how the ipfw kernel module was > compiled. There is mention in the docs of adding divert support to the > kernel, but I believe its any of: > 1) a setting in sysctl, but I cant find any mention of this > > 2) an option passed to ipfw when its kldloaded > > 3) a kernel module all its own > > I really have tried to read all the docs, and a copious amount they are, > but I cant seem to find this (seemingly simple) answer. > Any help is appreciated! > > -Ben Klang, KF4WBX > Network Systems Administrator > ben@insightsys.com > 404.873.0058 x111 > www.insightsystems.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message