From owner-freebsd-stable Tue May 23 10:42:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from pan.ch.intel.com (pan.ch.intel.com [143.182.246.24]) by hub.freebsd.org (Postfix) with ESMTP id 7912B37B76B for ; Tue, 23 May 2000 10:42:17 -0700 (PDT) (envelope-from jreynold@sedona.ch.intel.com) Received: from sedona.intel.com (sedona.ch.intel.com [143.182.218.21]) by pan.ch.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.28 2000/05/06 00:07:11 dmccart Exp $) with ESMTP id KAA02571; Tue, 23 May 2000 10:42:10 -0700 (MST) Received: from hip186.ch.intel.com (hip186.ch.intel.com [143.182.225.68]) by sedona.intel.com (8.9.1a/8.9.1/d: sendmail.cf,v 1.10 2000/02/10 21:38:16 steved Exp $) with ESMTP id KAA18030; Tue, 23 May 2000 10:42:05 -0700 (MST) X-Envelope-From: jreynold@sedona.ch.intel.com Received: (from jreynold@localhost) by hip186.ch.intel.com (8.9.1a/8.9.1/d: client.m4,v 1.3 1998/09/29 16:36:11 sedayao Exp sedayao $) id NAA21052; Tue, 23 May 2000 13:42:05 -0400 (EDT) X-Authentication-Warning: hip186.ch.intel.com: jreynold set sender to jreynold@sedona.ch.intel.com using -f From: John Reynolds~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14634.49901.456972.803076@hip186.ch.intel.com> Date: Tue, 23 May 2000 10:42:05 -0700 (MST) To: "B. Carlson" Cc: stable@freebsd.org Subject: Re: One internet connection for many puters? In-Reply-To: <392ABAD9.9842D2A8@msu.edu> References: <392ABAD9.9842D2A8@msu.edu> X-Mailer: VM 6.75 under Emacs 20.3.11 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ On Tuesday, May 23, B. Carlson wrote: ] > I'm trying to set up FreeBSD 4.0 so I can use more than one computer > for the internet, I have a cable modem. I followed these steps: > http://freebsd.lanfear.com/howtos/firewall.html > > [snip] > > I'm trying to setup another BSD box behind the firewall, I specify > it with an IP of 10.10.10.2 and tell it the gateway is at 10.10.10.1 > with a netmask of 255.255.0.0 and still point it to the DNS server > at 24.2.222.33, which is the server of the cable company. Is > there any steps in here that I have missed? Am I sending it to the > wrong spot? I don't profess to be a Unix GURU, but what I did to accomplish this was: network_interfaces="lo0 mx0" # include my linksys card on mx0 ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. ifconfig_mx0="inet 192.168.1.2" # Setup local network device defaultrouter="192.168.1.3" # make the default route go to dolphin's ed1 static_routes="" on my "other" box (substitute your 10.x.x.x address for my 192.168.x.x address). The "other" NIC in my gateway was setup as 192.168.1.3 and thus this "defaultrouter" line makes the default route to that machine (which then forwards things appropriately). As far as the DNS, I run named on my gateway so, my /etc/resolv.conf just looks like this: search home-net chnd1.az.home.com nameserver 192.168.1.3 But, I can't imagine why you couldn't just put nameserver 24.2.222.33 in there. The default route line above should make everything "work" (or at least I think ... YMMV :). -Jr -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | John Reynolds WCCG, CCE, Higher Levels of Abstraction | | Intel Corporation MS: CH6-210 Phone: 480-554-9092 pgr: 602-868-6512 | | jreynold@sedona.ch.intel.com http://www-aec.ch.intel.com/~jreynold/ | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message