From owner-freebsd-questions  Mon Oct  6 15:33:53 1997
Return-Path: <owner-freebsd-questions>
Received: (from root@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id PAA04738
          for questions-outgoing; Mon, 6 Oct 1997 15:33:53 -0700 (PDT)
          (envelope-from owner-freebsd-questions)
Received: from imperial.org (nick@imperial.org [205.218.4.202])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA04733
          for <questions@FreeBSD.ORG>; Mon, 6 Oct 1997 15:33:47 -0700 (PDT)
          (envelope-from nick@imperial.org)
Received: from localhost (nick@localhost)
	by imperial.org (8.8.7/8.8.7) with SMTP id RAA01380;
	Mon, 6 Oct 1997 17:47:57 -0500 (CDT)
Date: Mon, 6 Oct 1997 17:47:57 -0500 (CDT)
From: Nick Thompson <nick@imperial.org>
To: Kwoody <kwoody@citytel.net>
cc: questions@FreeBSD.ORG
Subject: Re: help
In-Reply-To: <Pine.BSF.3.91.971005182534.3740A-100000@mybsd.net>
Message-ID: <Pine.BSF.3.96.971006174722.1378A-100000@imperial.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-questions@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

when i do that... it runs fine, but when i try to go out onto the net, it
goes to my FreeBSD box instead of the net.. and the default route is set
to localhost.. and when i try to change it to what it is supposed to be,
it just goes right back.


-----------------------------------------------------------------------------
- Nick Thompson                         Systems Administrator, Imperial.org -
- nick@imperial.org                                      admin@imperial.org -
- http://nick.imperial.org                          http://www.imperial.org -
-----------------------------------------------------------------------------

On Sun, 5 Oct 1997, Kwoody wrote:

> On Sun, 5 Oct 1997 nick@imperial.org wrote:
> 
> > Here is my problem... I have my modem connected to my FreeBSD machine, and 
> i have a sparc connected to my fBSD box over the ethernet.  What would i have 
> to do so that the sparc can go over the ethernet straight to the internet if 
> it wanted, for use of ssh, etc.. instead of having to telnet to the freebsd 
> box and then out onto the net?
> 
> I have a small network consisting of a Sun 3/60, a 95 box and my 2.1.7 
> Fbsd machine. I installed a newer version of PPP so it supports aliasing. 
> 
> I sometimes use my Sun to access the internet. Only thing I have to do is 
> telnet to my bsd machine from the sun, type ppp -alias -auto <myisp> then 
> exit the telnet session. Once the connection is up I can telnet and ftp 
> from the sun quite nicely.
> 
> apocalypse# netstat -rn
> Routing tables
> Destination          Gateway              Flags    Refcnt Use        
> Interface
> 127.0.0.1            127.0.0.1            UH       0      0          lo0
> 192.168.0.0          192.168.0.3          U        1      447        le0
> default              192.168.0.2          UG       0      340        le0
> 
> The above is the routing table from the sun...I mostly guessed on how to set 
> it up but it seems to work ok.
> 
> Routing table on my FreeBSD machine when the connection is up:
> 
> bash# netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> default            10.0.0.2           UGSc        2      334      tun0
> 10.0.0.2           10.0.0.1           UH          0        0      tun0
> 127.0.0.1          127.0.0.1          UH          0      494       lo0
> 192.168            link#1             UC          0        0 
> 192.168.0.1        0:c0:f0:b:8f:e4    UHLW        0     3056       ed0    816
> 192.168.0.2        0:c0:f0:b:8f:9b    UHLW        1       18       lo0
> 192.168.0.3        8:0:20:6:99:e9     UHLW        4    15183       ed0    871
> 204.244.99.76      204.244.99.124     UH          0        0      tun0
> 
> .0.3 is my sun3 machine, .0.2 is my Freebsd machine. .0.1 is my Win95 box.
> 
> Everything seems to work ok.
> 
> I dont know if this is the right way to do it or not but this is a way I 
> managed to get all the boxes on my little lan working and the BSD machine 
> to route packets for them.
> 
> Hope this might help....
> kwoody@citytel.net
>