From owner-freebsd-questions Mon Jun 30 23:20:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA11523 for questions-outgoing; Mon, 30 Jun 1997 23:20:07 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA11432 for ; Mon, 30 Jun 1997 23:19:56 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id JAA08623; Tue, 1 Jul 1997 09:17:31 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma008621; Tue Jul 1 09:17:12 1997 Message-ID: <33B8A0C4.6703@barcode.co.il> Date: Tue, 01 Jul 1997 09:16:36 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: robert@chalmers.com.au CC: freebsd-questions Subject: Re: Question: using the Non-Assigned IP numbers and routing References: <33B82BED.4A80@chalmers.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Robert wrote: > > Another question. > > If I have a fbsd machine, attached to an ISP, with an assigned > IP provided by the ISP, how do I set up those 196.x.x.x IP numbers > on my "internal" route so that the machines on the internal net > can all see through the fbsd machine and out to the Internet, > and so the internet can send email in to the machines on the > internal net, without the internal net numbers being visable > to the Internet at large. Which of course they shuldn't be. > > Thanks for any pointers here. routing confuses the hell out of me! > > cheers, > Bob > -- > http://www.chalmers.com.au Books-New & Secondhand Support Whirled Peas. > Agents for CIBTC. Associate of Amazon.com, and Partner Program with iBS. > Books about China, books from China. Sheng huo jiu shi dou zheng > Business Links in Dalian, and Beijing. Building the China Trade First, the block of unassigned (private) C-class addresses is 192.168.x.x. Next, what you're looking for is generally called IP aliasing or NAT (Network Address Translation). If you're using a dial-up connection on your FreeBSD machine, read the ppp tutorial at http://www.freebsd.org/tutorials/ppp/ppp.html If not (i.e. you have a fixed connection adn a router, and you use FreeBSD as an internal router or as a firewall), take a look at the IP aliasing tutorial, as well as the docs for natd. Nadav