Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 1998 16:51:13 -0700 (PDT)
From:      Bryce Newall <data@dreamhaven.net>
To:        FreeBSD Questions List <freebsd-questions@FreeBSD.ORG>
Subject:   IP Forwarding
Message-ID:  <Pine.NEB.3.96.981015164447.19668N-100000@ds9.dreamhaven.org>

next in thread | raw e-mail | index | archive | help
Greetings!

Has anyone successfully set up IP Masquerading (perhaps I'm using a
Linuxism here?) under FreeBSD?  Long ago, my FreeBSD machine at home ran
Linux, and I followed a procedure that involved compiling a few extra
options into the kernel and setting up some routing, which would allow my
box to act as a gateway and "firewall" for other machines on my little
home network, so that they could all talk to the outside world through the
Linux box, instead of having to purchase additional IPs at $5/month from
my cable modem provider.  I had 2 ethernet cards in the machine; one for
the local network, and one for the interface to the cable modem.

However, since switching over to FreeBSD, I've never quite figured out how
to get it going.  I had to enable a couple of things in /etc/rc.conf
(don't remember what they were by now), but what I really had a hard time
with was setting up the routing.  Under Linux, I understood the "route"
command -- I don't remember the exact syntax anymore, but basically I
would set the default gateway for the secondary ethernet card (eth1) to
the primary ethernet card (eth0).  I didn't have to actually specify the
IP address, since my cable ISP uses DHCP; rather, I just specified the
interface name, eth0.  I'd imagine I would do something similar under
FreeBSD, but I can't figure out the syntax of the route command under
FreeBSD.  I've been all over the man pages and have looked through the
Handbook and Mailing List Archives, but haven't found a solution.

Does anyone have a simple (or even complex :> ) procedure that I can
follow that outlines everything I'd have to do on my system to allow it to
act as a gateway for my other machines?  Not only would it save me
$10/month for the two additional IPs I'm paying for, but it would also
allow my internal printer and file sharing to continue working if the
cable service goes down (which has been happening somewhat frequently
lately).

Thanks very much in advance!

**********************************************************************
*       Bryce Newall       *       Email: data@dreamhaven.net        *
*               WWW: http://home.dreamhaven.net/~data                *
*       "Insanity takes its toll.  Please have exact change."        *
**********************************************************************


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?Pine.NEB.3.96.981015164447.19668N-100000>