Skip site navigation (1)Skip section navigation (2)
Date:      07 Feb 1999 19:02:56 +0100
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Thomas David Rivers <rivers@dignus.com>
Cc:        freebsd-questions@FreeBSD.ORG, wai@aloha.net
Subject:   Re: FreeBSD to FreeBSD connection
Message-ID:  <xzpu2wyt7lb.fsf@flood.ping.uio.no>
In-Reply-To: Thomas David Rivers's message of "Sun, 7 Feb 1999 07:35:35 -0500 (EST)"
References:  <199902071235.HAA02421@lakes.dignus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas David Rivers <rivers@dignus.com> writes:
> > I have the following network configuration:
> > 
> > |------|  dial-up  |------------|  xl0  |------------|
> > | ISP  |--~~~~~~~--| FreeBSD #1 |-------| FreeBSD #2 |
> > |------|           |------------|       |------------|
> >                     IP aliasing          192.168.1.2
> >                     gateway enabled
> >                     192.168.1.1
> > 
> > How do you setup the FreeBSD #2 to access the Internet via FreeBSD #1?
>  If you have ipfw and natd set up (as your picture indicates), then

ipfw and natd are complete overkill, since userland PPP has that
functionality built in. Read the fine manual, and add 'alias enable
yes' to the top of the 'default' section in ppp.conf.

> all you need to do is set the default router on FreeBSD #2.

You also need to enable IP forwarding on FreeBSD #1 by typing 'sysctl
-w net.inet.ip.forwarding 1' as root. To make sure it stays on after a
reboot, set gateway_enable to YES in rc.conf.

>  On FreeBSD #2, issue the command:
>    route add default 192.168.1.1
> 
> or, set up 192.168.1.1 as the "gateway" machine in the /etc/rc.conf file
> on FreeBSD #2.

You mean defaultrouter, not gateway. And you should do *both*, unless
you have a particular reason for rebooting a computer that doesn't
need to be rebooted.

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu2wyt7lb.fsf>