From owner-freebsd-questions Thu Oct 15 16:51:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA28858 for freebsd-questions-outgoing; Thu, 15 Oct 1998 16:51:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ds9.dreamhaven.org (dt093n15.san.rr.com [204.210.49.21]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id QAA28840 for ; Thu, 15 Oct 1998 16:51:31 -0700 (PDT) (envelope-from data@dreamhaven.net) Received: (qmail 22076 invoked by uid 1010); 15 Oct 1998 23:51:13 -0000 Date: Thu, 15 Oct 1998 16:51:13 -0700 (PDT) From: Bryce Newall X-Sender: data@ds9.dreamhaven.org To: FreeBSD Questions List Subject: IP Forwarding Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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