From owner-freebsd-questions Thu Oct 15 17:28:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA03789 for freebsd-questions-outgoing; Thu, 15 Oct 1998 17:28:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.128.1.71]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA03780 for ; Thu, 15 Oct 1998 17:28:11 -0700 (PDT) (envelope-from sderdau@ne.mediaone.net) Received: from ne.mediaone.net (sderdau.ne.mediaone.net [24.128.122.197]) by chmls06.mediaone.net (8.8.7/8.8.7) with ESMTP id UAA03807; Thu, 15 Oct 1998 20:27:38 -0400 (EDT) Message-ID: <36269327.CEA0DC01@ne.mediaone.net> Date: Thu, 15 Oct 1998 20:28:23 -0400 From: "Stephen A. Derdau" X-Mailer: Mozilla 4.07 [en] (Win95; I) MIME-Version: 1.0 To: Bryce Newall CC: FreeBSD Questions List Subject: Re: IP Forwarding References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We'll I just got my system up and running not that long ago 1. had to install isc-dhcp2 I used the script for freebsd for dhclient.conf 2. got natd working set options in the kernel for ipdivert and ipfirewall OOoops almost forgot ....Got alot of help from people on this list and also the search page see my link in signature Hope this helps you. Bryce Newall wrote: > > 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 -- When you find out the answer it's always something you thought you knew :-) Answers here http://www.free.bsd.org/search Happily Running! FreeBSD 2.2.7-STABLE #0: Fri Oct 9 19:54:29 EDT 1998 sderdau@SDERDAU.ne.mediaone.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message