From owner-freebsd-questions Sun Feb 2 23: 2:10 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 8EFDF37B401 for ; Sun, 2 Feb 2003 23:02:08 -0800 (PST) Received: from mail.zoper.com (mail.zoper.com [198.78.65.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9493543F79 for ; Sun, 2 Feb 2003 23:02:04 -0800 (PST) (envelope-from mark@fantoma.net) Received: (qmail 17941 invoked by uid 7794); 3 Feb 2003 07:02:00 -0000 Received: from mark@fantoma.net by mail.zoper.com by uid 89 with qmail-scanner-1.15 (clamscan: 0.53. spamassassin: 2.43. Clear:SA:0(3.0/5.0):. Processed in 0.489884 secs); 03 Feb 2003 07:02:00 -0000 Received: from unknown (HELO fantoma.net) (127.0.0.1) by 0 with SMTP; 3 Feb 2003 07:01:59 -0000 Received: from 150.101.208.127 (SquirrelMail authenticated user mark@fantoma.net) by mail.zoper.com with HTTP; Sun, 2 Feb 2003 23:01:59 -0800 (PST) Message-ID: <10072.150.101.208.127.1044255719.squirrel@mail.zoper.com> Date: Sun, 2 Feb 2003 23:01:59 -0800 (PST) Subject: Routing, NAT'ing and and external ADSL router. From: To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.9) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, hits=3.0 required=5.0 tests=MSG_ID_ADDED_BY_MTA_3,NO_REAL_NAME,SPAM_PHRASE_00_01 version=2.43 X-Spam-Level: *** 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 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! :) Cheers, Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message