From owner-freebsd-questions Sun Feb 2 23: 5:45 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF2BE37B405 for ; Sun, 2 Feb 2003 23:05:43 -0800 (PST) Received: from colossus.systems.pipex.net (colossus.systems.pipex.net [62.241.160.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE1E743F43 for ; Sun, 2 Feb 2003 23:05:42 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from [192.168.1.8] (81-86-129-77.dsl.pipex.com [81.86.129.77]) by colossus.systems.pipex.net (Postfix) with ESMTP id B23BE16000892; Mon, 3 Feb 2003 07:05:35 +0000 (GMT) Subject: Re: Routing, NAT'ing and and external ADSL router. From: Stacey Roberts Reply-To: stacey@vickiandstacey.com To: mark@fantoma.net Cc: FreeBSD Questions In-Reply-To: <10072.150.101.208.127.1044255719.squirrel@mail.zoper.com> References: <10072.150.101.208.127.1044255719.squirrel@mail.zoper.com> Content-Type: text/plain Organization: Message-Id: <1044255944.13652.151.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 03 Feb 2003 07:05:44 +0000 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, On Mon, 2003-02-03 at 07:01, mark@fantoma.net wrote: > Hey people, > > I couldn't seem to find any information anywhere regarding how to do > this, and I tried to do it myself with my somewhat limited networking > skills (I'm a relative newbie to FreeBSD). > > This is the setup. > > I have 2 network cards in the gateway machine. > rl0 is 192.168.0.1 255.255.255.0 > rl1 is 192.168.1.1 255.255.255.0 > (p.s. I know realtek suck.. but they were just spare cards!) > > There is an external ADSL router connected to rl1, who's IP address is > 192.168.1.2 > > The default router is "192.168.1.2" > > natd is enabled, and the natd interface is "rl1" > and gateway is enabled. > > I also have the IPDIVERT and IPFIREWALL options in the kernel. > (and my firewall config has add divert natd from any to any via rl1) > Now, I've "sort-of" gotten it to work at the moment.. however I'm not > sure of a few settings. > > First off, it only seems to work if I also enable NATing on the ADSL > router, which I would've thought would've caused problems due to "double > NATting" > Secondly, due to this setup, I don't really know how to configure the > firewall.. > > Any, and I mean any, help would be appreciated! :) Have a look at this site for a primer, then followup with the link at the bottom of the article for practical stuff: http://www.defcon1.org/natd.html Regards, Stacey > > Cheers, > Mark > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message