From owner-freebsd-questions@FreeBSD.ORG Wed Jan 4 17:44:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E8FE16A41F for ; Wed, 4 Jan 2006 17:44:21 +0000 (GMT) (envelope-from bbobowski@gmail.com) Received: from fep2.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4917743D76 for ; Wed, 4 Jan 2006 17:44:20 +0000 (GMT) (envelope-from bbobowski@gmail.com) Received: from [24.235.177.114] (d235-177-114.home1.cgocable.net [24.235.177.114]) by fep2.cogeco.net (Postfix) with ESMTP id CFA2194F0 for ; Wed, 4 Jan 2006 12:44:13 -0500 (EST) Message-ID: <43BC097C.4000401@gmail.com> Date: Wed, 04 Jan 2006 12:44:28 -0500 From: Brian Bobowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Thunderbird/0.7.1 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD User Questions List Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Setting up a FreeBSD gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 17:44:21 -0000 OK, I've tried searching through man pages and such, but I've got kind of lost here. I have one machine that's acting as a gateway for my home PC, in addition to running a few local servers. I know I shouldn't do that, but the traffic is low and I just don't have room for more computers in my room, anyway. At any rate... I think I've got the packet-forwarding aspect set up OK; I compiled a kernel with the options I found in the docs on the matter. However, I don't know how to set up DNS. Specifically, I want to either pass all DNS requests through the gateway, or have the gateway run a local DNS that queries my ISP's DNS in turn. Can anyone point me to some steps on how to set that up? A bit of user-friendly instruction on using ipfw would be nice, too; I think I'd be able to figure it out in time, but if someone can spare a few moments to point out where I can find instructions on e.g. passing traffic on certain ports through to the other machine, handling others, and blocking the rest, it'd be appreciated. It's specifically the forwarding part that has me a bit mystified. Please reply off-list. TIA, -BB