From owner-freebsd-questions Wed Mar 14 4:55:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rknebel.uplink.net (rknebel.uplink.net [209.173.88.243]) by hub.freebsd.org (Postfix) with ESMTP id 39CF637B718 for ; Wed, 14 Mar 2001 04:55:39 -0800 (PST) (envelope-from rknebel@uplink.net) Received: from [192.168.1.2] (mac.uplink.net [192.168.1.2]) by rknebel.uplink.net (8.11.1/8.11.1) with ESMTP id f2ECrn316169; Wed, 14 Mar 2001 07:53:50 -0500 (EST) (envelope-from rknebel@uplink.net) Mime-Version: 1.0 X-Sender: rknebel@rknebel.uplink.net Message-Id: In-Reply-To: References: Date: Wed, 14 Mar 2001 07:45:44 -0500 To: Nick Rogness From: Rick Knebel Subject: Re: natd Cc: questions@freebsd.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >On Tue, 13 Mar 2001, Rick Knebel wrote: > >> Hi, >> >> Right now I am using user ppp with the nat flag to allow my other >> machines to get out on the internet through my bsd box. >> >> I want to start using kernel ppp and natd to do the same thing. >> >> I read through everything about it in the freebsd hanbook and the >> Complete FreeBsd book. >> >> I have all the appropriate things turned on in the rc.conf files and >> my /etc.rc.firewall looks like this. >> >> >> >> sbin/ipfw -f flush >> /sbin/ipfw add divert natd all from any to any via ppp0 >> /sbin/ipfw add pass all from any to any >> >> >> >> I know this is not a firewall but right now I want to let everything >> through just to get it working. >> >> >> The problem is that it is not working. >> I do get this error line though >> >> ip_fw_ctl: invalid command. > > Did you build the kernel with 'options IPDIVERT' ? > > >Nick Rogness >- Keep on routing in a Free World... > "FreeBSD: The Power to Serve!" Thanks for your reply. I am just using the stock kernel that came with 4.2. Do i have to rebuild it to use natd? Thanks Rick -- Rick Knebel rknebel@uplink.net http://members.tripod.com/~Rick_Knebel/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message