*BSD News Article 82080


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!agate!soda.CSUA.Berkeley.EDU!richardc
From: Veggy Vinny <richardc@soda.CSUA.Berkeley.EDU>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD as a router?
Date: Fri, 1 Nov 1996 21:30:43 -0800
Organization: University of California, Berkeley
Lines: 50
Message-ID: <Pine.PTX.3.95.961101212409.20230S-100000@soda.CSUA.Berkeley.EDU>
NNTP-Posting-Host: soda.csua.berkeley.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <327AC440.3A5B@OntheNet.com.au>



On Sat, 2 Nov 1996, Tony Griffiths wrote:

:> 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-

	What's the line for sysctl?

:> options		GATEWAY
:> 
:> in you kernel config file!

	This won't work in FreeBSD -current since the GATEWAY option is no
longer available it seems.

:> 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!

	Hmmm, assuming I only had one machine now and the incoming
connection was 198.94.66.101 or something like that and I want to set my 
machine as the gateway for the 205.167.164.0 network as node 34, can I do
my own advertising of the route to the net?  If so, what do I need to do
exactly and how do I make it so my machine goes through the net as
205.167.164.34 instead of 198.94.66.101?  I thought routed wouldn't do RIP
though or how does it work exactly?
  
Vince
GaiaNet Corporation - Unix Networking Operations - GUS Mailing Lists Admin