*BSD News Article 82075


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!fjholden.OntheNet.com.au!news
From: Tony Griffiths <tonyg@OntheNet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD as a router?
Date: Sat, 02 Nov 1996 13:47:12 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 30
Message-ID: <327AC440.3A5B@OntheNet.com.au>
References: <Pine.PTX.3.95.961101145622.20230l-100000@soda.CSUA.Berkeley.EDU>
Reply-To: tonyg@OntheNet.com.au
NNTP-Posting-Host: swanee.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
To: Veggy Vinny <richardc@soda.CSUA.Berkeley.EDU>

Veggy Vinny wrote:
> 
> Greetings everyone,
> 
>         I remembered that FreeBSD can be used as a router... I was
> wondering what I need to do exactly if my machine had a connection to the
> rest of the internet as 198.94.103.34 and then I wanted my machine to be
> the gateway for the network 205.167.164.0 and assign my machine
> 205.167.164.34 which will be the internal network, what would I need to do
> exactly and how do I advertise the routes for 205.167.164.0 to go through
> 198.94.103.34?  Thanks.
>
Well for starters you need to enable IP forwarding.  This can be turned
on explicitely by 'sysctl' or default to on by using-

options		GATEWAY

in you kernel config file!

As for advertising routes to the global Internet, that is really the
responsibility of the ISP to which you connect.  Internally, you need to
have all of the hosts in network 205.167.164.0 pointing their default
route to the gateway machine (203.167.164.34) and this machine having a
default route pointing to the ISP's router.  You could run RIP (routed)
but you probably don't need to introduce unneeded complexity!
 
> Vince
> GaiaNet Corporation - Unix Networking Operations - GUS Mailing Lists Admin

Tony