From owner-freebsd-stable Tue Oct 24 17:40:37 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0342337B479 for ; Tue, 24 Oct 2000 17:40:36 -0700 (PDT) Received: from insightsys.com (mail.insightsys.com [216.50.40.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 90F8F6E2A2B for ; Tue, 24 Oct 2000 17:39:10 -0700 (PDT) Subject: divert() and ipfw From: Ben Klang To: FreeBSD STABLE Mailing List Message-Id: <20001025003910.90F8F6E2A2B@mx1.FreeBSD.org> Date: Tue, 24 Oct 2000 17:39:10 -0700 (PDT) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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