*BSD News Article 45469


Return to BSD News archive

Newsgroups: comp.unix.bsd.netbsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!noc.netcom.net!ix.netcom.com!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!news.alpha.net!solaris.cc.vt.edu!news.mathworks.com!news.kei.com!bloom-beacon.mit.edu!news.bu.edu!news3.near.net!monk.proteon.com!jfw
From: jfw@proteon.com (John Woods)
Subject: Re: How to configure NetBSD as a router???? HELP!
Message-ID: <DA8887.J9o@proteon.com>
Sender: news@proteon.com
Nntp-Posting-Host: kerplop.proteon.com
Organization: Proteon, Inc., Westborough, Ma.
References: <3rk7oh$iq@harvey.esu.edu>
Date: Thu, 15 Jun 1995 18:19:19 GMT
Lines: 23

kender@esu.edu (Daniel Garcia) writes:
>I have a small problem.  I have a NetBSD box that is acting as
>my internet gateway for the machines i have at home.  Up till now,
>it's been blindly running socks because my provider would only do
>one ip number.  Now, I have them routing/connecting a class C, but
>my netbsd box seems to refuse to forward packets!  I haev GATEWAY
>ciomplied in, and i tried running routed, but that didn't help.

Having just pinged my wife's Mac, I can say with great authority that
I am successfully doing this very thing at this very moment :-).  You
need to ensure four details:  (1) you really do have GATEWAY defined in
the running kernel; (2) you really are running routed; (3) you are running
routed WITHOUT the -q flag (check /etc/netstart; -q is the default, and
it is NOT what you want); and (4) that they REALLY are routing your
class C network properly -- verify this with

	traceroute -s YOUR_ETHERNET_ADDR SOME_RANDOM_VICTIM

or simply telnet out somewhere and see if you can ping the ethernet address
of your NetBSD box (assuming that your LAN is ethernet).

That last detail took a good deal more effort than I would have expected...