From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 17:17:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1AEC1065673 for ; Fri, 23 Jan 2009 17:17:30 +0000 (UTC) (envelope-from michaelv@NonComposMentis.net) Received: from DainBramage.NonComposMentis.net (dsl231-046-014.sea1.dsl.speakeasy.net [216.231.46.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6DBB68FC0A for ; Fri, 23 Jan 2009 17:17:30 +0000 (UTC) (envelope-from michaelv@NonComposMentis.net) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 23 Jan 2009 09:14:49 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <372A95C3CA654645B7407DAED7DC334C166EA4@dainbramage.NonComposMentis.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dumb ipnat question Thread-Index: Acl9aGZo5/+iVIbaQWur8TV5yZ2yrAAFbLIU References: <372A95C3CA654645B7407DAED7DC334C166EA2@dainbramage.NonComposMentis.net> <991123400901230639j3b858276ofd1cdf0f13f7a9d0@mail.gmail.com> From: "Michael VanLoon" To: "Odhiambo Washington" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: RE: Dumb ipnat question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 17:17:31 -0000 I didn't find "IPFILTER" in either the GENERIC or NOTES kernel files, so = no, I didn't compile it in. I was wondering about it, though, based on = older kernel help messages I found on the net (> 10 years old). =20 I'll give both of those options a try. Thanks! =20 - Michael ________________________________ From: Odhiambo Washington [mailto:odhiambo@gmail.com] Sent: Fri 1/23/2009 6:39 AM To: Michael VanLoon Cc: freebsd-questions@freebsd.org Subject: Re: Dumb ipnat question On Fri, Jan 23, 2009 at 2:43 AM, Michael VanLoon = wrote: I have built a simple 7.1 system in a VM. I built a custom kernel that = is basically GENERIC minus some hardware stuff I don't need, plus a few = things that look cool. =09 When I attempt to run the ipnat command, I get the error: /dev/ipnat: open: No such file or directory =09 Sure enough, there are no ip* devices in /dev/. In the "olden days", = when I used to do a lot of BSD hacking, you used MAKEDEV to make the = devices you wanted. Nowadays, it's done with devfs. I believe the = upshot is that it's supposed to be semi-automagic, isn't it? =09 Anyway, what am I doing wrong? What do I need to configure to use = ipnat and then later ipfw or ipfilter? Did you load the modules? ipl_load=3D"YES" in /boot/loader.conf and reboot OR kldload ipl If you did not compile IPFILTER in the kernel, then you must load the = module. --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _=20 "The only time a woman really succeeds in changing a man is when he is a = baby." - Natalie Wood