From owner-freebsd-stable Thu Jul 27 0:19:45 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail2.rdc1.sfba.home.com (mail2.rdc1.sfba.home.com [24.0.0.75]) by hub.freebsd.org (Postfix) with ESMTP id EDF0C37BE69 for ; Thu, 27 Jul 2000 00:19:41 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail2.rdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000727071941.BXKJ6679.mail2.rdc1.sfba.home.com@beastie.localdomain>; Thu, 27 Jul 2000 00:19:41 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id AAA59377; Thu, 27 Jul 2000 00:19:42 -0700 (PDT) (envelope-from brian) Date: Thu, 27 Jul 2000 00:19:41 -0700 From: "Brian O'Shea" To: Andreas Ntaflos Cc: freebsd-stable@FreeBSD.ORG Subject: Re: ipfw/natd, problems with 4.1 RC? Message-ID: <20000727001941.N351@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: Andreas Ntaflos , freebsd-stable@FreeBSD.ORG References: <397FF8BE.D6C66133@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <397FF8BE.D6C66133@gmx.net>; from Andreas Ntaflos on Thu, Jul 27, 2000 at 10:54:22AM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jul 27, 2000 at 10:54:22AM +0200, Andreas Ntaflos wrote: > Yo, I am having problems in getting ipfw with natd to work on this my > fbsd 4.1 RC machine. according to the natd manpage, its just about 4 > lines that are needed to run natd and 'masq' a subnet or a single other > machine from the internet. i got two interfaces, one xl0 which is > connected to the internet and one ed0 which is connected to my 'subnet' > (which consists of a single win98 machine), and the correct cammands > should be: > > # natd -n xl0 > # ipfw -f flush > # ipfw add divert natd all from any to any via xl0 > # ipfw add pass all from any to any Make sure you have set gateway_enable="YES" in the /etc/rc.conf file on the gateway machine. > > just 5 days ago, I entered these and it just worked fine. the 'masqed' > pc could connect to the internet. > now, i cvsupped 2 days ago or so, and did exactly the same thing, but it > just wont connect the other pc to the internet. > i've compiled the kernel with IPFIREWALL and IPDIVERT (I tried > PFIREWALL_DEFAULT_TO_ACCEPT too, but it didnt matter wheather I had this > option in or not). > > so, please, does anybody know why this doesnt work? maybe I am missing > something here? did i forget something? > help is welcome > > regards > Andreas Ntaflos > -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message