Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2000 10:42:05 -0700 (MST)
From:      John Reynolds~ <jreynold@sedona.ch.intel.com>
To:        "B. Carlson" <carls107@msu.edu>
Cc:        stable@freebsd.org
Subject:   Re: One internet connection for many puters?
Message-ID:  <14634.49901.456972.803076@hip186.ch.intel.com>
In-Reply-To: <392ABAD9.9842D2A8@msu.edu>
References:  <392ABAD9.9842D2A8@msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

[ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14634.49901.456972.803076>