From owner-freebsd-questions Fri Jun 4 15:22:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id A686C15450 for ; Fri, 4 Jun 1999 15:22:49 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id PAA18351; Fri, 4 Jun 1999 15:22:46 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 4 Jun 1999 15:22:46 -0700 (PDT) From: Doug White To: Joe Konecny Cc: FreeBSD Mailing List Subject: Re: ADSL In-Reply-To: <3756D18E.E9E4748B@green-mfg.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 3 Jun 1999, Joe Konecny wrote: > I finally have two 3c509's working in my 3.1-release machine. I > would like pointers on how to configure this machine as a router. > I have an ISP that has given me 4 static ip addresses. The freebsd > machine can access the internet via one of the 3c509's fine. I have > the other 3c509 connected to a hub and then a win95 machine connected > to the hub. So the win95 machine has an ip of it's own as does > each freebsd nic. I am unsure of what to do next to get the packets > to go through the freebsd machine to win95. I have > gateway_enabled=YES set in rc.conf. Does each fbsd nic and the > win95 machine need the gateway ip that was given to me by my > provider? I suggest giving back 3 of those IPs and configuring your system for natd. This way, you can have an arbitrary number of machines behind your FreeBSD box and seamlessly proxy for them. Beyond enabling gatewaying, you need to build a kernel with the ipfw options and turn on natd and ipfw w/ an 'open' firewall in /etc/rc.conf. You'll be ready to go next restart. For the internal net, you use fake addresses, like 192.168.0.*. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message