From owner-freebsd-small Tue Oct 19 16:59: 1 1999 Delivered-To: freebsd-small@freebsd.org Received: from edtnps05.telusplanet.net (edtnps05.telusplanet.net [198.161.157.105]) by hub.freebsd.org (Postfix) with ESMTP id 42266181DF for ; Tue, 19 Oct 1999 16:58:58 -0700 (PDT) (envelope-from jeff@nerdpower.com) Received: from edtntnt10-port-214.agt.net ([161.184.214.214]:1061 "HELO flanders") by smtp2.telusplanet.net with SMTP id ; Tue, 19 Oct 1999 18:01:11 -0600 From: "Jeff Lush" To: Subject: PicoBSD Network version and NAT Date: Tue, 19 Oct 1999 18:02:43 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all, I am trying to setup a small test NAT/firewall box using the networking version of PicoBSD 0.41. I believe I am most of the way there: - I have setup both inside and outside NICs correctly - I have enabled natd and firewall in the rc.conf file - I have added the "NATD 8668/divert" entry to the services file - I have built the following test rc.firewall file: /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via ep0 /sbin/ipfw add pass all from any to any When the rc.firewall script loads or I try to manually enter the commands I get: 00000 divert 8668 ip from any to any via ep0 /sbin/ipfw: setsockopt(IP_FW_ADD): Invalid Argument After this error, that's it, no NAT. I don't understand error. Most of my configuration came from the man pages on NATD and IPFW from the FreeBSD website. I am using the kernel that came with 0.41-Network file. The man page for NATD suggests adding two lines to the kernel config file: options IPFIREWALL options IPDIVERT I haven't tried this yet as rebuilding the kernel for PicoBSD seems a little daunting. As well, looking through the kernel config file for FreeBSD 3.2, there is no listing of this kind at all. Are these entries no longer required when building a new kernel? Anyway, I am new at this, but learning all the time. If someone can shed some light on my problem, I would appreciate it. Thanks, Jeff Lush To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message